Commit d9875797 authored by youjie's avatar youjie

优化车产品详情

parent f6cbbaa5
...@@ -162,7 +162,7 @@ export default { ...@@ -162,7 +162,7 @@ export default {
dataList: { dataList: {
handler(n, o) { handler(n, o) {
this.dataList = n; this.dataList = n;
this.handleSelect(n.AirportList[0],1)
}, },
deep: true, deep: true,
immediate: true immediate: true
......
...@@ -132,6 +132,7 @@ export default { ...@@ -132,6 +132,7 @@ export default {
let current = this.months.findIndex((x) => x.monthValue == firstMonth) let current = this.months.findIndex((x) => x.monthValue == firstMonth)
this.currentMonth = current>-1?current:0; this.currentMonth = current>-1?current:0;
this.changeMonthHandler(); this.changeMonthHandler();
}, },
createChosenDateHandler() { createChosenDateHandler() {
let beginDate = new Date(); let beginDate = new Date();
...@@ -174,6 +175,15 @@ export default { ...@@ -174,6 +175,15 @@ export default {
price, price,
}); });
newBeginDate = date.addToDate(newBeginDate, { days: 1 }); newBeginDate = date.addToDate(newBeginDate, { days: 1 });
// 默认日期 价格
let InitialOption = false
for(let i=0;i<this.col.length;i++){
if (!InitialOption&&this.col[i].price && this.col[i].price.remainNum>0) {
this.currentDate = this.col[i].value;
this.$emit("change", this.col[i]);
InitialOption = true
}
}
} }
let after = 6 - date.formatDate(newBeginDate, "d"); let after = 6 - date.formatDate(newBeginDate, "d");
for (let i = 0; i < after; i++) { for (let i = 0; i < after; i++) {
......
...@@ -432,8 +432,8 @@ ...@@ -432,8 +432,8 @@
class="q-mt-lg trip-text bg-orange-1 q-pa-md rounded-borders q-mb-xl" class="q-mt-lg trip-text bg-orange-1 q-pa-md rounded-borders q-mb-xl"
style="border: 1px dashed var(--q-color-warning)" style="border: 1px dashed var(--q-color-warning)"
v-html=" v-html="
dataList.feature dataList.BuyNotes
? dataList.feature.importantTip || '暂无购买须知' ? dataList.BuyNotes || '暂无购买须知'
: '暂无购买须知' : '暂无购买须知'
" "
:class="{ :class="{
...@@ -645,7 +645,7 @@ export default { ...@@ -645,7 +645,7 @@ export default {
"由於交通擁堵,時長可能會略有變化", "由於交通擁堵,時長可能會略有變化",
"每增加 30 分鐘,將收取相應的延期費。 (現場支付)", "每增加 30 分鐘,將收取相應的延期費。 (現場支付)",
], ],
showOrderPreview: false, showOrderPreview: true,
videoPosition: 0, videoPosition: 0,
currentHeight: 0, currentHeight: 0,
isPictureInPicture: false, isPictureInPicture: false,
......
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