Commit 8b93cbc5 authored by youjie's avatar youjie

价格

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