|
|
|
@ -26,21 +26,12 @@ Page({
|
|
|
|
goMap () {
|
|
|
|
goMap () {
|
|
|
|
console.log("123")
|
|
|
|
console.log("123")
|
|
|
|
let that = this
|
|
|
|
let that = this
|
|
|
|
wx.getLocation({
|
|
|
|
wx.openLocation({
|
|
|
|
type: 'gcj02', //返回可以用于wx.openLocation的经纬度
|
|
|
|
latitude: Number(that.data.storeInfo.lat),
|
|
|
|
success (res) {
|
|
|
|
longitude: Number(that.data.storeInfo.lng),
|
|
|
|
console.log(res);
|
|
|
|
name: that.data.storeInfo.fullName,
|
|
|
|
wx.openLocation({
|
|
|
|
address: that.data.storeInfo.address,
|
|
|
|
latitude: Number(that.data.storeInfo.lat),
|
|
|
|
scale: 18
|
|
|
|
longitude: Number(that.data.storeInfo.lng),
|
|
|
|
|
|
|
|
name: that.data.storeInfo.fullName,
|
|
|
|
|
|
|
|
address: that.data.storeInfo.address,
|
|
|
|
|
|
|
|
scale: 18
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
fail (res) {
|
|
|
|
|
|
|
|
console.log(res)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
|