feat: 分销码
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 2m22s

This commit is contained in:
luo
2026-10-08 11:00:51 +08:00
parent 65d4c7bcf8
commit 2b4fd6fff8
12 changed files with 255 additions and 11 deletions

View File

@@ -0,0 +1,12 @@
## 1. Proposal Review
- [x] 1.1 Review and approve this proposal before implementation
## 2. Implementation
- [x] 2.1 Add a typed shop-detail API method for `/api/admin/shops/{shop_id}` and its `distribution_code` field
- [x] 2.2 Add a distribution-code page that checks the current user type, fetches the current shop, and renders the code locally as a QR
- [x] 2.3 Register the page and add the agent-only home shortcut immediately after withdrawal management using the supplied icon
- [x] 2.4 Handle missing shop/code and request failure states
## 3. Verification
- [x] 3.1 Run targeted ESLint and type-check; record unrelated existing type-check failures
- [x] 3.2 Verify role gating, `shop_id` lookup, and QR content mapping, and build H5 and WeChat mini-program targets