hookehuyr

feat(打卡): 新增打卡首页功能

- 添加打卡首页路由和页面组件
- 实现日历打卡展示、目标进度和团队动态功能
- 扩展AppLayout组件支持无标题模式
- 新增Vant组件类型声明
```

这个提交消息遵循了以下原则:
1. 使用`feat`类型表示新增功能
2. 添加了`(打卡)`范围明确修改领域
3. 简要描述主要变更内容
4. 在消息体中列出关键修改点,保持简洁
5. 使用中文简体符合要求
6. 每个条目使用动词开头保持一致性
......@@ -30,8 +30,11 @@ declare module 'vue' {
UploadVideoPopup: typeof import('./components/ui/UploadVideoPopup.vue')['default']
VanActionSheet: typeof import('vant/es')['ActionSheet']
VanButton: typeof import('vant/es')['Button']
VanCalendar: typeof import('vant/es')['Calendar']
VanCellGroup: typeof import('vant/es')['CellGroup']
VanCheckbox: typeof import('vant/es')['Checkbox']
VanCol: typeof import('vant/es')['Col']
VanConfigProvider: typeof import('vant/es')['ConfigProvider']
VanDatePicker: typeof import('vant/es')['DatePicker']
VanDialog: typeof import('vant/es')['Dialog']
VanEmpty: typeof import('vant/es')['Empty']
......@@ -47,6 +50,7 @@ declare module 'vue' {
VanPopup: typeof import('vant/es')['Popup']
VanProgress: typeof import('vant/es')['Progress']
VanRate: typeof import('vant/es')['Rate']
VanRow: typeof import('vant/es')['Row']
VanSwipe: typeof import('vant/es')['Swipe']
VanSwipeItem: typeof import('vant/es')['SwipeItem']
VanTab: typeof import('vant/es')['Tab']
......
<!--
* @Date: 2025-03-20 20:36:36
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-03-24 14:05:01
* @LastEditTime: 2025-05-29 15:46:57
* @FilePath: /mlaj/src/components/layout/AppLayout.vue
* @Description: 文件描述
-->
......@@ -14,7 +14,7 @@
:onBack="handleBack"
:rightContent="rightContent"
/>
<main :class="{ 'pb-16': title, 'py-4': !title && route.path !== '/profile' }">
<main :class="{ 'pb-16': title, 'py-4': (!title && route.path !== '/profile') && hasTitle }">
<slot></slot>
</main>
<BottomNav v-if="!hideBottomNav" />
......@@ -48,6 +48,10 @@ const props = defineProps({
hideBottomNav: {
type: Boolean,
default: false
},
hasTitle: {
type: Boolean,
default: true
}
})
......
/*
* @Date: 2025-03-21 13:28:30
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-03-21 13:33:06
* @LastEditTime: 2025-05-29 15:36:20
* @FilePath: /mlaj/src/router/checkin.js
* @Description: 文件描述
*/
......@@ -41,5 +41,14 @@ export default [
title: '反思打卡',
requiresAuth: true
}
},
{
path: '/checkin/index',
name: 'IndexCheckIn',
component: () => import('@/views/checkin/IndexCheckInPage.vue'),
meta: {
title: '打卡首页',
requiresAuth: true
}
}
]
......
This diff is collapsed. Click to expand it.