feat(challenges): 新增挑战模块与详情页,优化标签栏布局
- 新增挑战列表页 `app/(tabs)/challenges.tsx`,展示热门挑战卡片 - 新增挑战详情页 `app/challenges/[id].tsx`,支持排行榜、分享与参与 - 在标签栏中新增“挑战”入口,替换原有“发现”与“AI”页 - 调整标签栏间距与圆角,适配新布局 - 新增挑战相关路由常量 `TAB_CHALLENGES` - 迁移 `coach.tsx` 与 `explore.tsx` 至根目录,保持结构清晰
This commit is contained in:
@@ -5,6 +5,7 @@ export const ROUTES = {
|
||||
TAB_COACH: '/coach',
|
||||
TAB_GOALS: '/goals',
|
||||
TAB_STATISTICS: '/statistics',
|
||||
TAB_CHALLENGES: '/challenges',
|
||||
TAB_PERSONAL: '/personal',
|
||||
|
||||
// 训练相关路由
|
||||
@@ -93,4 +94,4 @@ export const QUERY_PARAMS = {
|
||||
|
||||
// 教练页面参数
|
||||
COACH_NAME: 'name',
|
||||
} as const;
|
||||
} as const;
|
||||
|
||||
Reference in New Issue
Block a user