Commit f0add6e1 authored by 沈良进's avatar 沈良进

Merge branch 'master' of http://gitlab.oytour.com/viitto/million

parents cd9706c3 3e035466
...@@ -248,7 +248,7 @@ export default { ...@@ -248,7 +248,7 @@ export default {
isSupportChildren: 1, isSupportChildren: 1,
safeMoney: 0, safeMoney: 0,
} }
if(date.formatDate(Date.now(), 'YYYY-MM-DD')!=x.Date){ if(date.formatDate(Date.now(), 'YYYY/MM/DD')!=x.Date){
arr.push(dataObj) arr.push(dataObj)
} }
} }
......
...@@ -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>
......
...@@ -899,7 +899,7 @@ export default { ...@@ -899,7 +899,7 @@ export default {
this.goodsType = category.children; this.goodsType = category.children;
// this.ticked = categoryInfo; // this.ticked = categoryInfo;
console.log("this.areaListJSONTMP", this.areaListJSONTMP, this.areaList); console.log("this.areaListJSONTMP", this.areaListJSONTMP, this.areaList);
// this.priceModel = { min: priceInfo.minPrice, max: priceInfo.maxPrice }; this.priceModel = { min: priceInfo.minPrice, max: priceInfo.maxPrice };
// this.msg.priceRange = { // this.msg.priceRange = {
// min: priceInfo.minPrice, // min: priceInfo.minPrice,
// max: priceInfo.maxPrice, // max: priceInfo.maxPrice,
......
...@@ -155,8 +155,9 @@ export default { ...@@ -155,8 +155,9 @@ export default {
this.changeMonthHandler(); this.changeMonthHandler();
}, },
changeMonthHandler() { changeMonthHandler() {
try {
this.col = []; this.col = [];
let newDate = new Date(this.months[this.currentMonth].monthValue); let newDate = new Date(this.months[this.currentMonth].monthValue+'/01');
let newBeginDate = date.startOfDate(newDate, "month"); let newBeginDate = date.startOfDate(newDate, "month");
let newEndDate = date.endOfDate(newDate, "month"); let newEndDate = date.endOfDate(newDate, "month");
for (let i = 0; i < date.formatDate(newBeginDate, "d"); i++) { for (let i = 0; i < date.formatDate(newBeginDate, "d"); i++) {
...@@ -180,6 +181,9 @@ export default { ...@@ -180,6 +181,9 @@ export default {
value: "", value: "",
}); });
} }
} catch (error) {
alert(error)
}
}, },
chosenDateHandler(item) { chosenDateHandler(item) {
if (item.price && item.price.remainNum>0) { if (item.price && item.price.remainNum>0) {
......
<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"
......
...@@ -919,7 +919,7 @@ export default { ...@@ -919,7 +919,7 @@ export default {
MailingMoney: MailingMoneyList[0].MailingMoney, MailingMoney: MailingMoneyList[0].MailingMoney,
PriceList: x.PriceList, PriceList: x.PriceList,
} }
if(date.formatDate(Date.now(), 'YYYY-MM-DD')!=x.Date&&x.Date>date.formatDate(Date.now(), 'YYYY-MM-DD')){ if(date.formatDate(Date.now(), 'YYYY/MM/DD')!=x.Date&&x.Date>date.formatDate(Date.now(), 'YYYY/MM/DD')){
arr.push(dataObj) arr.push(dataObj)
} }
}) })
......
...@@ -55,7 +55,8 @@ ...@@ -55,7 +55,8 @@
</q-field> </q-field>
<q-field stack-label label="人数及客房" standout <q-field stack-label label="人数及客房" standout
class="q-ml-lg" class="q-ml-lg"
:style="{'min-width': $q.platform.is.desktop?'190px':'130px',}" dense> :style="{'min-width': $q.platform.is.desktop?'190px':'130px',
'min-max': $q.platform.is.desktop?'190px':'col',}" dense>
<div class="self-center full-width no-outline" tabindex="0"> <div class="self-center full-width no-outline" tabindex="0">
{{numberOfAdults}}成人 {{numberOfAdults}}成人
<template v-if="numberOfChildren>0"> {{numberOfChildren}}儿童</template> <template v-if="numberOfChildren>0"> {{numberOfChildren}}儿童</template>
...@@ -864,10 +865,10 @@ export default { ...@@ -864,10 +865,10 @@ export default {
mounted() { mounted() {
window.addEventListener("scroll", this.handleScroll); window.addEventListener("scroll", this.handleScroll);
this.dateRange.to = date.formatDate(date.addToDate(new Date(), { days: 9 }), 'YYYY-MM-DD') this.dateRange.to = date.formatDate(date.addToDate(new Date(), { days: 9 }), 'YYYY/MM/DD')
this.dateRange.from = date.formatDate(date.addToDate(new Date(), { days: 8 }), 'YYYY-MM-DD') this.dateRange.from = date.formatDate(date.addToDate(new Date(), { days: 8 }), 'YYYY/MM/DD')
this.msg.arrivalDate = date.formatDate(date.addToDate(new Date(), { days: 8 }), 'YYYY-MM-DD') this.msg.arrivalDate = date.formatDate(date.addToDate(new Date(), { days: 8 }), 'YYYY/MM/DD')
this.msg.departureDate = date.formatDate(date.addToDate(new Date(), { days: 9 }), 'YYYY-MM-DD') this.msg.departureDate = date.formatDate(date.addToDate(new Date(), { days: 9 }), 'YYYY/MM/DD')
this.dateRangeFormat = `${this.msg.arrivalDate} - ${this.msg.departureDate} ` this.dateRangeFormat = `${this.msg.arrivalDate} - ${this.msg.departureDate} `
this.StartDate = this.msg.arrivalDate this.StartDate = this.msg.arrivalDate
...@@ -930,8 +931,8 @@ export default { ...@@ -930,8 +931,8 @@ export default {
}, },
// 日期筛选 // 日期筛选
dateRangeHandler(e) { dateRangeHandler(e) {
let arrivalDate = `${e.from.year}-${e.from.month}-${e.from.day}` let arrivalDate = `${e.from.year}/${e.from.month}/${e.from.day}`
let departureDate = `${e.to.year}-${e.to.month}-${e.to.day} ` let departureDate = `${e.to.year}/${e.to.month}/${e.to.day} `
let liveNvm = this.dateDiffer(arrivalDate,departureDate) let liveNvm = this.dateDiffer(arrivalDate,departureDate)
if(liveNvm>9||liveNvm==0) return this.$message.error(`住宿时间最多九晚,至少一晚`) if(liveNvm>9||liveNvm==0) return this.$message.error(`住宿时间最多九晚,至少一晚`)
this.liveNvm = liveNvm this.liveNvm = liveNvm
......
...@@ -740,7 +740,7 @@ export default { ...@@ -740,7 +740,7 @@ export default {
mounted() { mounted() {
window.addEventListener("scroll", this.handleScroll); window.addEventListener("scroll", this.handleScroll);
const timeStamp = Date.now() const timeStamp = Date.now()
const formattedString = date.formatDate(timeStamp, 'YYYY-MM-DD') const formattedString = date.formatDate(timeStamp, 'YYYY/MM/DD')
this.currentYM = { this.currentYM = {
year: date.formatDate(timeStamp, 'YYYY'), year: date.formatDate(timeStamp, 'YYYY'),
month: date.formatDate(timeStamp, 'MM'), month: date.formatDate(timeStamp, 'MM'),
...@@ -991,7 +991,7 @@ export default { ...@@ -991,7 +991,7 @@ export default {
Count: 1, Count: 1,
safeMoney: 0, safeMoney: 0,
} }
if(date.formatDate(Date.now(), 'YYYY-MM-DD')!=x.Date){ if(date.formatDate(Date.now(), 'YYYY/MM/DD')!=x.Date){
arr.push(dataObj) arr.push(dataObj)
} }
} }
......
...@@ -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();
} }
}) })
}, },
......
...@@ -650,8 +650,8 @@ export default { ...@@ -650,8 +650,8 @@ export default {
this.parameters.totalPriceJapanese += parseFloat(AdultJapanCount+childJapanCount+onlyJanpnase); this.parameters.totalPriceJapanese += parseFloat(AdultJapanCount+childJapanCount+onlyJanpnase);
}) })
let hTIme = date.formatDate(date.addToDate(new Date(this.parameters.arrivalDate), { days: 1 }), 'YYYY-MM-DD') let hTIme = date.formatDate(date.addToDate(new Date(this.parameters.arrivalDate), { days: 1 }), 'YYYY/MM/DD')
let qTime = date.formatDate(date.addToDate(new Date(hTIme), { days: -1 }), 'YYYY-MM-DD') let qTime = date.formatDate(date.addToDate(new Date(hTIme), { days: -1 }), 'YYYY/MM/DD')
this.checkInTimeH = qTime this.checkInTimeH = qTime
this.checkInTimeQ = hTIme this.checkInTimeQ = hTIme
} else { } else {
......
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