diff --git a/pages/company/company/index.js b/pages/company/company/index.js index 0b4c77e..22b98fa 100644 --- a/pages/company/company/index.js +++ b/pages/company/company/index.js @@ -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 }) }, /**