Commit 0864767c authored by 18224442217's avatar 18224442217

no message

parent 06a2ef54
...@@ -247,35 +247,18 @@ export default { ...@@ -247,35 +247,18 @@ export default {
watch: { watch: {
priceList:{ priceList:{
handler(newVal, oldval) { handler(newVal, oldval) {
this.userDefaultDate = this.defaultDate; this.getPriceList()
uni.getSystemInfo({
success: (res) => {
this.dayWidth = res.windowWidth;
},
});
this.setDate();
var dateTime = new Date();
dateTime = dateTime.setDate(dateTime.getDate() + 1);
this.nowDay = new Date(dateTime).getDate();
if (this.userDefaultDate != "") {
this.start = this.setDefaultDate(this.userDefaultDate);
}
this.priceStauts = this.initPrice();
// #ifdef MP-ALIPAY
uni.setNavigationBarTitle({
title: "",
});
// #endif
}, },
deep: true, deep: true,
immediate: true, immediate: true,
}, },
defaultDate:{ defaultDate:{
handler(newVal, oldval) { handler(newVal, oldval) {
this.userDefaultDate = newVal; this.userDefaultDate = newVal?newVal:'';
if (this.userDefaultDate != "") { if (this.userDefaultDate != "") {
this.start = this.setDefaultDate(this.userDefaultDate); this.start = this.setDefaultDate(this.userDefaultDate);
}else{
this.start = []
} }
this.priceStauts = this.initPrice(); this.priceStauts = this.initPrice();
}, },
...@@ -325,6 +308,30 @@ export default { ...@@ -325,6 +308,30 @@ export default {
}, },
}, },
methods: { methods: {
getPriceList(){
this.userDefaultDate = this.defaultDate?this.defaultDate:'';
uni.getSystemInfo({
success: (res) => {
this.dayWidth = res.windowWidth;
},
});
this.setDate();
var dateTime = new Date();
dateTime = dateTime.setDate(dateTime.getDate() + 1);
this.nowDay = new Date(dateTime).getDate();
if (this.userDefaultDate != "") {
this.start = this.setDefaultDate(this.userDefaultDate);
}else{
this.start = []
}
this.priceStauts = this.initPrice();
// #ifdef MP-ALIPAY
uni.setNavigationBarTitle({
title: "",
});
// #endif
},
initPrice() { initPrice() {
//年份 //年份
var year = new Date().getFullYear(); var year = new Date().getFullYear();
......
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