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

修改

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