diff --git a/README.md b/README.md index d99b64d..27e3800 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ | 看后端接口 | (自动生成);控制台 | | 读需求与设计 | `report/错题毕业-小学版-PRD.docx`、`report/错题毕业-产品方案书.pdf` | | 部署上线 | `deploy/README.md`(Docker + Caddy + 备份 + 上线检查清单) | -| 小程序 | `miniprogram/README.md`(3 tab:首页 / 排题 / 我的) | +| 小程序 | `miniprogram/README.md`(3 tab:首页 / 拍题 / 我的) | | 看数据从哪来 | `data/out/report.md`(1,097 条竞品差评 + 554 条小红书评论的归因) | 代码在哪:`backend/`(接口与业务)、`core/`(两个产品共用的纯函数:时间/连接/文本/数值)、`prototype/workbench/`(工作台单文件)、`miniprogram/`(小程序)、`deploy/`(部署)。 diff --git a/miniprogram/README.md b/miniprogram/README.md index 0ba4168..135d7e9 100644 --- a/miniprogram/README.md +++ b/miniprogram/README.md @@ -1,6 +1,6 @@ # 错题毕业 · 小学版小程序 -原生微信小程序(无第三方依赖),3 个 tab(首页 / 排题 / 我的)+ 4 个二级页,对接 `backend\` 的接口。 +原生微信小程序(无第三方依赖),3 个 tab(首页 / 拍题 / 我的)+ 4 个二级页,对接 `backend\` 的接口。 配色与交互原型 `prototype\primary\index.html` 一致:纸色 `#FFF3DF`、品牌红 `#B3272D`、土金 `#A9761A`、墨绿 `#2F6B57`。 > 这一版是**能跑通的骨架**:登录、建档、拍卷(题库版)、今日 5 道、判对错、讲清、周报、A5 打印、激活码、订阅额度都通了。 @@ -60,7 +60,7 @@ curl -X POST http://127.0.0.1:8000/api/auth/wx-login -H "Content-Type: applicati | 监护人同意 | `pages/consent` | 收什么 / 存多久 / 不做什么,两个必须手勾 | P22 | | 孩子档案 | `pages/children` | 昵称、年级、科目开关、多孩切换、填充演示数据 | P23 / P11 | | 首页 | `pages/home` | 今天几道(附「约 N 分钟」)、待讲清、本周三个数、去工作台 | P01 | -| 排题 | `pages/queue` | 拍一张 / **手输一道** → OCR 切题 → 勾选 → 入库 → 题单预览(N 道 · 约 X 分钟) | P03 / P04 / P05 | +| 拍题 | `pages/queue` | 拍一张 / **手输一道** → OCR 切题 → 勾选 → 入库 → 题单预览(N 道 · 约 X 分钟) | P03 / P04 / P05 | | 工作台 | `pages/wb` | web-view 打开电脑端工作台(做题、讲一遍、解析、周报) | 工作台 | | 我的 | `pages/me` | 六组:孩子 / 科目 / 提醒 / 开通 / 数据 / 关于;含删号 7 天冷静期与撤销 | P19 / P20 | @@ -79,7 +79,7 @@ curl -X POST http://127.0.0.1:8000/api/auth/wx-login -H "Content-Type: applicati - 一开始画的是线性,实际缩到 tab 上只有 27px、线宽剩 2px,浅色底(`#FFFDF7`)上会**发虚**、像没对齐; 面性缩到 27px 仍是完整剪影,对比更强。这也是为什么细节只能靠**镂空**、不能靠描边。 - 未选中 `#9A8C7A`、选中 `#E4634A`,与 tabBar 文字色一致;底色透明,所以深色模式或换底都不用重画。 -- 排题图标刻意**不放算式**:`+`、`-` 在 27px 下会糊成一团。圆点 + 长条读作「题单/排队」,语义比算式准。 +- 拍题图标是相机(`shoot.png` / `shoot-on.png`):改名后一起换掉,相机比题单更能一眼看出「这里是拍照的地方」。旧版是圆点 + 长条(读作题单/排队)。 ## 三、接口对照(后端 39 条里用到的 18 条) diff --git a/miniprogram/app.json b/miniprogram/app.json index 8bd1f69..2dc5279 100644 --- a/miniprogram/app.json +++ b/miniprogram/app.json @@ -30,9 +30,9 @@ }, { "pagePath": "pages/queue/queue", - "text": "排题", - "iconPath": "images/tab/queue.png", - "selectedIconPath": "images/tab/queue-on.png" + "text": "拍题", + "iconPath": "images/tab/shoot.png", + "selectedIconPath": "images/tab/shoot-on.png" }, { "pagePath": "pages/me/me", @@ -46,3 +46,4 @@ "sitemapLocation": "sitemap.json", "lazyCodeLoading": "requiredComponents" } + diff --git a/miniprogram/images/tab/queue-on.png b/miniprogram/images/tab/queue-on.png deleted file mode 100644 index 87ce842..0000000 Binary files a/miniprogram/images/tab/queue-on.png and /dev/null differ diff --git a/miniprogram/images/tab/queue.png b/miniprogram/images/tab/queue.png deleted file mode 100644 index 44fef7c..0000000 Binary files a/miniprogram/images/tab/queue.png and /dev/null differ diff --git a/miniprogram/images/tab/shoot-on.png b/miniprogram/images/tab/shoot-on.png new file mode 100644 index 0000000..93720d4 Binary files /dev/null and b/miniprogram/images/tab/shoot-on.png differ diff --git a/miniprogram/images/tab/shoot.png b/miniprogram/images/tab/shoot.png new file mode 100644 index 0000000..1622be2 Binary files /dev/null and b/miniprogram/images/tab/shoot.png differ diff --git a/miniprogram/pages/home/home.js b/miniprogram/pages/home/home.js index b36ffaf..1a937cb 100644 --- a/miniprogram/pages/home/home.js +++ b/miniprogram/pages/home/home.js @@ -70,7 +70,7 @@ Page({ wx.navigateTo({ url: "/pages/wb/wb" }); }, - /** 排题是 tab,必须用 switchTab */ + /** 拍题是 tab,必须用 switchTab */ onQueue() { wx.switchTab({ url: "/pages/queue/queue" }); }, @@ -80,3 +80,4 @@ Page({ wx.stopPullDownRefresh(); }, }); + diff --git a/miniprogram/pages/home/home.wxml b/miniprogram/pages/home/home.wxml index 433347b..8bbb98a 100644 --- a/miniprogram/pages/home/home.wxml +++ b/miniprogram/pages/home/home.wxml @@ -27,7 +27,7 @@ 今天没有到期的题 明天再来,或者现在去拍一张今天做错的作业。 - + @@ -66,3 +66,4 @@ + diff --git a/miniprogram/pages/queue/queue.json b/miniprogram/pages/queue/queue.json index ae5dfa0..1e3ddc5 100644 --- a/miniprogram/pages/queue/queue.json +++ b/miniprogram/pages/queue/queue.json @@ -1,4 +1,5 @@ { - "navigationBarTitleText": "排题", + "navigationBarTitleText": "拍题", "enablePullDownRefresh": false } + diff --git a/miniprogram/pages/queue/queue.wxml b/miniprogram/pages/queue/queue.wxml index 0267b90..9a0bd9f 100644 --- a/miniprogram/pages/queue/queue.wxml +++ b/miniprogram/pages/queue/queue.wxml @@ -75,17 +75,18 @@ - 排好了 + 今天的题单 {{queue.n}} 道 · 约 {{queue.minutes}} 分钟 按遗忘曲线排的,错的多的先做。做完这两件事就结束:连对两次、讲一遍。 - 手机上只排题,做题在电脑或平板上——题目和解析要横着看。 + 手机上拍题,做题在电脑或平板上——题目和解析要横着看。 {{mode === "photo" ? "识别用的是本机的 Windows 中文 OCR(不联网、不上传第三方)。算式的答案会自己算出来;应用题、看拼音写词这类没有标准答案的,标成「你自己判」。" : "手输适合几种情况:卷子已经扔了、老师口头报的题、错题想马上记一道。题干抄关键词就行,不用一字不差。"}} +