Commit cfd75ac4 authored by youjie's avatar youjie

详情价格

parent f86db9eb
...@@ -25,14 +25,13 @@ ...@@ -25,14 +25,13 @@
<div class="cursor-pointer flex flex-col items-center relative" <div class="cursor-pointer flex flex-col items-center relative"
@click="OpenNewUrl(item.LinkUrl)"> @click="OpenNewUrl(item.LinkUrl)">
<div class="row min-w-50px" v-on:mouseenter="handleMouseEnter($event,index)"> <div class="row min-w-50px" v-on:mouseenter="handleMouseEnter($event,index)">
<div class="font-serifEn writing-modes-vertical p text-gray-700"> <div class="navMenuName font-serifEn writing-modes-vertical p text-gray-700">
<span class="inline-block tracking-6 fontW300 remTetil"> <span class="inline-block tracking-6 fontW300">
{{item.MenuName}} {{item.MenuName}}
</span> </span>
</div> </div>
<p class="font-serifEn writing-modes-vertical text-s text-secondary mlF5"> <p class="font-serifEn writing-modes-vertical text-s text-secondary mlF5">
<span class="inline-block tracking-normal fontW100 remText">{{item.MenuSubName}}</span> <span class="navMenuSubName inline-block tracking-normal fontW100 remText">{{item.MenuSubName}}</span>
</p> </p>
</div> </div>
</div> </div>
...@@ -633,8 +632,14 @@ export default { ...@@ -633,8 +632,14 @@ export default {
width: 81px; width: 81px;
padding-bottom: 15px; padding-bottom: 15px;
} }
.navMenuName{
font-size: 18px;
}
.navMenuSubName{
font-size: 16px;
}
.MenuListBox li span,.MenuListBox li p{ .MenuListBox li span,.MenuListBox li p{
max-height: 130px; max-height: 170px;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
...@@ -699,7 +704,7 @@ export default { ...@@ -699,7 +704,7 @@ export default {
line-height: 23px; line-height: 23px;
color: rgb(255,255,255); color: rgb(255,255,255);
transition: all .5s; transition: all .5s;
max-height: 150px; max-height: 300px;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<div class="text-grey-6 f12 q-my-md">出發城市</div> <div class="text-grey-6 f12 q-my-md">出發城市</div>
<div class="row q-col-gutter-sm"> <div class="row q-col-gutter-sm">
<div v-for="(x,i) in p.unionCityList" :key="i"> <div v-for="(x,i) in p.unionCityList" :key="i">
<q-chip size="14px" clickable @click="changeCityHandler(x)" :text-color="currentUnionCity.cityId==x.cityId?'white':'dark'" :color="currentUnionCity.cityId==x.cityId?'primary':'grey-3'" square>{{ x.cityName }}</q-chip> <q-chip size="14px" clickable @click="CityHandler(x)" :text-color="currentUnionCity.cityId==x.cityId?'white':'dark'" :color="currentUnionCity.cityId==x.cityId?'primary':'grey-3'" square>{{ x.cityName }}</q-chip>
</div> </div>
</div> </div>
</div> </div>
...@@ -333,6 +333,14 @@ ...@@ -333,6 +333,14 @@
</div> </div>
</div> </div>
</div> </div>
<div
v-if="p.visaPrice > 0"
class="q-pt-md q-mt-md row items-center"
style="border-top: 1px dashed #eee"
>
<div class="text-grey-6 f12 col">签证費</div>
<div class="product-money f12">CNY {{ p.visaPrice }}/每人</div>
</div>
<div <div
v-if="p.safeMoney > 0" v-if="p.safeMoney > 0"
class="q-pt-md q-mt-md row items-center" class="q-pt-md q-mt-md row items-center"
...@@ -382,7 +390,7 @@ export default { ...@@ -382,7 +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){
this.changeCityHandler(this.p.unionCityList[0]) // this.changeCityHandler(this.p.unionCityList[0])
} }
} }
...@@ -398,7 +406,7 @@ export default { ...@@ -398,7 +406,7 @@ export default {
p: {}, p: {},
chosenObj: null, chosenObj: null,
sumPrice: 0, sumPrice: 0,
currentUnionCity:{} currentUnionCity: {}
}; };
}, },
created() { created() {
...@@ -408,8 +416,8 @@ export default { ...@@ -408,8 +416,8 @@ export default {
this.chosenObj.startDate = this.p.startDate; this.chosenObj.startDate = this.p.startDate;
this.calcMoney() this.calcMoney()
if(this.p.unionCityList && this.p.unionCityList.length>0){ if(this.p.unionCityList && this.p.unionCityList.length>0){
//this.currentUnionCity = this.p.unionCityList[0] // this.currentUnionCity = this.p.unionCityList[0]
this.changeCityHandler(this.p.unionCityList[0]) // this.changeCityHandler(this.p.unionCityList[0])
} }
} }
...@@ -499,8 +507,19 @@ export default { ...@@ -499,8 +507,19 @@ export default {
this.chosenObj.lrCount; this.chosenObj.lrCount;
//money += this.p.visaPrice * sumCount; //money += this.p.visaPrice * sumCount;
money += this.p.otherPrice * sumCount; money += this.p.otherPrice * sumCount;
var allrCount = this.chosenObj.etCount+this.chosenObj.crCount+this.chosenObj.lrCount+this.chosenObj.yeCount
if(this.p.visaPrice>0) {
money +=this.p.visaPrice*allrCount // 签证费
}
if(this.p.safeMoney>0) {
money +=this.p.safeMoney*allrCount // 保险费
}
this.sumPrice = money; this.sumPrice = money;
}, },
CityHandler(x){
this.currentUnionCity = x
this.$emit("changeCity",x)
},
changeCityHandler(x){ changeCityHandler(x){
this.currentUnionCity = x this.currentUnionCity = x
this.$emit("changeCity",x) this.$emit("changeCity",x)
......
...@@ -1424,6 +1424,14 @@ export default { ...@@ -1424,6 +1424,14 @@ export default {
qMsg:{ qMsg:{
handler(n,o){ handler(n,o){
} }
},
'$route':{
handler(n,o){
if(this.$route.params.TeamType){
this.qMsg.TeamType = this.$route.params.TeamType
this.changeData()
}
}
} }
}, },
mounted() { mounted() {
......
...@@ -249,7 +249,7 @@ ...@@ -249,7 +249,7 @@
{{ currentPrice.startDate }} {{ currentPrice.startDate }}
</div> </div>
<q-popup-proxy ref="qDateProxy"> <q-popup-proxy ref="qDateProxy">
<calendar <calendar v-loading="calLoading"
class="bg-white q-pa-md" class="bg-white q-pa-md"
:priceList="dataList.priceList" :priceList="dataList.priceList"
@change="changeChosenDateHandler" @change="changeChosenDateHandler"
...@@ -343,7 +343,7 @@ ...@@ -343,7 +343,7 @@
label="6個工作日內(不含例休假)確認" label="6個工作日內(不含例休假)確認"
/> />
</div> </div>
<div class="q-mt-lg row" v-if="$q.platform.is.desktop"> <div class="q-mt-lg row" v-if="$q.platform.is.desktop" v-loading="calLoading">
<div class="col"> <div class="col">
<calendar <calendar
:priceList="dataList.priceList" :priceList="dataList.priceList"
...@@ -818,6 +818,7 @@ export default { ...@@ -818,6 +818,7 @@ export default {
isGetPriceFlight: true, isGetPriceFlight: true,
pType: 1, //类型 1 来源B2C pType: 1, //类型 1 来源B2C
newConfigId: 0, //列表里的configId newConfigId: 0, //列表里的configId
pType: 1,
}, },
currentPrice: {}, currentPrice: {},
isShow: false, isShow: false,
...@@ -916,6 +917,8 @@ export default { ...@@ -916,6 +917,8 @@ export default {
detailsImageList: [], detailsImageList: [],
tripImages: [], tripImages: [],
moreDays: 0, moreDays: 0,
RealPrice: 0,
calLoading: false,
}; };
}, },
components: { components: {
...@@ -1167,7 +1170,8 @@ export default { ...@@ -1167,7 +1170,8 @@ 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",
...@@ -1175,6 +1179,7 @@ export default { ...@@ -1175,6 +1179,7 @@ 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;
...@@ -1300,7 +1305,8 @@ export default { ...@@ -1300,7 +1305,8 @@ export default {
}); });
} }
} catch (error) {} } catch (error) {}
this.$q.loading.hide(); this.calLoading = false
// this.$q.loading.hide();
}, },
(e) => { (e) => {
this.$q.loading.hide(); this.$q.loading.hide();
...@@ -1308,7 +1314,10 @@ export default { ...@@ -1308,7 +1314,10 @@ export default {
); );
}, },
changeCityHandler(unionCity) { changeCityHandler(unionCity) {
this.currentPrice.originalB2CPrice = this.currentPrice.RealPrice; this.msg.cityId = unionCity.cityId
this.getData()
return
this.currentPrice.originalB2CPrice = this.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;
...@@ -1317,12 +1326,14 @@ export default { ...@@ -1317,12 +1326,14 @@ export default {
this.currentPrice.originalB2CPrice += unionCity.goFlight.addPrice; this.currentPrice.originalB2CPrice += unionCity.goFlight.addPrice;
} }
} }
if (this.$q.platform.is.desktop) if (this.$q.platform.is.desktop){
this.$refs.calendar.changePriceHandler( this.$refs.calendar.changePriceHandler(
this.currentPrice.startDate, this.currentPrice.startDate,
this.currentPrice.originalB2CPrice this.currentPrice.originalB2CPrice
); );
this.$forceUpdate(); // this.$forceUpdate();
}
}, },
// 获取车的详情 // 获取车的详情
getCarData() { getCarData() {
......
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