diff --git a/pages/therapist/therapist.vue b/pages/therapist/therapist.vue index 0e87dd5..4b308af 100644 --- a/pages/therapist/therapist.vue +++ b/pages/therapist/therapist.vue @@ -1013,7 +1013,33 @@ let that = this; webMap.addMarker(uni.amap, map, this.orderList, (e, udata) => { that.currentMarkerIndex = udata.userId; - that.showPopup = true; + // that.showPopup = true; + console.log('授权', uni.getStorageSync('sendMsg')) + if (uni.getStorageSync('sendMsg')) { + console.log('授权+1') + wx.requestSubscribeMessage({ + tmplIds: this.arr, + success(re) { + var datas = JSON.stringify(re); + if (datas.indexOf("accept") != -1) { + console.log(re) + } + }, + fail: (res) => { + console.log(res) + } + }) + } + if (this.token) { + uni.navigateTo({ + url: '/pages/therapist/orderDetail?artificerId=' + udata.artificerId + "&classifyId=" + this + .tabIndex + }); + } else { + uni.navigateTo({ + url: '/pages/public/login' + }); + } }); }, updateMarker(map) {