|
@@ -215,7 +215,7 @@ export default {
|
|
|
const query = uni.createSelectorQuery().in(this);
|
|
|
query.select('.map-route-car').boundingClientRect(data => {
|
|
|
if(data){
|
|
|
- document.getElementById('map-route-main').scrollLeft = data.left-20;
|
|
|
+ document.getElementById('map-route-main').scrollLeft = data.left-100;
|
|
|
}
|
|
|
|
|
|
//this.downBtn()
|
|
@@ -225,17 +225,20 @@ export default {
|
|
|
}
|
|
|
for(var i in this.carList){
|
|
|
var car =this.carList[i];
|
|
|
-
|
|
|
- //car.currentStationStatus="3";
|
|
|
+ //car.currentStationId=this.stationList[this.stationList.length-1].id
|
|
|
+ //car.currentStationStatus="1";
|
|
|
for(var j in this.stationList){
|
|
|
var station =this.stationList[j];
|
|
|
|
|
|
if(car.currentStationId==station.id){
|
|
|
if(car.currentStationStatus==3){
|
|
|
- console.log(this.stationList[eval(j+"+"+1)].id);
|
|
|
- car.currentStationId2=this.stationList[eval(j+"+"+1)].id
|
|
|
|
|
|
- this.stationList[eval(j+"+"+1)].currentStationStatus="2";
|
|
|
+ if(eval(j+"+"+1)!=this.stationList.length){
|
|
|
+ console.log(this.stationList[eval(j+"+"+1)].id);
|
|
|
+ car.currentStationId2=this.stationList[eval(j+"+"+1)].id
|
|
|
+ this.stationList[eval(j+"+"+1)].currentStationStatus="2";
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}else{
|
|
|
this.stationList[j].currentStationStatus=car.currentStationStatus;
|
|
@@ -315,7 +318,7 @@ export default {
|
|
|
const query = uni.createSelectorQuery().in(this);
|
|
|
query.select('.map-down').boundingClientRect(data => {
|
|
|
if(data){
|
|
|
- document.getElementById('map-route-main').scrollLeft = data.left-20;
|
|
|
+ document.getElementById('map-route-main').scrollLeft = data.left-100;
|
|
|
}
|
|
|
this.$refs.common.showLoading(false);
|
|
|
//this.downBtn()
|
|
@@ -354,7 +357,7 @@ export default {
|
|
|
const query = uni.createSelectorQuery().in(this);
|
|
|
query.select('.map-down').boundingClientRect(data => {
|
|
|
if(data){
|
|
|
- document.getElementById('map-route-main').scrollLeft = data.left-20;
|
|
|
+ document.getElementById('map-route-main').scrollLeft = data.left-100;
|
|
|
}
|
|
|
this.$refs.common.showLoading(false);
|
|
|
//this.downBtn()
|
|
@@ -451,7 +454,7 @@ export default {
|
|
|
const query = uni.createSelectorQuery().in(this);
|
|
|
query.select('.map-down').boundingClientRect(data => {
|
|
|
if(data){
|
|
|
- document.getElementById('map-route-main').scrollLeft = data.left-20;
|
|
|
+ document.getElementById('map-route-main').scrollLeft = data.left-100;
|
|
|
}
|
|
|
this.$refs.common.showLoading(false);
|
|
|
//this.downBtn()
|