|
@@ -42,6 +42,20 @@ Page({
|
|
|
})
|
|
|
},
|
|
|
async handleDelete(e) {
|
|
|
+ const that = this;
|
|
|
+ wx.showModal({
|
|
|
+ title: '温馨提示',
|
|
|
+ content: '关闭房间后,房间内的所有人都会退出房间,是否继续关闭?',
|
|
|
+ success: function (res) {
|
|
|
+ console.log('requestDelet',res)
|
|
|
+ if (res.confirm) {
|
|
|
+ // 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
|
|
|
+ that.requestDelet(e)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ requestDelet(e){
|
|
|
const businessId = e.target.dataset && e.target.dataset.id
|
|
|
const apiUrl = this.data.fetcherData.state == 102 ?api.deleteRoom:api.exitRoom
|
|
|
const {
|
|
@@ -111,7 +125,7 @@ Page({
|
|
|
})
|
|
|
},
|
|
|
async getRoomList() {
|
|
|
-
|
|
|
+ console.log('getRoomList')
|
|
|
if (this.data.hasData) {
|
|
|
if (!this.data.loading) {
|
|
|
|