docs: update AGENTS.md with uni-app workspace consolidation structure

Add mobile H5 redesign section: 4-tab layout, workspace-customer/biz pages, updated config.js and pages.json

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
TradeMate Dev
2026-06-21 23:08:00 +08:00
parent 771b70843f
commit cb8faed80f
+12
View File
@@ -1,5 +1,17 @@
# TradeMate (外贸小助手) — Agent Guide
## uni-app 移动端 H5 (改版后)
- **Tab Bar**: 4 项底部导航 — 首页 / 客户 / 业务 / 我的
- **主页** `pages/index/index.vue` — 简化仪表盘 (统计卡片 + 快捷入口矩阵 + 待办提醒)
- **客户工作台** `pages/workspace-customer/workspace-customer.vue`**NEW** 3 个内联标签 (客户列表 / 挖掘新客 / 智能跟进)
- **业务工作台** `pages/workspace-biz/workspace-biz.vue`**NEW** 4 个内联标签 (翻译 / 产品库 / 报价单 / 营销素材)
- **个人中心** `pages/profile/profile.vue` — 更新导航 (通知中心 / 数据分析 / 团队 / 升级会员 / 联系客服)
- **旧页面保留** (customers, discovery, followup, translate, product, quotation, marketing 等仍可通过 deep link 访问)
- **pages.json** — 标签栏从 5 项变为 4 项,新增 workspace-customer 和 workspace-biz 页面
- **config.js** — PAGES 配置新增 WORKSPACE_CUSTOMER / WORKSPACE_BIZ
- **部署路径**: `trade.yuzhiran.com/app/` — nginx SPA fallback `try_files $uri $uri/ /app/index.html`
## AI Assistant (Frontend AI Chatbot)
- **Components**: `user-frontend/src/components/AiAssistant.vue` + `admin-frontend/src/components/AiAssistant.vue`