From 0a1214c1de2204bbd296dbaca475fa5bd115fb30 Mon Sep 17 00:00:00 2001 From: JyuHsin <729757837@qq.com> Date: Tue, 25 Mar 2025 14:39:36 +0800 Subject: [PATCH] commit --- .../views/mobile/activity/site/reserve.html | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/main/resources/views/mobile/activity/site/reserve.html b/src/main/resources/views/mobile/activity/site/reserve.html index b0ffe51..ef6f238 100644 --- a/src/main/resources/views/mobile/activity/site/reserve.html +++ b/src/main/resources/views/mobile/activity/site/reserve.html @@ -115,7 +115,7 @@ layout("/mobile/platform.html"){ } -
+
- +
{{item.start_time + '-' + item.end_time}} @@ -224,6 +224,7 @@ layout("/mobile/platform.html"){ mixins: [mobileMixins], data() { return { + isLoad: false, person: "${@shiro.getPrincipalProperty('username')}", unit: "${@shiro.getPrincipalProperty('unit').getName()}", phone: "${@shiro.getPrincipalProperty('mobile')}", @@ -305,9 +306,16 @@ layout("/mobile/platform.html"){ while (wk.length < 7) { const addDate = moment(startDate).add(count, 'd') const addDateFormat = moment(addDate).format('YYYY-MM-DD') + let dis = false + if(this.site.openWeekTime && !this.site.openWeekTime.includes(addDate.day())) { + dis = true + } + if(this.site.notApplyTimeList && this.site.notApplyTimeList?.includes(addDateFormat)) { + dis = true + } wk.push({ day: addDate, - disabled: !this.site.openWeekTime.includes(addDate.day()) || this.site.notApplyTimeList.includes(addDateFormat) + disabled: dis }) count++ } @@ -427,7 +435,7 @@ layout("/mobile/platform.html"){ this.selectDate = this.getLatestWorkDay() this.setWeekList(this.selectDate) await this.getMyReservation() - + this.isLoad = true } })