diff --git a/home/views/h5/market/sylive/stic/index.php b/home/views/h5/market/sylive/stic/index.php index 72d26fa6..5a65dc99 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:,