林凡 5 years ago
parent
commit
9cbccb352a

+ 1
- 1
config/prod.js View File

9
     WSS_HOST: '"wss://dev.jinchengjiaye.com"',
9
     WSS_HOST: '"wss://dev.jinchengjiaye.com"',
10
     // HOST: '"https://lt.pawoma.cn"',
10
     // HOST: '"https://lt.pawoma.cn"',
11
     // WSS_HOST: '"wss://lt.pawoma.cn"',
11
     // WSS_HOST: '"wss://lt.pawoma.cn"',
12
-    Version:'V3.5.2.3_2019-12-16'
12
+    Version:'V3.5.4_2019-12-182140'
13
   },
13
   },
14
   weapp: {},
14
   weapp: {},
15
   h5: {}
15
   h5: {}

+ 1
- 0
src/pages/card/list/index.js View File

64
     console.log(e,"eeeeeeeeeeeeeeeeeeeeeeeeeee")
64
     console.log(e,"eeeeeeeeeeeeeeeeeeeeeeeeeee")
65
     e && e.stopPropagation()
65
     e && e.stopPropagation()
66
     const { userInfo: { person: { personId, nickname, name } } } = this.props
66
     const { userInfo: { person: { personId, nickname, name } } } = this.props
67
+    const { userInfo: { miniApp: { tpls } } } = this.props
67
     const tplId=(tpls.filter(x => x.tplType == noticeType.TPL_NOTICE&&x.isSubscribe == true))[0].tplId
68
     const tplId=(tpls.filter(x => x.tplType == noticeType.TPL_NOTICE&&x.isSubscribe == true))[0].tplId
