This commit is contained in:
parent
54187034df
commit
5ae26babb1
|
|
@ -28,6 +28,44 @@ Page({
|
|||
that.setData({
|
||||
netWorkErrorDialog: true,
|
||||
})
|
||||
wx.setStorage({
|
||||
key: "isConnected",
|
||||
data: false
|
||||
})
|
||||
}
|
||||
},
|
||||
})
|
||||
wx.getStorage({
|
||||
key: 'isAllLeave',
|
||||
success(res: any) {
|
||||
if (res.data) {
|
||||
Message.success({
|
||||
context: that,
|
||||
offset: [20, 32],
|
||||
duration: 2000,
|
||||
content: '管理员已结束会议!',
|
||||
});
|
||||
wx.setStorage({
|
||||
key: "isAllLeave",
|
||||
data: false
|
||||
})
|
||||
}
|
||||
},
|
||||
})
|
||||
wx.getStorage({
|
||||
key: 'isForceExitRoom',
|
||||
success(res: any) {
|
||||
if (res.data) {
|
||||
Message.success({
|
||||
context: that,
|
||||
offset: [20, 32],
|
||||
duration: 2000,
|
||||
content: '管理员已将你移出会议!',
|
||||
});
|
||||
wx.setStorage({
|
||||
key: "isForceExitRoom",
|
||||
data: false
|
||||
})
|
||||
}
|
||||
},
|
||||
})
|
||||
|
|
@ -130,6 +168,14 @@ Page({
|
|||
key: "isConnected",
|
||||
data: false
|
||||
})
|
||||
wx.setStorage({
|
||||
key: "isAllLeave",
|
||||
data: false
|
||||
})
|
||||
wx.setStorage({
|
||||
key: "isForceExitRoom",
|
||||
data: false
|
||||
})
|
||||
this.setData({
|
||||
netWorkErrorDialog: false
|
||||
})
|
||||
|
|
|
|||
|
|
@ -472,27 +472,29 @@ Page({
|
|||
break;
|
||||
// 全员离开房间
|
||||
case 'AllLeave':
|
||||
this.message('管理员已结束会议!').success()
|
||||
setTimeout(() => {
|
||||
wx.disableAlertBeforeUnload({
|
||||
complete: () => {
|
||||
onStop()
|
||||
wx.navigateBack()
|
||||
}
|
||||
})
|
||||
}, 1000);
|
||||
wx.setStorage({
|
||||
key: "isAllLeave",
|
||||
data: true
|
||||
})
|
||||
wx.disableAlertBeforeUnload({
|
||||
complete: () => {
|
||||
onStop()
|
||||
wx.navigateBack()
|
||||
}
|
||||
})
|
||||
break;
|
||||
// 移出会议
|
||||
case 'ForceExitRoom':
|
||||
this.message('管理员已将你移出会议!').success()
|
||||
setTimeout(() => {
|
||||
wx.disableAlertBeforeUnload({
|
||||
complete: () => {
|
||||
onStop()
|
||||
wx.navigateBack()
|
||||
}
|
||||
})
|
||||
}, 1000);
|
||||
wx.setStorage({
|
||||
key: "isForceExitRoom",
|
||||
data: true
|
||||
})
|
||||
wx.disableAlertBeforeUnload({
|
||||
complete: () => {
|
||||
onStop()
|
||||
wx.navigateBack()
|
||||
}
|
||||
})
|
||||
break;
|
||||
// 更新视图模式
|
||||
case 'RefreshView':
|
||||
|
|
|
|||
Loading…
Reference in New Issue