From bd4f7d9b526a6a3ec29873b71340e9de0bf1a181 Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Thu, 2 Feb 2023 10:50:27 +0800 Subject: [PATCH] 2023-2-2 --- pages/detailNursing/detailNursing.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/detailNursing/detailNursing.vue b/pages/detailNursing/detailNursing.vue index 84414f6..522301a 100644 --- a/pages/detailNursing/detailNursing.vue +++ b/pages/detailNursing/detailNursing.vue @@ -239,7 +239,10 @@ //获取当前定位信息 getLoaction() { return new Promise((resolve, reject) => { - uni.getLocation().then(res => { + uni.getLocation({ + type:'gcj02', + isHighAccuracy:true + }).then(res => { if (res[1]) { this.location.lat = res[1]?.latitude this.location.lng = res[1]?.longitude @@ -267,6 +270,7 @@ title: '操作频繁,请稍后再试' }) reject(res) + console.log(res); } })