68
     wx.requestSubscribeMessage({
69
     wx.requestSubscribeMessage({
69
       tmplIds: [tplId],
70
       tmplIds: [tplId],

+ 2
- 1
src/pages/im/list/index.js View File

76
   handleItemClick = ({ unReadNum }) => person => {
76
   handleItemClick = ({ unReadNum }) => person => {
77
     const { userInfo: { miniApp: { tpls } } } = this.props
77
     const { userInfo: { miniApp: { tpls } } } = this.props
78
     const tplId = (tpls.filter(x => x.tplType == noticeType.TPL_NOTICE && x.isSubscribe == true))[0].tplId
78
     const tplId = (tpls.filter(x => x.tplType == noticeType.TPL_NOTICE && x.isSubscribe == true))[0].tplId
79
+    const that = this
79
     wx.requestSubscribeMessage({
80
     wx.requestSubscribeMessage({
80
       tmplIds: [tplId],
81
       tmplIds: [tplId],
81
       success(res) {
82
       success(res) {
90
           dispatch({ type: DECREASE_UNREADNUM, payload: unReadNum })
91
           dispatch({ type: DECREASE_UNREADNUM, payload: unReadNum })
91
         }
92
         }
92
 
93
 
93
-        return this.toChat(person);
94
+        return that.toChat(person);
94
       }
95
       }
95
     })
96
     })
96
 
97
 

+ 6
- 6
src/pages/person/customerAnalysis/followUpCustomer/index.js View File

251
   }
251
   }
252
   handleChatClick(item, e) {
252
   handleChatClick(item, e) {
253
     e.stopPropagation()
253
     e.stopPropagation()
254
-    
254
+
255
     const { userInfo: { person: { personId, nickname, name } } } = this.props
255
     const { userInfo: { person: { personId, nickname, name } } } = this.props
256
-    const { userInfo: {miniApp:{tpls}}} = this.props
257
-    const tplId=(tpls.filter(x => x.tplType == noticeType.TPL_NOTICE&&x.isSubscribe == true))[0].tplId
256
+    const { userInfo: { miniApp: { tpls } } } = this.props
257
+    const tplId = (tpls.filter(x => x.tplType == noticeType.TPL_NOTICE && x.isSubscribe == true))[0].tplId
258
     wx.requestSubscribeMessage({
258
     wx.requestSubscribeMessage({
259
       tmplIds: [tplId],
259
       tmplIds: [tplId],
260
-      success (res) {
260
+      success(res) {
261
 
261
 
262
       },
262
       },
263
-      fail(res){
263
+      fail(res) {
264
 
264
 
265
       },
265
       },
266
-      complete(){
266
+      complete() {
267
         Taro.navigateTo({
267
         Taro.navigateTo({
268
           url: `/pages/im/index?sendId=${personId}&sendName=${encodeURIComponent(name || nickname)}&receiverId=${item.personId}&receiverName=${encodeURIComponent(item.name || item.nickname)}`
268
           url: `/pages/im/index?sendId=${personId}&sendName=${encodeURIComponent(name || nickname)}&receiverId=${item.personId}&receiverName=${encodeURIComponent(item.name || item.nickname)}`
269
         })
269
         })

+ 17
- 15
src/pages/project/detail/index.js View File

344
   getPhoneNumber(e, item) {
344
   getPhoneNumber(e, item) {
345
     getUserPhone(e, (phoneNumber) => {
345
     getUserPhone(e, (phoneNumber) => {
346
       const { userInfo: { person: { personId, nickname, name } } } = this.props
346
       const { userInfo: { person: { personId, nickname, name } } } = this.props
347
-      const tplId=(tpls.filter(x => x.tplType == noticeType.TPL_NOTICE&&x.isSubscribe == true))[0].tplId
347
+      const { userInfo: { miniApp: { tpls } } } = this.props
348
+      const tplId = (tpls.filter(x => x.tplType == noticeType.TPL_NOTICE && x.isSubscribe == true))[0].tplId
348
       wx.requestSubscribeMessage({
349
       wx.requestSubscribeMessage({
349
         tmplIds: [tplId],
350
         tmplIds: [tplId],
350
-        success (res) {
351
-  
351
+        success(res) {
352
+
352
         },
353
         },
353
-        fail(res){
354
-  
354
+        fail(res) {
355
+
355
         },
356
         },
356
-        complete(){
357
+        complete() {
357
           // App.zhuge.track('查看置业顾问列表')
358
           // App.zhuge.track('查看置业顾问列表')
358
           Taro.navigateTo({
359
           Taro.navigateTo({
359
             url: `/pages/im/index?sendId=${personId}&sendName=${encodeURIComponent(name || nickname)}&receiverId=${item.id}&receiverName=${encodeURIComponent(item.userName)}`
360
             url: `/pages/im/index?sendId=${personId}&sendName=${encodeURIComponent(name || nickname)}&receiverId=${item.id}&receiverName=${encodeURIComponent(item.userName)}`
360
           })
361
           })
361
         }
362
         }
362
       })
363
       })
363
-      
364
+
364
     })
365
     })
365
   }
366
   }
366
 
367
 
449
   handleChatClick(item, e) {
450
   handleChatClick(item, e) {
450
     e.stopPropagation()
451
     e.stopPropagation()
451
     const { userInfo: { person: { personId, nickname, name } } } = this.props
452
     const { userInfo: { person: { personId, nickname, name } } } = this.props
452
-    const tplId=(tpls.filter(x => x.tplType == noticeType.TPL_NOTICE&&x.isSubscribe == true))[0].tplId
453
+    const { userInfo: { miniApp: { tpls } } } = this.props
454
+    const tplId = (tpls.filter(x => x.tplType == noticeType.TPL_NOTICE && x.isSubscribe == true))[0].tplId
453
     wx.requestSubscribeMessage({
455
     wx.requestSubscribeMessage({
454
       tmplIds: [tplId],
456
       tmplIds: [tplId],
455
-      success (res) {
457
+      success(res) {
456
 
458
 
457
       },
459
       },
458
-      fail(res){
460
+      fail(res) {
459
 
461
 
460
       },
462
       },
461
-      complete(){
463
+      complete() {
462
         // App.zhuge.track('查看置业顾问列表')
464
         // App.zhuge.track('查看置业顾问列表')
463
         Taro.navigateTo({
465
         Taro.navigateTo({
464
           url: `/pages/im/index?sendId=${personId}&sendName=${encodeURIComponent(name || nickname)}&receiverId=${item.id}&receiverName=${encodeURIComponent(item.userName)}`
466
           url: `/pages/im/index?sendId=${personId}&sendName=${encodeURIComponent(name || nickname)}&receiverId=${item.id}&receiverName=${encodeURIComponent(item.userName)}`
465
-        })    
467
+        })
466
       }
468
       }
467
-    })   
468
-    
469
+    })
470
+
469
   }
471
   }
470
 
472
 
471
   handleConsuItemClick(item) {
473
   handleConsuItemClick(item) {
475
   }
477
   }
476
 
478
 
477
   handleMoreClick() {
479
   handleMoreClick() {
478
-    const { userInfo: {miniApp:{tpls}}} = this.props
480
+    const { userInfo: { miniApp: { tpls } } } = this.props
479
     Taro.navigateTo({
481
     Taro.navigateTo({
480
       url: `/pages/card/list/index?buildingId=${this.state.buildingId}`
482
       url: `/pages/card/list/index?buildingId=${this.state.buildingId}`
481
     })
483
     })