Commit 6a283618 authored by zhengke's avatar zhengke

修改

parent 8bc0f040
...@@ -947,31 +947,40 @@ ...@@ -947,31 +947,40 @@
<span class="subTitle">酒店安排</span> <span class="subTitle">酒店安排</span>
</div> </div>
<template v-for="(item,index) in dataList.dayList"> <template v-for="(item,index) in dataList.dayList">
<template v-for="(subItem,subIndex) in item.dayArray"
v-if="subItem.type==3">
<div class="col-md-12 col-sm-12"> <div class="col-md-12 col-sm-12">
<div class="arrangementSubContainer"> <div class="arrangementSubContainer">
<div class="header hotel"> <div class="header hotel">
<span class="dayIndex">D{{item.dayNum}}</span> <span class="dayIndex">D{{item.dayNum}}</span>
<div class="city"> <div class="city">
<span>{{subItem.childItem.cityName}}</span> <span>
<template
v-for="(subItem,subIndex) in getHotelArray(item.dayArray)"
v-if="subIndex==0">
{{subItem.childItem.cityName}}
</template>
</span>
</div> </div>
</div> </div>
<div class="content"> <div class="content">
<template v-for="(subItem,subIndex) in item.dayArray"
v-if="subItem.type==3">
<div class="name hotel"> <div class="name hotel">
<span class="left"> <span class="left">
<i class="iconfont icon-bed"></i> <i class="iconfont icon-bed"></i>
</span> </span>
<span class="right"> <span class="right">
<template v-if="subItem.childItem.newHotelName!=''">{{subItem.childItem.newHotelName}}</template> <template
<template v-else>{{subItem.childItem.hotelName}}</template> v-if="subItem.childItem.newHotelName!=''">{{subItem.childItem.newHotelName}}</template>
<template
v-else>{{subItem.childItem.hotelName}}</template>
</span> </span>
</div> </div>
</template>
</div> </div>
</div> </div>
</div> </div>
</template> </template>
</template>
</div> </div>
</div> </div>
</div> </div>
...@@ -1174,6 +1183,7 @@ ...@@ -1174,6 +1183,7 @@
this.apipost('b2b_get_GetB2BTravelInfoV1', this.msg, res => { this.apipost('b2b_get_GetB2BTravelInfoV1', this.msg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.dataList = res.data.data; this.dataList = res.data.data;
console.log(this.dataList,'datalist');
this.isShow = true; this.isShow = true;
this.getAllPoint(); this.getAllPoint();
//装载景点酒店图片以供预览 //装载景点酒店图片以供预览
...@@ -1306,6 +1316,17 @@ ...@@ -1306,6 +1316,17 @@
this.travelLngLat = Arr; this.travelLngLat = Arr;
} }
}, },
getHotelArray(hotelArray) {
var newArray = [];
if (hotelArray != null && hotelArray.length > 0) {
hotelArray.forEach(item => {
if (item.type == 3) {
newArray.push(item);
}
})
}
return newArray;
},
//滚动选中 //滚动选中
handleScroll() { handleScroll() {
try { try {
......
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