|
|
|
@ -239,7 +239,10 @@
|
|
|
|
//获取当前定位信息
|
|
|
|
//获取当前定位信息
|
|
|
|
getLoaction() {
|
|
|
|
getLoaction() {
|
|
|
|
return new Promise((resolve, reject) => {
|
|
|
|
return new Promise((resolve, reject) => {
|
|
|
|
uni.getLocation().then(res => {
|
|
|
|
uni.getLocation({
|
|
|
|
|
|
|
|
type:'gcj02',
|
|
|
|
|
|
|
|
isHighAccuracy:true
|
|
|
|
|
|
|
|
}).then(res => {
|
|
|
|
if (res[1]) {
|
|
|
|
if (res[1]) {
|
|
|
|
this.location.lat = res[1]?.latitude
|
|
|
|
this.location.lat = res[1]?.latitude
|
|
|
|
this.location.lng = res[1]?.longitude
|
|
|
|
this.location.lng = res[1]?.longitude
|
|
|
|
@ -267,6 +270,7 @@
|
|
|
|
title: '操作频繁,请稍后再试'
|
|
|
|
title: '操作频繁,请稍后再试'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
reject(res)
|
|
|
|
reject(res)
|
|
|
|
|
|
|
|
console.log(res);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|