Selaa lähdekoodia

update:socket

gemercheung 2 vuotta sitten
vanhempi
commit
02b67512df
1 muutettua tiedostoa jossa 35 lisäystä ja 6 poistoa
  1. 35 6
      socket.js

+ 35 - 6
socket.js

@@ -457,10 +457,13 @@ export default {
       return Promise.resolve(false)
     }
     // 真正进入统计
-    util.request(api.trackRoom, {
-      roomId: options.roomId,
-      type: 0
-    }, 'POST', 'application/json')
+    if (options.roomId !== '888888') {
+      util.request(api.trackRoom, {
+        roomId: options.roomId,
+        type: 0
+      }, 'POST', 'application/json')
+
+    }
 
     let userInfo = await this.getUserInfo()
 
@@ -1481,11 +1484,37 @@ export default {
 
 
   sendContactInfo() {
-    this.socketSendMessage('getContactInfo', {
-      contactInfo: this.data.contactInfo,
+    // this.socketSendMessage('getContactInfo', {
+    //   contactInfo: this.data.contactInfo,
+    // })
+    this.socketSendMessage('clientSyncAction', {
+      type: 'getContactInfo',
+      contactInfo: this.data.contactInfo
+    })
+
+  },
+  goToCase({
+    data
+  }) {
+    console.log('data', data)
+    wx.showModal({
+      title: '提示',
+      content: `是否跳转到新的场景?`,
+      showCancel: true,
+      confirmColor: "#52a2d8",
+      success: res => {
+        wx.navigateTo({
+          url: `/pages/webview/index?id=${data.id}&type=32`,
+        })
+
+      },
+      fail: () => {
+
+      }
     })
 
   },
+
   selectType(ev) {
     this.getGoodsList(this.options.id, ev.target.dataset.item.category_id)
   },