Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
xyxBooking-weapp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2026-01-13 14:16:47 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
392ce69d5a0a4ffa14c03f570cd963df6230840b
392ce69d
1 parent
b6a53051
fix(booking): 修复日期选择逻辑和周历显示不全的问题
修复日期选择时未检查date存在导致的潜在错误 补全周历显示不足7天时的空日期项
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
src/pages/booking/index.vue
src/pages/booking/index.vue
View file @
392ce69
<!--
* @Date: 2024-01-15 13:35:51
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2026-01-
07 23:18
:29
* @LastEditTime: 2026-01-
13 14:15
:29
* @FilePath: /xyxBooking-weapp/src/pages/booking/index.vue
* @Description: 预约页面
-->
...
...
@@ -21,8 +21,8 @@
<view v-for="(date, dateIndex) in week" :key="dateIndex"
@tap="chooseDay(date)"
:class="[ 'item',
checked_day === findDatesInfo(date).date ? 'checked' : '',
findDatesInfo(date).reserve_full === ReserveStatus.FULL || findDatesInfo(date).reserve_full === ReserveStatus.OVERDUE
? 'disabled' : ''
date &&
checked_day === findDatesInfo(date).date ? 'checked' : '',
date && (findDatesInfo(date).reserve_full === ReserveStatus.FULL || findDatesInfo(date).reserve_full === ReserveStatus.OVERDUE)
? 'disabled' : ''
]"
>
<view v-if="findDatesInfo(date).date">
...
...
@@ -188,6 +188,9 @@ const weeks = computed(() => {
// 添加最后一行
if (currentWeek.length > 0) {
while (currentWeek.length < 7) {
currentWeek.push('');
}
result.push(currentWeek);
}
...
...
Please
register
or
login
to post a comment