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); } })