From cb8faed80fd79707a3293abb4f31baf0247fa837 Mon Sep 17 00:00:00 2001 From: TradeMate Dev Date: Sun, 21 Jun 2026 23:08:00 +0800 Subject: [PATCH] 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 --- AGENTS.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index e2ce950..f84491d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -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`