|
|
@ -643,7 +643,8 @@ export default { |
|
|
|
|
|
|
|
|
getlocation() { |
|
|
getlocation() { |
|
|
uni.getLocation({ |
|
|
uni.getLocation({ |
|
|
type: 'wgs84', |
|
|
type: 'gcj02',//腾讯坐标系 |
|
|
|
|
|
isHighAccuracy: true,//开启高精度定位 |
|
|
success: (res) => { |
|
|
success: (res) => { |
|
|
console.log('当前位置的经度:' + res.longitude); |
|
|
console.log('当前位置的经度:' + res.longitude); |
|
|
console.log('当前位置的纬度:' + res.latitude); |
|
|
console.log('当前位置的纬度:' + res.latitude); |
|
|
|