Commit c844cec0 authored by xxx's avatar xxx

1

parent 47172720
...@@ -198,6 +198,23 @@ export default { ...@@ -198,6 +198,23 @@ export default {
let au = document.getElementById('audio1'); let au = document.getElementById('audio1');
au.currentTime = 0; au.currentTime = 0;
au.play(); au.play();
}else{
if(this.paidanFlag == 0){
this.paidanFlag = res.data.content[0].flag;
this.showDe = true;
this.btnShow1 = true;
this.btnShow2 = false;
this.btnShow3 = false;
this.btnShow4 = false;
this.carDestination = res.data.content[0].destination;
this.dingDanId = res.data.content[0].id;
this.equipmentName = resSon1.data.content[0].equipmentName;
//启动语音
this.startOrderSrcUrl = newOrder;
let au = document.getElementById('audio1');
au.currentTime = 0;
au.play();
}
} }
//获取车辆坐标计算距离并返回给后台 //获取车辆坐标计算距离并返回给后台
httpGet(carRealTimeLocationQuery2,{name:resSon1.data.content[0].equipmentName}).then((res2) => { httpGet(carRealTimeLocationQuery2,{name:resSon1.data.content[0].equipmentName}).then((res2) => {
...@@ -262,6 +279,23 @@ export default { ...@@ -262,6 +279,23 @@ export default {
let au = document.getElementById('audio1'); let au = document.getElementById('audio1');
au.currentTime = 0; au.currentTime = 0;
au.play(); au.play();
}else{
if(this.paidanFlag == 0){
this.paidanFlag = res.data.content[0].flag;
this.showDe = true;
this.btnShow1 = true;
this.btnShow2 = false;
this.btnShow3 = false;
this.btnShow4 = false;
this.carDestination = res.data.content[0].destination;
this.dingDanId = res.data.content[0].id;
this.equipmentName = resSon1.data.content[0].equipmentName;
//启动语音
this.startOrderSrcUrl = newOrder;
let au = document.getElementById('audio1');
au.currentTime = 0;
au.play();
}
} }
//获取车辆坐标计算距离并返回给后台 //获取车辆坐标计算距离并返回给后台
httpGet(carRealTimeLocationQuery2,{name:resSon1.data.content[0].equipmentName}).then((res2) => { httpGet(carRealTimeLocationQuery2,{name:resSon1.data.content[0].equipmentName}).then((res2) => {
......
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