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