feat(fasting): 新增轻断食功能模块

新增完整的轻断食功能,包括:
- 断食计划列表和详情页面,支持12-12、14-10、16-8、18-6四种计划
- 断食状态实时追踪和倒计时显示
- 自定义开始时间选择器
- 断食通知提醒功能
- Redux状态管理和数据持久化
- 新增tab导航入口和路由配置
This commit is contained in:
richarjiang
2025-10-13 19:21:29 +08:00
parent 971aebd560
commit e03b2b3032
17 changed files with 2390 additions and 7 deletions

View File

@@ -7,6 +7,7 @@ export const ROUTES = {
TAB_STATISTICS: '/statistics',
TAB_CHALLENGES: '/challenges',
TAB_PERSONAL: '/personal',
TAB_FASTING: '/fasting',
// 训练相关路由
WORKOUT_TODAY: '/workout/today',
@@ -53,6 +54,9 @@ export const ROUTES = {
WATER_SETTINGS: '/water/settings',
WATER_REMINDER_SETTINGS: '/water/reminder-settings',
// 轻断食相关
FASTING_PLAN_DETAIL: '/fasting',
// 任务相关路由
TASK_DETAIL: '/task-detail',
@@ -81,6 +85,7 @@ export const ROUTE_PARAMS = {
// 任务参数
TASK_ID: 'taskId',
FASTING_PLAN_ID: 'planId',
// 重定向参数
REDIRECT_TO: 'redirectTo',