Commit c0b56598 authored by 黄奎's avatar 黄奎

页面修改

parent ea958d7a
...@@ -900,7 +900,7 @@ ...@@ -900,7 +900,7 @@
} }
</style> </style>
<template> <template>
<div class="pageViewTrip" v-if="isShow"> <div class="pageViewTrip" v-if="isShow" v-loading="loading">
<div class="tripContWrap"> <div class="tripContWrap">
<div class="sideBar mobileHide"> <div class="sideBar mobileHide">
<div class="sideBarBtns sideTop"> <div class="sideBarBtns sideTop">
...@@ -996,9 +996,9 @@ ...@@ -996,9 +996,9 @@
</div> </div>
</div> </div>
<div class="col-md-12 col-sm-12" <div class="col-md-12 col-sm-12"
v-if="dataList.currentPriceInfo.priceFlight&&dataList.currentPriceInfo.priceFlight!=null" v-if="dataList.currentPriceInfo&&dataList.currentPriceInfo.priceFlight&&dataList.currentPriceInfo.priceFlight.length>0">
v-for="(item,index) in dataList.currentPriceInfo.priceFlight" :key="index"> <template v-for="(item,index) in dataList.currentPriceInfo.priceFlight" >
<div class="arrangementSubContainer"> <div class="arrangementSubContainer" :key="index">
<div class="header"> <div class="header">
<span class="dayIndex">{{item.startDate}}</span> <span class="dayIndex">{{item.startDate}}</span>
</div> </div>
...@@ -1021,6 +1021,7 @@ ...@@ -1021,6 +1021,7 @@
</div> </div>
</div> </div>
</div> </div>
</template>
</div> </div>
</div> </div>
</div> </div>
...@@ -1270,6 +1271,7 @@ ...@@ -1270,6 +1271,7 @@
export default { export default {
data() { data() {
return { return {
loading:false,
defaultImg: 'this.src="' + require('../../assets/img/newtrip/hotel.jpg') + '"', defaultImg: 'this.src="' + require('../../assets/img/newtrip/hotel.jpg') + '"',
travelLngLat: [], travelLngLat: [],
showType: 1, //显示类型(1-所有的,2-每天的) showType: 1, //显示类型(1-所有的,2-每天的)
...@@ -1330,12 +1332,19 @@ ...@@ -1330,12 +1332,19 @@
}, },
//加载数据 //加载数据
getTrip() { getTrip() {
this.loading=true;
this.apipost('b2b_get_GetB2BTravelInfoV1', this.msg, res => { this.apipost('b2b_get_GetB2BTravelInfoV1', this.msg, res => {
this.loading=false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.dataList = res.data.data; this.dataList = res.data.data;
console.log("this.dataList", this.dataList); console.log("this.dataList", this.dataList);
if(res.data.data.currentPriceInfo&&res.data.data.currentPriceInfo.priceFlight){
this.FlightList = res.data.data.currentPriceInfo.priceFlight; this.FlightList = res.data.data.currentPriceInfo.priceFlight;
}
if(res.data.data.currentPriceInfo&&res.data.data.currentPriceInfo.startDate){
this.StartData = res.data.data.currentPriceInfo.startDate; this.StartData = res.data.data.currentPriceInfo.startDate;
}
this.isShow = true; this.isShow = true;
this.getAllPoint(); this.getAllPoint();
//装载景点酒店图片以供预览 //装载景点酒店图片以供预览
......
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