master
xy 3 years ago
parent 4a6bd15082
commit bd4f7d9b52

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

Loading…
Cancel
Save