Commit 1648fe1d authored by 罗超's avatar 罗超

修改

parent 6fb01a56
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
label="了解更多" label="了解更多"
class="q-px-lg" class="q-px-lg"
unelevated unelevated
@click="CommonJump('/About', {})" @click="CommonJump('/customer/14', {},'blank')"
/> />
</div> </div>
</div> </div>
......
...@@ -155,30 +155,34 @@ export default { ...@@ -155,30 +155,34 @@ export default {
this.changeMonthHandler(); this.changeMonthHandler();
}, },
changeMonthHandler() { changeMonthHandler() {
this.col = []; try {
let newDate = new Date(this.months[this.currentMonth].monthValue); this.col = [];
let newBeginDate = date.startOfDate(newDate, "month"); let newDate = new Date(this.months[this.currentMonth].monthValue+'/01');
let newEndDate = date.endOfDate(newDate, "month"); let newBeginDate = date.startOfDate(newDate, "month");
for (let i = 0; i < date.formatDate(newBeginDate, "d"); i++) { let newEndDate = date.endOfDate(newDate, "month");
this.col.push({ for (let i = 0; i < date.formatDate(newBeginDate, "d"); i++) {
value: "", this.col.push({
}); value: "",
} });
while (newBeginDate <= newEndDate) { }
let value = date.formatDate(newBeginDate, "YYYY-MM-DD"); while (newBeginDate <= newEndDate) {
let price = this.prices.find((x) => x.startDate == value); let value = date.formatDate(newBeginDate, "YYYY-MM-DD");
this.col.push({ let price = this.prices.find((x) => x.startDate == value);
value, this.col.push({
display: date.formatDate(newBeginDate, "DD"), value,
price, display: date.formatDate(newBeginDate, "DD"),
}); price,
newBeginDate = date.addToDate(newBeginDate, { days: 1 }); });
} newBeginDate = date.addToDate(newBeginDate, { days: 1 });
let after = 6 - date.formatDate(newBeginDate, "d"); }
for (let i = 0; i < after; i++) { let after = 6 - date.formatDate(newBeginDate, "d");
this.col.push({ for (let i = 0; i < after; i++) {
value: "", this.col.push({
}); value: "",
});
}
} catch (error) {
alert(error)
} }
}, },
chosenDateHandler(item) { chosenDateHandler(item) {
......
<template> <template>
<div class="q-mt-md"> <div class="q-mt-md" :class="{'q-px-md':$q.platform.is.mobile}">
<div class="text-subtitle2 text-weight-bold">產品概要</div> <div class="text-subtitle2 text-weight-bold">產品概要</div>
<div class="row q-pt-md q-col-gutter-md"> <div class="row q-pt-md q-col-gutter-md">
<div class="row items-center q-pt-mb" <div class="row items-center q-pt-mb"
......
...@@ -845,6 +845,7 @@ export default { ...@@ -845,6 +845,7 @@ export default {
console.log(r.data,'r.data.data.id') console.log(r.data,'r.data.data.id')
if(r.data.OtherFile){ if(r.data.OtherFile){
this.tripImages=r.data.OtherFile this.tripImages=r.data.OtherFile
this.$forceUpdate();
} }
}) })
}, },
......
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