mirror of
https://gitee.com/zongzhige/shopxo-uniapp.git
synced 2026-07-07 14:25:27 +08:00
修改页面显示处理
This commit is contained in:
@ -159,16 +159,12 @@ export default {
|
||||
// 如果加载完成了,延迟2秒确定一下直播状态, 有的时候直播状态是正常的也加载成功了,但是获取不到视频流,需要确定一下没有执行error才算是真正的成功
|
||||
this.load_timer = setTimeout(() => {
|
||||
console.log('视频数据加载完成');
|
||||
|
||||
_this.live_be_right_back_error = false;
|
||||
_this.retry_count = 0;
|
||||
// 直播状态为正常或者暂停直播了,才认为是正常的加载成功
|
||||
if ([0, 1].includes(_this.live_status)) {
|
||||
// 如果重连的定时器还在运行中,则清除它
|
||||
if (_this.ended_timer) {
|
||||
// 隐藏加载提示
|
||||
clearTimeout(_this.ended_timer);
|
||||
}
|
||||
_this.live_be_right_back_error = false;
|
||||
// 如果重连的定时器还在运行中,则清除它
|
||||
if (_this.ended_timer) {
|
||||
// 隐藏加载提示
|
||||
clearTimeout(_this.ended_timer);
|
||||
}
|
||||
}, 2000);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user