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