commit 0ca34dc5d8ae20958561640c9ad3c42119c31048 Author: malei <> Date: Fri Jul 31 18:46:16 2026 +0800 chore: initialize store admin console diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..3a95ed0 --- /dev/null +++ b/.env.development @@ -0,0 +1 @@ +VITE_PUBLIC_H5_ORIGIN=http://localhost:5173 diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..863ba72 --- /dev/null +++ b/.env.example @@ -0,0 +1,2 @@ +# 宠主公开报告 H5 根地址(复制链接用),生产请改为实际域名 +VITE_PUBLIC_H5_ORIGIN=https://example.com diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..55001fc --- /dev/null +++ b/.gitignore @@ -0,0 +1,26 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local +.env.local +.env.*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..a7cea0b --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,3 @@ +{ + "recommendations": ["Vue.volar"] +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..6df1703 --- /dev/null +++ b/README.md @@ -0,0 +1,28 @@ +# 宠小它门店 Web 后台 + +Phase A 管理端(Vue 3 + Vite + Element Plus)。 + +## 开发 + +```bash +cd admin +npm install +npm run dev +``` + +默认 http://localhost:5174 ,`/api` 代理到 `http://localhost:8080`。 + +登录:老板/员工手机号 + 验证码(dev 万能码见后端 `app.demo.sms-universal-code`,默认 `123456`)。 + +公开报告链接域名:`.env.development` / `.env.production` 中配置 `VITE_PUBLIC_H5_ORIGIN`。 + +## 构建 + +```bash +npm run build +``` + +## Owner + +- Store Admin FE → `admin/**` +- 客户聚合 API:Backend Core → `GET /api/admin/service-customers` diff --git a/index.html b/index.html new file mode 100644 index 0000000..82f729c --- /dev/null +++ b/index.html @@ -0,0 +1,13 @@ + + +
+ + + +请使用老板或员工账号登录(dev 验证码见短信接口)
+