Commit 6df66435 authored by zhengke's avatar zhengke

修改

parent f05d2ab7
......@@ -402,7 +402,12 @@
<div>晚({{item.can.dinner}})</div>
</div>
</td>
<td style="width:25%"><label>交通:</label>飞机、酒店/机场班车</td>
<td style="width:25%">
<label>交通:</label>
<template v-for="subItem in item.details">
{{subItem.goType}}
</template>
</td>
</tr>
</table>
</div>
......@@ -621,7 +626,7 @@
vshowLLR: this.$route.query.vshowLLR === undefined ? true : this.$route.query.vshowLLR === 'true',
vshowTCNUM: this.$route.query.vshowTCNUM === undefined ? false : this.$route.query.vshowTCNUM === 'true',
vshowO: this.$route.query.vshowO === undefined ? true : this.$route.query.vshowO === 'true',
goType:''
}
},
mounted() {
......@@ -991,17 +996,22 @@
}
dadian.push(obj)
} else if (y.type == 1 && y.childItem.subTraffic.length > 0) {
let title = ''
let title = '';
this.goType='';
y.childItem.subTraffic.forEach((z, i) => {
title += z.startCityName
if (z.arrivalType == 1) {
title += '<i class="iconfont icon-feiji"></i>'
this.goType ='飞机'
} else if (z.arrivalType == 2) {
title += '<i class="iconfont icon-bus"></i>'
this.goType ='巴士'
} else if (z.arrivalType == 3) {
title += '<i class="iconfont icon-icon31"></i>'
this.goType ='轮船'
} else {
title += '<i class="iconfont icon-gaotiedongche"></i>'
this.goType ='火车'
}
if (i + 1 == y.childItem.subTraffic.length) {
title += z.arrivalCityName
......@@ -1009,6 +1019,7 @@
})
let obj = {
title: title,
goType: this.goType,
content: y.childItem.description,
img: '',
ticketName: '',
......@@ -1028,7 +1039,8 @@
playTimeHour: y.childItem.playTimeHour,
playTimeMinutes: y.childItem.playTimeMinutes,
scenicJson: y.childItem.scenicJson,
url: y.childItem.url
url: y.childItem.url,
goType: this.goType,
}
jin.push(obj)
} else if (y.type == 3 && y.childItem.hotelName != '' && y.childItem.imaArray.length > 0) {
......@@ -1187,7 +1199,7 @@
getTitele(item){
if(item!=null&&item!=''){
if(item.indexOf('null')>-1){
return item.replace('null','')
return item.replace('null',' ')
}else{
return item
}
......
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