Commit 79b145f0 authored by youjie's avatar youjie

日期修复

parent 571bf4af
......@@ -488,7 +488,12 @@
// 这里使用i++,是因为this.valueArr数组的长度是不确定长度的,它根据this.params的值来配置长度
// 进入if规则,i会加1,保证了能获取准确的值
if (this.params.year) this.year = this.years[this.valueArr[i++]];
if (this.params.month) this.month = this.months[this.valueArr[i++]];
if (this.params.month) {
this.month = this.months[this.valueArr[i++]];
if(this.day>new Date(this.year, this.month, 0).getDate()){
this.setDays()
}
}
if (this.params.day) this.day = this.days[this.valueArr[i++]];
if (this.params.hour) this.hour = this.hours[this.valueArr[i++]];
if (this.params.minute) this.minute = this.minutes[this.valueArr[i++]];
......@@ -511,6 +516,7 @@
})
}
}
},
// 用户点击确定按钮
getResult(event = null) {
......
......@@ -408,7 +408,6 @@
this.mainColor = this.$uiConfig.mainColor;
if(options.orderMsg){
this.orderMsg = JSON.parse(options.orderMsg)
console.log(this.orderMsg,'----------')
}
},
onShow() {
......
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