Showing
2 changed files
with
8 additions
and
8 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2025-05-29 15:34:17 | 2 | * @Date: 2025-05-29 15:34:17 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2025-10-13 10:19:55 | 4 | + * @LastEditTime: 2025-10-15 09:58:47 |
| 5 | * @FilePath: /mlaj/src/views/checkin/IndexCheckInPage.vue | 5 | * @FilePath: /mlaj/src/views/checkin/IndexCheckInPage.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -441,17 +441,17 @@ const formatter = (day) => { | ... | @@ -441,17 +441,17 @@ const formatter = (day) => { |
| 441 | // 格式化当前日期为YYYY-MM-DD格式,与checkin_days中的格式匹配 | 441 | // 格式化当前日期为YYYY-MM-DD格式,与checkin_days中的格式匹配 |
| 442 | const formattedDate = `${year}-${month.toString().padStart(2, '0')}-${date.toString().padStart(2, '0')}`; | 442 | const formattedDate = `${year}-${month.toString().padStart(2, '0')}-${date.toString().padStart(2, '0')}`; |
| 443 | 443 | ||
| 444 | - // 检查是否已签到 | 444 | + // 检查是否已打卡 |
| 445 | if (checkin_days.includes(formattedDate)) { | 445 | if (checkin_days.includes(formattedDate)) { |
| 446 | - // 如果是当前选中的已签到日期,使用特殊样式 | 446 | + // 如果是当前选中的已打卡日期,使用特殊样式 |
| 447 | if (selectedDate.value === formattedDate) { | 447 | if (selectedDate.value === formattedDate) { |
| 448 | day.className = 'calendar-selected'; | 448 | day.className = 'calendar-selected'; |
| 449 | day.type = 'selected'; | 449 | day.type = 'selected'; |
| 450 | - day.bottomInfo = '已签到'; | 450 | + day.bottomInfo = '已打卡'; |
| 451 | } else { | 451 | } else { |
| 452 | day.className = 'calendar-checkin'; | 452 | day.className = 'calendar-checkin'; |
| 453 | day.type = 'selected'; | 453 | day.type = 'selected'; |
| 454 | - day.bottomInfo = '已签到'; | 454 | + day.bottomInfo = '已打卡'; |
| 455 | } | 455 | } |
| 456 | } | 456 | } |
| 457 | } | 457 | } | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2025-05-29 15:34:17 | 2 | * @Date: 2025-05-29 15:34:17 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2025-06-30 17:09:13 | 4 | + * @LastEditTime: 2025-10-15 09:58:57 |
| 5 | * @FilePath: /mlaj/src/views/teacher/checkinPage.vue | 5 | * @FilePath: /mlaj/src/views/teacher/checkinPage.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -511,9 +511,9 @@ const formatter = (day) => { | ... | @@ -511,9 +511,9 @@ const formatter = (day) => { |
| 511 | // 格式化当前日期为YYYY-MM-DD格式,与checkin_days中的格式匹配 | 511 | // 格式化当前日期为YYYY-MM-DD格式,与checkin_days中的格式匹配 |
| 512 | const formattedDate = `${year}-${month.toString().padStart(2, '0')}-${date.toString().padStart(2, '0')}`; | 512 | const formattedDate = `${year}-${month.toString().padStart(2, '0')}-${date.toString().padStart(2, '0')}`; |
| 513 | 513 | ||
| 514 | - // 检查是否已签到 | 514 | + // 检查是否已打卡 |
| 515 | if (checkin_days.includes(formattedDate)) { | 515 | if (checkin_days.includes(formattedDate)) { |
| 516 | - // 如果是当前选中的已签到日期,使用特殊样式 | 516 | + // 如果是当前选中的已打卡日期,使用特殊样式 |
| 517 | if (selectedDate.value === formattedDate) { | 517 | if (selectedDate.value === formattedDate) { |
| 518 | day.className = 'calendar-selected'; | 518 | day.className = 'calendar-selected'; |
| 519 | day.type = 'selected'; | 519 | day.type = 'selected'; | ... | ... |
-
Please register or login to post a comment