Files
FruitServer/docs/plans/INBOX.md
T

21 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## [已处理] 2026-10-20 | K44-A 个人资料页:去掉生日字段 + 保存按钮文案修正(仅 App 端)
**用户指令(2026-10-20,原文)**:
> 「在修改下 个人资料页面 设置生日先不要 收藏按钮文案改为保存」
**现状**
- `lib/pages/account/account_profile_page.dart` 含生日选择字段(Key `account-birthday`)与 `_birthday` 状态;
- 保存按钮(Key `account-profile-save`)用的是 `l10n.save`,而该 key 当前值是「收藏」,按钮文案显示成「收藏」而不是「保存」。
**口径(只改 Flutter,不动后端、不改接口)**
1. 去掉生日字段:删除 `_birthdayField`、`_birthday` 状态、日期选择逻辑与 `account-birthday` Key;保存时不再传 birthday(保持现有 `save()` 签名不改后端参数,仅传 null/不传)。
2. `l10n.save` 文案改为「保存」(en:Save / id:Simpan);该 key 目前只被个人资料保存按钮使用,不影响收藏相关文案(`favorite` / `myFavorites` 等保持「收藏」)。
3. 个人资料页其余字段、保存逻辑、错误提示、返回按钮(统一二级页头)保持不变。
4. 更新测试:不再存在 `account-birthday`;保存按钮文案为「保存」;保存流程仍正常。
**测试/门禁**
- 新增/更新上述断言;
- `dart analyze lib test` 零告警 + `flutter test` 全过 + `flutter build apk --debug`。
**流程**:从 `develop` 拉 `fix/flutter-k44-profile`;作者 `Zhou Weidong <502333560@qq.com>`;`--no-ff` 合回 develop 并 push;PROGRESS 留痕;真机验收由用户执行。