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

This commit is contained in:
luo
2026-10-08 12:26:39 +08:00
parent 2b4fd6fff8
commit b2ed8b5df4
5 changed files with 57 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
# Change: Encode agent registration URL in distribution QR code
## Why
The current distribution QR code encodes only the raw distribution code, so scanning it does not open agent registration with the code prefilled. Scanners should open the registration route with the current shop's distribution code in its query string.
## What Changes
- Change the locally generated QR content to an absolute URL composed from `VITE_API_BASE_URL`, `/agent-registration`, and the URL-encoded `distribution_code` query parameter.
- Keep the existing agent-only access checks, shop lookup, and local QR rendering behavior.
## Impact
- Affected specs: `agent-distribution-code`
- Affected code: `src/pages/agent-system/distribution-code/index.vue`