|
@@ -89,6 +89,8 @@ Page({
|
|
})
|
|
})
|
|
if (allBusy == undefined) {
|
|
if (allBusy == undefined) {
|
|
that.handleAllDayBusy(cDate)
|
|
that.handleAllDayBusy(cDate)
|
|
|
|
+ } else {
|
|
|
|
+ that.handleAllDayAppointment(cDate)
|
|
}
|
|
}
|
|
response.forEach(item => {
|
|
response.forEach(item => {
|
|
if (item.duration == 1) {
|
|
if (item.duration == 1) {
|
|
@@ -132,6 +134,20 @@ Page({
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ handleAllDayAppointment (cDate) {
|
|
|
|
+ console.log(cDate, '可预约')
|
|
|
|
+ const _weekList = this.data.weekList
|
|
|
|
+ _weekList.forEach(item => {
|
|
|
|
+ if (item.dateStr == cDate && item.date == '约满') {
|
|
|
|
+ console.log(item.dateStr);
|
|
|
|
+ item.date = Number(item.dateStr.split('-')[2])
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ this.setData({
|
|
|
|
+ weekList: _weekList
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+
|
|
onPullDownRefresh () {
|
|
onPullDownRefresh () {
|
|
wx.vibrateShort({
|
|
wx.vibrateShort({
|
|
type: 'medium'
|
|
type: 'medium'
|