From a17086eb2a3239d11819b2b3a75926c210b70525 Mon Sep 17 00:00:00 2001 From: zsk <710162063@qq.com> Date: Fri, 29 Mar 2024 14:20:53 +0800 Subject: [PATCH] 1 --- pages/company/company/index.js | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) 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 }) }, /**