Commit Graph
12 Commits
Author SHA1 Message Date
yml2213 a4cdc3e806 增加站内信未读提醒和后台通知中心+txt 校验 2026-06-19 15:24:15 +08:00
yml 233920025e 增加客服分组管理 2026-06-18 02:09:02 +08:00
yml2213 88b1df64e7 加固后台管理安全 2026-06-11 07:23:00 +08:00
yml 2dfa2611fd 新增财务仪表盘并统一金额到角 2026-06-09 00:13:03 +08:00
yml a2a0489158 优化订单支付 2026-06-08 23:56:25 +08:00
yml2213 500f511185 增加前端格式检查配置 2026-06-08 06:40:33 +08:00
ymlandClaude Opus 4.6 59093f8fd5 feat: 添加客服在线状态和聊天粘贴图片功能
**客服在线状态:**
- 后端:添加 admin_users.support_status 字段(online/offline/busy)
- 接口:PUT /admin/me/support-status 更新状态
- 前端:管理员顶部导航显示状态切换器(仅客服权限可见)
- 转接对话框显示客服在线状态和智能排序(在线优先)

**聊天粘贴图片:**
- 用户端、移动端、管理端聊天输入框支持 Ctrl+V/Cmd+V 直接粘贴图片
- 自动调用图片压缩和上传逻辑,与文件选择上传保持一致
- 最多支持粘贴9张图片

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-06-05 19:23:34 +08:00
yml2213 75e849a91a 修复前端迁移后的类型错误 2026-06-04 11:07:34 +08:00
yml2213 99e537c41e chore: 修复 admin index.ts 导出名称
更正函数名:
- getAdminInfo → fetchAdminMe
- refreshAdminAccessToken → refreshAdminSession

类型错误:108 → 106
2026-06-04 09:41:39 +08:00
yml2213 5ba154c193 chore: 修复最后一批导入路径错误
- 修复 wallet API 中的 orders 导入
- 修复 admin API 中的 authStorage 导入
- 修复 seller composables 和测试文件导入
- 修复 admin index.ts 导出名称

类型错误:113 → 108
2026-06-04 09:40:58 +08:00
yml2213 29e79ff835 chore: 继续修复导入路径
- 修复 auth 和 disputes API 导入
- 修复所有 Vue 文件中剩余的 @/api/ 导入
- 修复 admin index.ts 类型导出冲突
- 修复组件相对路径导入

类型错误:135 → 129
2026-06-04 09:35:11 +08:00
yml2213andClaude Opus 4.7 c9397635e2 feat: P3阶段完成 - 全部模块迁移完成 🎉
## P3.1: 争议仲裁模块(disputes)
- API: disputes.ts
- 模块导出

## P3.2: 卖家中心模块(seller)
- Views: 4个页面
- Composables: usePublishForm, usePublishDraft
- 模块导出

## P3.3: 管理后台模块(admin)
- API: 8个文件(adminAuth, adminDashboard, adminUsers等)
- Views: 15个管理页面
- Composables: useAdminTable, useAdminPaginatedTable
- Components: 管理端组件
- 模块导出

---

## 🎉 Features 架构迁移全部完成!

### 最终统计
-  P0: shared(基础设施)- 22个文件
-  P1: wallet, chats, orders - 24个文件
-  P2: listings, auth - 35个文件
-  P3: seller, disputes, admin - 47个文件

**总计:** 9个模块,128个文件完成迁移

### 新架构
```
frontend/src/
├── features/          # 9个业务模块 
│   ├── wallet/       
│   ├── chats/        
│   ├── orders/        (已重构)
│   ├── listings/     
│   ├── auth/         
│   ├── seller/       
│   ├── disputes/     
│   └── admin/        
└── shared/           
```

下一步:清理旧文件、更新路由配置

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-04 09:05:34 +08:00