Commit 0ef1be88 authored by xxx's avatar xxx

1

parent f21a9bc8
......@@ -361,14 +361,11 @@ export default {
navigator.geolocation.getCurrentPosition(
//locationSuccess 获取成功的话
function(position) {
console.log('精准度',position.coords.accuracy);
console.log('海拔',position.coords.altitude);
console.log('海拔1',position.coords.altitudeAcuracy);
let LoaObj1 = {};
let LoaObj1xy = {};
//判断该车是否在行驶状态
let drivingDistance = that.getDistanceIndex(that.navigatorXY.y,that.navigatorXY.x,position.coords.latitude,position.coords.longitude);
console.log(drivingDistance);
//console.log(drivingDistance);
if(drivingDistance <= 1){
that.leftBtnDisable = true;
}else{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment