Browse Source

fix: handle init week busy

wangyuan 2 years ago
parent
commit
5b8ea77f7c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      pages/appointment/appointment.js

+ 3 - 0
pages/appointment/appointment.js

@@ -155,6 +155,9 @@ Page({
         }
         if (index == that.data.currentWeek + 2) {
            item.active = true
+           if (that.data.currentWeek == 4 || that.data.currentWeek == 5) {
+             item.busy = true
+           }
            that.setData({
             choseDate: _year + '-' + _month + '-' + _day
           })