张延森 5 年之前
父節點
當前提交
26b9d39bbc
共有 2 個檔案被更改,包括 3 行新增2 行删除
  1. 2
    1
      src/app.js
  2. 1
    1
      src/pages/project/detail/index.js

+ 2
- 1
src/app.js 查看文件

144
       ]
144
       ]
145
     },
145
     },
146
   }
146
   }
147
+
147
   componentDidHide() {
148
   componentDidHide() {
148
-    ready.close()
149
+    // ready.close()
149
     // socket.closeSocket()
150
     // socket.closeSocket()
150
   }
151
   }
151
 
152
 

+ 1
- 1
src/pages/project/detail/index.js 查看文件

63
 
63
 
64
   componentWillMount() {
64
   componentWillMount() {
65
     ready.queue(() => {
65
     ready.queue(() => {
66
-
67
       // 分享场景需要先授权手机, 再授权头像
66
       // 分享场景需要先授权手机, 再授权头像
68
       const options = wx.getLaunchOptionsSync()
67
       const options = wx.getLaunchOptionsSync()
69
       if (sceneInShare(options.scene)) {
68
       if (sceneInShare(options.scene)) {
80
 
79
 
81
       this.initPageData()
80
       this.initPageData()
82
     })
81
     })
82
+    console.log('---------------after componentWillMount---------------')
83
   }
83
   }
84
 
84
 
85
   componentWillUnmount() {
85
   componentWillUnmount() {