Explorar el Código

docs(tabbar): 更新 TabBar 重构计划为 completed 状态 + 完成情况清单

Xiaogang Liao hace 1 mes
padre
commit
ebc170bec2
Se han modificado 1 ficheros con 26 adiciones y 2 borrados
  1. 26 2
      docs/superpowers/plans/2026-08-08-tabbar-restructure.md

+ 26 - 2
docs/superpowers/plans/2026-08-08-tabbar-restructure.md

@@ -1,7 +1,8 @@
 # TabBar 重构实施计划
 
 > 基于 2026-08-08-tabbar-redesign.md 设计文档
-> 状态:pending · 待执行
+> 状态:completed · 2026-08-08 执行完成
+> 提交:db6c2d3c feat(frontend): TabBar 重构 - 4Tabs + 中间五维启动器 + 自定义TabBar
 
 ## 总体目标
 
@@ -246,4 +247,27 @@ grep -rn "switchTab.*/pages/\(mind\|body\|wisdom\|wealth\)" --include="*.vue" .
 1. 恢复 `pages.json` 到 git HEAD
 2. 恢复 `custom-tab-bar/index.vue` 到 git HEAD
 3. 删除新增文件
-4. 重新构建确认
+4. 重新构建确认
+
+## 完成情况(2026-08-08)
+
+| 阶段 | 项目 | 状态 | 备注 |
+|------|------|:----:|------|
+| 1 | `utils/nav.js` | ✅ | 路径正确 |
+| 1 | TabBar 图标(tab-home/tab-health) | ✅ | 占位图,需设计师替换 |
+| 2 | pages.json 主包 5→4 页 | ✅ | 首页/健康/成长/我的 |
+| 2 | tabBar.list 4 项 + custom:true | ✅ | 启用自定义TabBar |
+| 2 | 分包调整 | ✅ | growth/profile移除index/profile;mind/body/wisdom/wealth 加入/新建分包 |
+| 2 | 物理文件移动 | ✅ | mind/body/wisdom → 对应分包目录 |
+| 3 | switchTab 引用替换 | ✅ | 3 处 nav.goPage + 2 处 navigateTo |
+| 3 | 全局 grep 兜底 | ✅ | 0 残留 |
+| 4 | custom-tab-bar 重写 | ✅ | 4Tab + ⭐按钮 + 五维半屏浮层;规划师5Tab不变 |
+| 5 | 新建健康页 | ✅ | 含概览卡片、功能入口网格、最近报告、诊断建议、未登录态 |
+| 6 | 增强成长页 | ✅ | 含待办卡片、功能入口网格、原有成长档案保留 |
+| 7 | 推荐分布调整 | ✅ | 活动→成长页,健康科普→健康页 |
+| 8 | profile showServices=true | ✅ | |
+| 9.1 | 语法校验 | ⚠️ | 结构闭合性验证通过;`new Function` 不支持 ES module import |
+| 9.2 | 路由完整性 | ✅ | 0 残留 switchTab |
+| 9.3 | 主包体积确认 | ⬜ | 需 HBuilderX 打包后验证 < 1.5MB |
+
+> **未完成项:** tab 图标需设计师替换正式图标;主包体积需 HBuilderX 验证。