关闭直播页面

This commit is contained in:
luyuan 2020-08-13 11:36:47 +08:00
parent 06092fb183
commit e4f917a9cf
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3

View File

@ -364,7 +364,7 @@
room:{}, room:{},
chatRoomService:{}, chatRoomService:{},
danmulist:[], danmulist:[],
zhibo:false, zhibo:true,
jieshu:{}, jieshu:{},
renshumax:0 renshumax:0
}, },
@ -578,6 +578,12 @@
}); });
}, },
closes(){ closes(){
if(!this.zhibo){
uni.switchTab({
url: '/pages/index/index'
});
return ;
}
const token = uni.getStorageSync('token'); const token = uni.getStorageSync('token');
let that = this let that = this
console.log(that.url) console.log(that.url)
@ -599,6 +605,7 @@
}, },
success(res){ success(res){
console.log(res) console.log(res)
that.stop()
that.jieshu = res.data.data that.jieshu = res.data.data
that.zhibo = false that.zhibo = false
// uni.navigateBack({ // uni.navigateBack({