Commit 8b93cbc5 authored by youjie's avatar youjie

价格

parent cfd75ac4
......@@ -390,6 +390,7 @@ export default {
this.calcMoney();
if(this.p.unionCityList && this.p.unionCityList.length>0 && this.p.originalB2CPrice==this.p.RealPrice){
if(this.p.unionCityList[0].cityId==this.travel.startCityId){
if(!this.currentUnionCity||!this.currentUnionCity.cityId) this.currentUnionCity = this.p.unionCityList[0]
// this.changeCityHandler(this.p.unionCityList[0])
}
......
<template>
<div class="" style="min-height: 80vh; overflow: hidden">
<div
v-if="dataList && !$q.loading.isActive"
v-if="dataList && (!$q.loading.isActive || loadCount>0)"
class="relative"
style="margin: auto"
:style="{ 'max-width': $q.platform.is.desktop ? '1200px' : '100%' }"
......@@ -917,8 +917,8 @@ export default {
detailsImageList: [],
tripImages: [],
moreDays: 0,
RealPrice: 0,
calLoading: false,
loadCount:0
};
},
components: {
......@@ -1170,8 +1170,7 @@ export default {
this.isShowDialog = false;
},
getData() {
// this.$q.loading.show();\
this.calLoading = true
this.$q.loading.show();
let that = this;
this.apipost(
"b2b_get_Get2024B2BTravelInfoV1",
......@@ -1179,7 +1178,6 @@ export default {
(r) => {
try {
if (r.data.resultCode == 1 && r.data.data.id > 0) {
// this.RealPrice = r.data.data.priceList[0].b2CPrice
this.tripImages = [];
this.detailsImageList = [];
let header = r.data.data.feature.headerImage;
......@@ -1227,6 +1225,11 @@ export default {
this.dataList.imgCover = JSON.parse(this.dataList.imgCover);
this.dayList = this.dataList.dayList;
this.dataList.priceList.forEach(x=>{
x.realOrgainB2CPrice= x.originalB2CPrice
x.originalB2CPrice = x.b2CPrice
})
this.isShow = true;
this.isDirect = this.dataList.isDirect;
if (this.dataList.videoStr && this.dataList.videoStr != "") {
......@@ -1305,11 +1308,12 @@ export default {
});
}
} catch (error) {}
this.calLoading = false
// this.$q.loading.hide();
this.$q.loading.hide();
this.loadCount++
},
(e) => {
this.$q.loading.hide();
this.loadCount++
}
);
},
......@@ -1317,7 +1321,7 @@ export default {
this.msg.cityId = unionCity.cityId
this.getData()
return
this.currentPrice.originalB2CPrice = this.RealPrice;
this.currentPrice.originalB2CPrice = this.currentPrice.RealPrice;
if (unionCity.cityId != this.dataList.startCityId) {
if (unionCity.backFlight && unionCity.backFlight.addPrice) {
this.currentPrice.originalB2CPrice += unionCity.backFlight.addPrice;
......
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