From 83cef0a93d03106c701ce376eb22a7ec60a1acc7 Mon Sep 17 00:00:00 2001 From: "Mr.jiang" <714156421@qq.com> Date: Fri, 23 Aug 2024 15:10:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E6=89=BE=E4=BA=BA=20?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E5=A4=B4=E5=83=8F=E7=9B=B4=E6=8E=A5=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E5=88=B0=E6=8A=80=E5=B8=88=E4=B8=BB=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/therapist/therapist.vue | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) 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) {