# 课程详情页布局 - 页面:`https://www.tanqudao.com/app/courses/c-mn15edqe-qirc12` - 顶栏标题:课程详情 - 捕获:2026-10-10 23:19,视口约 1356 × 799 - 课程数据见 `-api-courses-c-mn15edqe-qirc12.md` - 进度见 `-api-practice-course-status.md` - 收藏状态见 `-api-favorites-course-status.md` ## 页面分区 左侧仍是全局侧栏:首页、我的收藏、课程广场(当前高亮)、教辅广场、复习本、合伙人计划、开通会员、奖励明细、设置、深色模式。 主区从上到下两块: 1. 课程头卡 2. 课节网格,4 列 ## 课程头卡 - 左侧封面缩略图,右侧标题「新手英语生活场景入门」,18px,白色。 - 标题下元信息:`10 小节`,`本课程已累计练习:0秒`。累计秒数对应 `totalPracticeSec`。 - 头卡右上角:`返回上一层`。胶囊按钮,高 32,圆角 999px,底色 `rgba(255,255,255,0.04)`。 - 标题下方两个操作: - `继续学习`:蓝底 `rgb(25,137,250)`,白字,高 32,宽约 96,圆角 999px。当前 `recentLessonId` 为 null,按钮仍然显示。 - `收藏`:线框胶囊。`favorite` 为 false。 - 底部进度:类名 `hero-progress`。轨道 `van-progress hero-progress-bar`,宽约 994,高 10,圆角 999px,底色 `rgba(255,255,255,0.08)`。右侧文案 `学习进度 0%`。进度由已完成课节数 / `lessonsCount` 得出,这次完成列表为空。 ## 课节网格 - 容器是 4 列 grid,列宽约 266.5px,间距 12px,总宽约 1102px。 - 每张卡是按钮,约 266.5 × 60,圆角 14px,底色 `rgb(27,28,33)`。 - 卡内三块: - `lesson-left`:英文标题、中文标题、`练习时长:N秒`、`已完成N次` - `lesson-pill is-todo`:右上角徽章 `待完成练习` - `lesson-corner`:右下角序号 `#1` … `#10` - 标题来自 `lessons[].title`,换行前是英文,换行后是中文。 - 练习时长来自 `lessonPracticeSec[lessonId]`,缺省显示 0 秒。 - 完成次数来自 `completedCounts[lessonId]`,缺省显示 0 次。 - 未出现在 `completedLessonIds` 时徽章为 `待完成练习`,样式类 `is-todo`。 ## 当前 10 节 | # | 课节 id | 英文 | 中文 | |---|---|---|---| | 1 | l-mn15jfdn-ikcigx | Lesson 1: Morning Wake-Up | 第一课:早晨起床 | | 2 | l-mn15jgsj-xickbw | Lesson 2: Breakfast Time | 第二课:吃早饭 | | 3 | l-mn15jhff-zn37yv | Lesson 3: Going to School | 第三课:上学路上 | | 4 | l-mn15jhyj-6wsy9e | Lesson 4: In the Classroom | 第四课:在教室里 | | 5 | l-mn15jzgr-ncbhuh | Lesson 5: Art and Reading | 第五课:画画和阅读 | | 6 | l-mn15jzw3-bwdsxx | Lesson 6: Lunch and Break Time | 第六课:午饭和课间休息 | | 7 | l-mn15k078-klq627 | Lesson 7: Homework Time | 第七课:做作业 | | 8 | l-mn15k0kz-k39fto | Lesson 8: After School at Home | 第八课:放学回家 | | 9 | l-mn15k11v-szt95b | Lesson 9: Dinner and Bedtime | 第九课:吃晚饭和睡觉 | | 10 | l-mn15k18z-aszwag | Lesson 10: Shopping and Staying Healthy | 第十课:购物和保持健康 | ## 练习模式弹层 → 练习页 点课节弹出 `mode-popup`(2×2:**拼图模式**、听写、中译英、打字练习)。选模式后进入 `/app/game`,接口链见 `00-调用顺序.md`「进入练习页」。 DOM 里另有「整句练习 / 拆句练习」选项(与四种模式组合使用),详见 `-app-game.md`。 - 标题:选择练习模式 - 网格 `mode-grid`:2 列,间距 12px - 四张 `mode-card`:拼图模式、听写模式、中译英模式、打字练习 ## 本页接口顺序 进入详情时,除了壳层重复请求,课程自己的顺序是: | 序号 | 接口 | 入参 | 文件 | |---|---|---|---| | 89 | GET /api/courses/config | 无 | `-api-courses-config.md` | | 90、93 | GET /api/auth/me | 无 | `-api-auth-me.md` | | 91 | GET /api/settings/menu-display | 无 | `-api-settings-menu-display.md` | | 92 | GET /api/courses/c-mn15edqe-qirc12 | 路径 id | `-api-courses-c-mn15edqe-qirc12.md` | | 94 | POST /api/auth/activity | 无请求体 | `-api-auth-activity.md` | | 95 | GET /api/auth/settings | 无 | `-api-auth-settings.md` | | 96 | GET /api/practice/course-status | `courseId=c-mn15edqe-qirc12` | `-api-practice-course-status.md` | | 97 | GET /api/favorites/course-status | `courseId=c-mn15edqe-qirc12` | `-api-favorites-course-status.md` |