|
@@ -452,7 +452,6 @@ Page({
|
|
const month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1
|
|
const month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1
|
|
const day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate()
|
|
const day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate()
|
|
const curDate = year + '/' + month + "/" + day
|
|
const curDate = year + '/' + month + "/" + day
|
|
- console.log(curDate)
|
|
|
|
let endDate = this.data.endDate.replace(/-/g, '/')
|
|
let endDate = this.data.endDate.replace(/-/g, '/')
|
|
if (curDate <= endDate) {
|
|
if (curDate <= endDate) {
|
|
let newEndDate = year + '年' + this.data.endDate.substring(5, 7) + '月' + this.data.endDate.substring(8, 10) + '日'
|
|
let newEndDate = year + '年' + this.data.endDate.substring(5, 7) + '月' + this.data.endDate.substring(8, 10) + '日'
|