Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
mlaj
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
2025-10-15 09:59:27 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
de7ef899c4d9da9e310a7043aa183f514f8b5474
de7ef899
1 parent
003ab427
refactor: 将"签到"统一改为"打卡"以保持术语一致性
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
src/views/checkin/IndexCheckInPage.vue
src/views/teacher/checkinPage.vue
src/views/checkin/IndexCheckInPage.vue
View file @
de7ef89
<!--
* @Date: 2025-05-29 15:34:17
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-10-1
3 10:19:55
* @LastEditTime: 2025-10-1
5 09:58:47
* @FilePath: /mlaj/src/views/checkin/IndexCheckInPage.vue
* @Description: 文件描述
-->
...
...
@@ -441,17 +441,17 @@ const formatter = (day) => {
// 格式化当前日期为YYYY-MM-DD格式,与checkin_days中的格式匹配
const formattedDate = `${year}-${month.toString().padStart(2, '0')}-${date.toString().padStart(2, '0')}`;
// 检查是否已
签到
// 检查是否已
打卡
if (checkin_days.includes(formattedDate)) {
// 如果是当前选中的已
签到
日期,使用特殊样式
// 如果是当前选中的已
打卡
日期,使用特殊样式
if (selectedDate.value === formattedDate) {
day.className = 'calendar-selected';
day.type = 'selected';
day.bottomInfo = '已
签到
';
day.bottomInfo = '已
打卡
';
} else {
day.className = 'calendar-checkin';
day.type = 'selected';
day.bottomInfo = '已
签到
';
day.bottomInfo = '已
打卡
';
}
}
}
...
...
src/views/teacher/checkinPage.vue
View file @
de7ef89
<!--
* @Date: 2025-05-29 15:34:17
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-
06-30 17:09:13
* @LastEditTime: 2025-
10-15 09:58:57
* @FilePath: /mlaj/src/views/teacher/checkinPage.vue
* @Description: 文件描述
-->
...
...
@@ -511,9 +511,9 @@ const formatter = (day) => {
// 格式化当前日期为YYYY-MM-DD格式,与checkin_days中的格式匹配
const formattedDate = `${year}-${month.toString().padStart(2, '0')}-${date.toString().padStart(2, '0')}`;
// 检查是否已
签到
// 检查是否已
打卡
if (checkin_days.includes(formattedDate)) {
// 如果是当前选中的已
签到
日期,使用特殊样式
// 如果是当前选中的已
打卡
日期,使用特殊样式
if (selectedDate.value === formattedDate) {
day.className = 'calendar-selected';
day.type = 'selected';
...
...
Please
register
or
login
to post a comment