地图找人 点击头像直接跳转到技师主页

This commit is contained in:
Mr.jiang 2024-08-23 15:10:47 +08:00
parent 78562262b0
commit 83cef0a93d
1 changed files with 27 additions and 1 deletions

View File

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