|
@@ -257,6 +257,7 @@
|
|
},
|
|
},
|
|
//开始轨迹
|
|
//开始轨迹
|
|
startTrack() {
|
|
startTrack() {
|
|
|
|
+ var that=this
|
|
console.log('车牌号')
|
|
console.log('车牌号')
|
|
console.log(this.detailData.carNo)
|
|
console.log(this.detailData.carNo)
|
|
if (!this.detailData.carNo) {
|
|
if (!this.detailData.carNo) {
|
|
@@ -267,6 +268,10 @@
|
|
|
|
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ uni.showLoading({
|
|
|
|
+ title:'加载中',
|
|
|
|
+ mask:true
|
|
|
|
+ })
|
|
that.detailData.compId = uni.getStorageSync('pcUserInfo').compId
|
|
that.detailData.compId = uni.getStorageSync('pcUserInfo').compId
|
|
that.detailData.commonId = uni.getStorageSync('pcUserInfo').userId
|
|
that.detailData.commonId = uni.getStorageSync('pcUserInfo').userId
|
|
that.detailData.driverName = uni.getStorageSync('userInfo').userName
|
|
that.detailData.driverName = uni.getStorageSync('userInfo').userName
|
|
@@ -277,7 +282,7 @@
|
|
console.log(res1)
|
|
console.log(res1)
|
|
if (res1.data.code == 200) {
|
|
if (res1.data.code == 200) {
|
|
console.log(222)
|
|
console.log(222)
|
|
- uni.hideLoading()
|
|
|
|
|
|
+
|
|
that.$helper.fUN_AmapLocation.start({
|
|
that.$helper.fUN_AmapLocation.start({
|
|
intervalTime: 5000,
|
|
intervalTime: 5000,
|
|
isReport: false
|
|
isReport: false
|
|
@@ -324,6 +329,7 @@
|
|
longitude: _data.longitude
|
|
longitude: _data.longitude
|
|
});
|
|
});
|
|
console.log('上传经纬度list', res)
|
|
console.log('上传经纬度list', res)
|
|
|
|
+ uni.hideLoading()
|
|
uni.removeStorageSync('mapGJ');
|
|
uni.removeStorageSync('mapGJ');
|
|
this.$helper.gjList = []
|
|
this.$helper.gjList = []
|
|
})
|
|
})
|