Commit cfd75ac4 authored by youjie's avatar youjie

详情价格

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