edit-sylive-list

This commit is contained in:
lccsw
2022-10-12 17:49:17 +08:00
parent eded3ce465
commit 903edf86df
+12 -13
View File
@@ -92,7 +92,6 @@
live:{
cell1:<?=json_encode($info['live'])?>,
},
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:<?=json_encode($info['begin'])?>,
@@ -189,9 +190,7 @@
getLive(){
let that=this;
if (!that.loading) {
that.loading = true;
//请求接口
//请求接口成功后
that.getDynamicList()
that.loading = false;
that.live = {
cell1:<?=json_encode($info['live'])?>,