|
|
|
@ -24,7 +24,7 @@ Page({ |
|
|
|
}, |
|
|
|
|
|
|
|
biaoji(e) { |
|
|
|
console.log("标记目的地点击", that.data.latitude) |
|
|
|
console.log("标记目的地点击", e) |
|
|
|
wx.getLocation({//获取当前地址信息
|
|
|
|
type: 'wgs84', |
|
|
|
success(res) { |
|
|
|
@ -33,8 +33,8 @@ Page({ |
|
|
|
const speed = res.speed |
|
|
|
const accuracy = res.accuracy |
|
|
|
wx.openLocation({//跳转腾讯地图查看并可以进行导航
|
|
|
|
latitude: that.data.latitude, |
|
|
|
longitude: that.data.longitude |
|
|
|
latitude: parseFloat(that.data.latitude), |
|
|
|
longitude: parseFloat(that.data.longitude) |
|
|
|
}) |
|
|
|
},fail(res){//未授权地理位置处理
|
|
|
|
wx.showModal({ |
|
|
|
@ -70,11 +70,11 @@ Page({ |
|
|
|
address: res.data.address, |
|
|
|
tel:res.data.tel, |
|
|
|
phone:res.data.phone, |
|
|
|
longitude:res.data.map.split(',')[0], |
|
|
|
latitude:res.data.map.split(',')[1], |
|
|
|
longitude:parseFloat(res.data.map.split(',')[0]), |
|
|
|
latitude:parseFloat(res.data.map.split(',')[1]), |
|
|
|
markers: [{ |
|
|
|
longitude:res.data.map.split(',')[0], |
|
|
|
latitude:res.data.map.split(',')[1], |
|
|
|
longitude:parseFloat(res.data.map.split(',')[0]), |
|
|
|
latitude:parseFloat(res.data.map.split(',')[1]), |
|
|
|
}], |
|
|
|
userPhone: res.data.contact_phone |
|
|
|
}) |
|
|
|
@ -106,6 +106,7 @@ Page({ |
|
|
|
onShow() { |
|
|
|
that.getTabBar().init(); |
|
|
|
that.getAboutDetails() |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
|