Commit 6df66435 authored by zhengke's avatar zhengke

修改

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