diff --git a/pages/meeting/index.ts b/pages/meeting/index.ts index 09b9a6e..d6eb44e 100644 --- a/pages/meeting/index.ts +++ b/pages/meeting/index.ts @@ -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 })