暂时屏蔽5分钟下麦

This commit is contained in:
yj 2025-02-26 15:32:24 +08:00
parent d4c26577da
commit d6718ae65b
1 changed files with 26 additions and 26 deletions

View File

@ -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
})