tangning 3 роки тому
батько
коміт
973d9ef2e5

+ 15 - 1
pages/roomManger/roomManger.js

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

+ 2 - 2
pages/roomManger/roomManger.wxml

@@ -14,8 +14,8 @@
     <view class="search-container">
       <view class="storeSearch">
         <image src="../../static/images/icon/search@2x.png"></image>
-        <input wx:if="{{fetcherData.type==31}}" bindconfirm="search" bindinput="inputChange" type="text" placeholder="请输入VR场景名称" placeholder-class="placeholderStyle" />
-        <input wx:else bindconfirm="search" bindinput="inputChange" type="text" placeholder="请输入场景名称" placeholder-class="placeholderStyle" />
+        <input wx:if="{{fetcherData.type==31}}" maxlength="30" bindconfirm="search" bindinput="inputChange" type="text" placeholder="请输入VR场景名称" placeholder-class="placeholderStyle" />
+        <input wx:else bindconfirm="search"  maxlength="30" bindinput="inputChange" type="text" placeholder="请输入场景名称" placeholder-class="placeholderStyle" />
       </view>
       <view class="searchBtn" bindtap="search">搜索</view>
     </view>

+ 7 - 0
project.private.config.json

@@ -185,6 +185,13 @@
           "query": "",
           "launchMode": "default",
           "scene": null
+        },
+        {
+          "name": "我的个人",
+          "pathName": "pages/ucenter/index/index",
+          "query": "",
+          "launchMode": "default",
+          "scene": null
         }
       ]
     }