zsk 2 years ago
parent 9be2eba23b
commit a17086eb2a

@ -26,10 +26,6 @@ Page({
goMap () { goMap () {
console.log("123") console.log("123")
let that = this let that = this
wx.getLocation({
type: 'gcj02', //返回可以用于wx.openLocation的经纬度
success (res) {
console.log(res);
wx.openLocation({ wx.openLocation({
latitude: Number(that.data.storeInfo.lat), latitude: Number(that.data.storeInfo.lat),
longitude: Number(that.data.storeInfo.lng), longitude: Number(that.data.storeInfo.lng),
@ -38,11 +34,6 @@ Page({
scale: 18 scale: 18
}) })
}, },
fail (res) {
console.log(res)
}
})
},
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */

Loading…
Cancel
Save