Commit 0864767c authored by 18224442217's avatar 18224442217

no message

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