Commit 28a84717 authored by zhengke's avatar zhengke

修改

parent e73a3e2f
......@@ -1177,7 +1177,7 @@
if (id == 'tripLine' || id == 'aboutTrip' || id == 'tripArrange') {
this.$refs.tripMap.mapBuild();
}
if (index >= 0 && index != '') {
if (Number(index) >= 0) {
this.getDayPoint(index);
this.$refs.tripMap.mapBuild();
}
......@@ -1236,6 +1236,24 @@
Arr.push(obj2);
})
}
//放入景点
if(x.type==2){
let obj3 = {
lat: x.childItem.pointArray[1],
lng: x.childItem.pointArray[0],
type:2
}
Arr.push(obj3);
}
//放入住宿
if(x.type==3){
let obj4 = {
lat: x.childItem.pointArray[1],
lng: x.childItem.pointArray[0],
type:3
}
Arr.push(obj4);
}
})
console.log('day加载' + index, Arr);
this.travelLngLat = Arr;
......@@ -1258,7 +1276,7 @@
this.crtnav = current
if (current.indexOf("dayList") != -1) {
let index = current.split('dayList')[1];
this.dataindex = index;
this.dataindex = index-1;
}
} catch (error) {}
},
......
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