zsk 2 years ago
parent 9be2eba23b
commit a17086eb2a

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

Loading…
Cancel
Save