暂时屏蔽5分钟下麦
This commit is contained in:
parent
d4c26577da
commit
d6718ae65b
|
|
@ -134,32 +134,32 @@ Page({
|
|||
'footerList.**': function (footerList) {
|
||||
const footerListTemplate = [...footerList];
|
||||
footerListTemplate[3].show = footerListTemplate[2].active
|
||||
if (!footerListTemplate[1].active && !footerListTemplate[2].active) {
|
||||
if (isAutoApplySpeakTime) {
|
||||
clearTimeout(isAutoApplySpeakTime)
|
||||
isAutoApplySpeakTime = ''
|
||||
}
|
||||
isAutoApplySpeakTime = setTimeout(() => {
|
||||
let userItem = this.data.roomUserList.find((item: any) => item.uid === this.data.user.uid)
|
||||
if (!role.ID.includes(this.data.user.roleId) && userItem && userItem.isRoomManager) {
|
||||
DeleteRoomManager({
|
||||
roomId: this.data.roomInfo.id,
|
||||
roomNum: this.data.channelId,
|
||||
userId: userItem.uid
|
||||
})
|
||||
this.setData({
|
||||
isAutoApplySpeakDialog: true
|
||||
})
|
||||
}
|
||||
clearTimeout(isAutoApplySpeakTime)
|
||||
isAutoApplySpeakTime = ''
|
||||
}, 1000 * 60 * 5);
|
||||
} else {
|
||||
if (isAutoApplySpeakTime) {
|
||||
clearTimeout(isAutoApplySpeakTime)
|
||||
isAutoApplySpeakTime = ''
|
||||
}
|
||||
}
|
||||
// if (!footerListTemplate[1].active && !footerListTemplate[2].active) {
|
||||
// if (isAutoApplySpeakTime) {
|
||||
// clearTimeout(isAutoApplySpeakTime)
|
||||
// isAutoApplySpeakTime = ''
|
||||
// }
|
||||
// isAutoApplySpeakTime = setTimeout(() => {
|
||||
// let userItem = this.data.roomUserList.find((item: any) => item.uid === this.data.user.uid)
|
||||
// if (!role.ID.includes(this.data.user.roleId) && userItem && userItem.isRoomManager) {
|
||||
// DeleteRoomManager({
|
||||
// roomId: this.data.roomInfo.id,
|
||||
// roomNum: this.data.channelId,
|
||||
// userId: userItem.uid
|
||||
// })
|
||||
// this.setData({
|
||||
// isAutoApplySpeakDialog: true
|
||||
// })
|
||||
// }
|
||||
// clearTimeout(isAutoApplySpeakTime)
|
||||
// isAutoApplySpeakTime = ''
|
||||
// }, 1000 * 60 * 5);
|
||||
// } else {
|
||||
// if (isAutoApplySpeakTime) {
|
||||
// clearTimeout(isAutoApplySpeakTime)
|
||||
// isAutoApplySpeakTime = ''
|
||||
// }
|
||||
// }
|
||||
this.setData({
|
||||
footerList: footerListTemplate
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue