# Task P01-007: 页面路由 + 基础页面骨架 ## 元信息 | 字段 | 值 | |------|-----| | 状态 | `todo` | | 优先级 | P1 | | 依赖 | P01-003(User 模块 API 稳定后) | | 分配给 | Coder AI (Trae CN + GLM-4.6) | ## 输入 **要读的文件**: - `docs/02_系统架构/模块设计.md` — 3.8 Pages 路由(各页面模块) - `docs/02_系统架构/总体架构.md` — 前端技术栈 Taro 4 + React 18 - `docs/01_产品需求/PRD.md` — 页面功能需求 **参考的 ADR**: - 无特殊 ADR **上游依赖产出**: - P01-003: User 模块 API(各页面需要用户数据) ## 输出 **要生成/修改的文件**: - `projects/app/src/app.config.ts` — Taro 页面路由配置(9 个页面) - `projects/app/src/pages/index/index.tsx` — 首页(错题列表) - `projects/app/src/pages/capture/index.tsx` — 拍照录入页 - `projects/app/src/pages/detail/index.tsx` — 错题详情页 - `projects/app/src/pages/analysis/index.tsx` — AI 分析结果页 - `projects/app/src/pages/recommend/index.tsx` — 推荐练习页(暂为占位) - `projects/app/src/pages/print/index.tsx` — 打印选择页 - `projects/app/src/pages/print/preview.tsx` — 打印预览页 - `projects/app/src/pages/profile/index.tsx` — 个人中心页 - `projects/app/src/pages/invite/index.tsx` — 邀请页 **页面要求**: - 每个页面有基础布局(标题栏 + 内容区) - 打印预览页显示错题列表 + 生成 PDF 按钮 - 其他页面可为功能占位(显示「开发中」即可),不需要完整交互 ## 验收方法 ```bash # 编译检查 npx tsc --noEmit # 小程序开发工具预览 # 预期: 9 个页面可导航,无白屏/报错 ``` ## 约束 - 不碰: `projects/app/tests/`、后端 modules/ 目录 - 技术栈: Taro 4 + React 18 - 遵循: 页面基础布局即可,不需要完整交互逻辑 ## 完成报告 > Coder 完成后填写。Commit message 以 `[READY_FOR_TEST]` 结尾。 - [ ] 输出文件已生成 - [ ] 验收命令通过 - [ ] Commit: `{hash}` - [ ] Commit message: `feat(P01-007): 页面路由+9个基础页面骨架 [READY_FOR_TEST]`