From 903edf86df07e24270c7b619bcfd388d9da46bb2 Mon Sep 17 00:00:00 2001 From: lccsw <805383944@qq.com> Date: Wed, 12 Oct 2022 17:49:17 +0800 Subject: [PATCH] edit-sylive-list --- home/views/h5/market/sylive/stic/index.php | 25 +++++++++++----------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/home/views/h5/market/sylive/stic/index.php b/home/views/h5/market/sylive/stic/index.php index 73cc8696..15c72eea 100644 --- a/home/views/h5/market/sylive/stic/index.php +++ b/home/views/h5/market/sylive/stic/index.php @@ -92,7 +92,6 @@ live:{ cell1:, }, - loading: false, isDataEnd: false, isNoData: false, page: 1, //页数 @@ -162,11 +161,16 @@ } this.tabid = id this.tabIndex = index - // if(this.tabid == 1){ - // this.getBegin() - // }else if(this.tabid == 2){ - // this.getLive() - // } + this.loading = false + this.isDataEnd = false + this.isNoData = false + this.page= 1 + this.dynamic = {title:'', list:[]} + if(this.tabid == 1){ + this.getBegin() + }else if(this.tabid == 2){ + this.getLive() + } } }, @@ -174,10 +178,7 @@ getBegin(){ let that=this; if (!that.loading) { - that.loading = true; - //请求接口 - - //请求接口成功后 + that.getDynamicList() that.loading = false; that.begin = { cell1:, @@ -189,9 +190,7 @@ getLive(){ let that=this; if (!that.loading) { - that.loading = true; - //请求接口 - //请求接口成功后 + that.getDynamicList() that.loading = false; that.live = { cell1:,