|
@@ -117,11 +117,11 @@ Page({
|
|
|
if (that.data.currentWeek < 1) {
|
|
|
let _bankupWeekList = []
|
|
|
for (let index = 0; index < 7; index++) {
|
|
|
- const bDate = new Date(that.data.currentTime - (index + 1) * 86400000).getDate()
|
|
|
- const _month = Number(baseDate.getMonth() + 1) < 10 ? '0' + Number(baseDate.getMonth() + 1) : baseDate.getMonth() + 1
|
|
|
- const _day = Number(baseDate.getDate()) < 10 ? '0' + baseDate.getDate() : baseDate.getDate()
|
|
|
+ const bDate = new Date(that.data.currentTime - (index + 1) * 86400000)
|
|
|
+ const _month = Number(bDate.getMonth() + 1) < 10 ? '0' + Number(bDate.getMonth() + 1) : bDate.getMonth() + 1
|
|
|
+ const _day = Number(bDate.getDate()) < 10 ? '0' + bDate.getDate() : bDate.getDate()
|
|
|
_bankupWeekList.unshift({
|
|
|
- date: index == 0 ? '约满' : bDate.getDate(),
|
|
|
+ date: bDate.getDate(),
|
|
|
dateStr: bDate.getFullYear() + '-' + _month + '-' + _day,
|
|
|
disabled: true,
|
|
|
status: ''
|