|
@@ -88,19 +88,26 @@ Page({
|
|
|
const _day = Number(baseDate.getDate()) < 10 ? '0' + baseDate.getDate() : baseDate.getDate()
|
|
|
if (index > that.data.currentWeek) {
|
|
|
if (index == that.data.currentWeek + 1) {
|
|
|
- item.active = true
|
|
|
+ item.date = '约满'
|
|
|
+ item.disabled = true
|
|
|
that.setData({
|
|
|
curYear: _year,
|
|
|
curMonth: _month,
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ item.date = baseDate.getDate()
|
|
|
+ }
|
|
|
+ if (index == that.data.currentWeek + 2) {
|
|
|
+ item.active = true
|
|
|
+ that.setData({
|
|
|
choseDate: _year + '-' + _month + '-' + _day
|
|
|
})
|
|
|
}
|
|
|
- item.date = baseDate.getDate()
|
|
|
item.dateStr = _year + '-' + _month + '-' + _day
|
|
|
} else {
|
|
|
item.disabled = true
|
|
|
item.dateStr = baseDate.getFullYear() + '-' + _month + '-' + _day
|
|
|
- if (index == that.data.currentWeek || index == that.data.currentWeek - 1) {
|
|
|
+ if (index == that.data.currentWeek) {
|
|
|
item.date = '约满'
|
|
|
} else {
|
|
|
item.date = baseDate.getDate()
|