加强精准

main
Tuzki 2 years ago
parent a4795a8cdc
commit f412b3aa95
  1. 12
      pages/index/lineDraw/lineDraw.vue
  2. 1
      pages/index/myLocation/myLocation.vue
  3. 1
      pages/index/pointPick/pointPick.vue

@ -51,6 +51,8 @@
this_.arrs = []
this_.locationss[0].points = []
uni.startLocationUpdate({
type:'gcj02',
altitude:true,
success: function (res) {
console.log(res, '开启小程序接收位置消息成功');
uni.onLocationChange(function (res) {
@ -129,6 +131,16 @@
that.canClick=false
that.clearMap()
},3000)
},
fail:(err)=>{
uni.showToast({
title:'记录失败',
icon:'none'
})
setTimeout(()=>{
that.canClick=false
that.clearMap()
},3000)
}
});
}

@ -21,6 +21,7 @@
let this_ = this;
uni.getLocation({
type: 'gcj02',
altitude:true,
success: function (res) {
console.log('当前位置的经度:' + res.longitude);
console.log('当前位置的纬度:' + res.latitude);

@ -207,6 +207,7 @@ export default {
let this_ = this;
uni.getLocation({
type: 'gcj02',
altitude:true,
success: function (res) {
console.log('当前位置的经度:' + res.longitude);
console.log('当前位置的纬度:' + res.latitude);

Loading…
Cancel
Save