林凡 5 jaren geleden
bovenliggende
commit
9cbccb352a

+ 1
- 1
config/prod.js Bestand weergeven

@@ -9,7 +9,7 @@ module.exports = {
9 9
     WSS_HOST: '"wss://dev.jinchengjiaye.com"',
10 10
     // HOST: '"https://lt.pawoma.cn"',
11 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 14
   weapp: {},
15 15
   h5: {}

+ 1
- 0
src/pages/card/list/index.js Bestand weergeven

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

+ 2
- 1
src/pages/im/list/index.js Bestand weergeven

@@ -76,6 +76,7 @@ export default class Index extends Component {
76 76
   handleItemClick = ({ unReadNum }) => person => {
77 77
     const { userInfo: { miniApp: { tpls } } } = this.props
78 78
     const tplId = (tpls.filter(x => x.tplType == noticeType.TPL_NOTICE && x.isSubscribe == true))[0].tplId
79
+    const that = this
79 80
     wx.requestSubscribeMessage({
80 81
       tmplIds: [tplId],
81 82
       success(res) {
@@ -90,7 +91,7 @@ export default class Index extends Component {
90 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 Bestand weergeven

@@ -251,19 +251,19 @@ export default class transactionCustomer extends Taro.Component {
251 251
   }
252 252
   handleChatClick(item, e) {
253 253
     e.stopPropagation()
254
-    
254
+
255 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 258
     wx.requestSubscribeMessage({
259 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 267
         Taro.navigateTo({
268 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 Bestand weergeven

@@ -344,23 +344,24 @@ export default class Index extends Component {
344 344
   getPhoneNumber(e, item) {
345 345
     getUserPhone(e, (phoneNumber) => {
346 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 349
       wx.requestSubscribeMessage({
349 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 358
           // App.zhuge.track('查看置业顾问列表')
358 359
           Taro.navigateTo({
359 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,23 +450,24 @@ export default class Index extends Component {
449 450
   handleChatClick(item, e) {
450 451
     e.stopPropagation()
451 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 455
     wx.requestSubscribeMessage({
454 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 464
         // App.zhuge.track('查看置业顾问列表')
463 465
         Taro.navigateTo({
464 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 473
   handleConsuItemClick(item) {
@@ -475,7 +477,7 @@ export default class Index extends Component {
475 477
   }
476 478
 
477 479
   handleMoreClick() {
478
-    const { userInfo: {miniApp:{tpls}}} = this.props
480
+    const { userInfo: { miniApp: { tpls } } } = this.props
479 481
     Taro.navigateTo({
480 482
       url: `/pages/card/list/index?buildingId=${this.state.buildingId}`
481 483
     })