Explorar o código

fix: handle init week busy

wangyuan %!s(int64=2) %!d(string=hai) anos
pai
achega
5b8ea77f7c
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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
           })