From 106e1c14fecf5f3bde0d283967f50f16bcbe3440 Mon Sep 17 00:00:00 2001 From: pigeon Date: Thu, 4 Jun 2026 08:32:24 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E9=87=8D=E5=91=BD=E5=90=8D=20custo?= =?UTF-8?q?mer-mobile=20=E4=B8=BA=20cashier-customer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 统一收银相关项目命名: - cashier-mobile: 收银端(店员使用) - cashier-customer: 顾客端(顾客使用) 更新所有相关配置和引用 --- AGENTS.md | 6 +++--- {customer-mobile => cashier-customer}/App.vue | 0 {customer-mobile => cashier-customer}/main.js | 0 {customer-mobile => cashier-customer}/manifest.json | 2 +- {customer-mobile => cashier-customer}/package.json | 2 +- {customer-mobile => cashier-customer}/pages.json | 0 {customer-mobile => cashier-customer}/pages/index/index.vue | 0 .../pages/member/member.vue | 0 {customer-mobile => cashier-customer}/pages/order/order.vue | 0 package.json | 4 ++-- pnpm-workspace.yaml | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename {customer-mobile => cashier-customer}/App.vue (100%) rename {customer-mobile => cashier-customer}/main.js (100%) rename {customer-mobile => cashier-customer}/manifest.json (94%) rename {customer-mobile => cashier-customer}/package.json (95%) rename {customer-mobile => cashier-customer}/pages.json (100%) rename {customer-mobile => cashier-customer}/pages/index/index.vue (100%) rename {customer-mobile => cashier-customer}/pages/member/member.vue (100%) rename {customer-mobile => cashier-customer}/pages/order/order.vue (100%) diff --git a/AGENTS.md b/AGENTS.md index d6285e6..7549128 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -7,7 +7,7 @@ **rui-frontend** 是睿核科技的前端工程集合,包含: - `admin-ui` - 管理后台(Vue3 + TypeScript + Vite) - `cashier-mobile` - 收银移动端(技术栈待定,可能是 uni-app、React Native 等) -- `customer-mobile` - 顾客移动端(技术栈待定,可能是 uni-app、React Native 等) +- `cashier-customer` - 顾客移动端(技术栈待定,可能是 uni-app、React Native 等) ## 🚫 绝对禁止 @@ -22,7 +22,7 @@ rui-frontend/ ├── admin-ui/ ✅ 可修改(Vue3 管理后台) ├── cashier-mobile/ ✅ 可修改(收银移动端) -├── customer-mobile/ ✅ 可修改(顾客移动端) +├── cashier-customer/ ✅ 可修改(顾客移动端) ├── package.json ✅ 可修改(根配置) └── pnpm-workspace.yaml ✅ 可修改 ``` @@ -69,7 +69,7 @@ interface UserDTO { - **包管理器**:pnpm(强制使用) - **组件规范**:组合式 API(setup 语法) -### cashier-mobile / customer-mobile(移动端) +### cashier-mobile / cashier-customer(移动端) - **框架**:uni-app(Vue3) - **支持平台**:小程序、H5、App - **包管理器**:pnpm(推荐)或 npm diff --git a/customer-mobile/App.vue b/cashier-customer/App.vue similarity index 100% rename from customer-mobile/App.vue rename to cashier-customer/App.vue diff --git a/customer-mobile/main.js b/cashier-customer/main.js similarity index 100% rename from customer-mobile/main.js rename to cashier-customer/main.js diff --git a/customer-mobile/manifest.json b/cashier-customer/manifest.json similarity index 94% rename from customer-mobile/manifest.json rename to cashier-customer/manifest.json index 922d361..22bfa4f 100644 --- a/customer-mobile/manifest.json +++ b/cashier-customer/manifest.json @@ -1,5 +1,5 @@ { - "name": "顾客端", + "name": "收银顾客端", "appid": "__UNI__CUSTOMER001", "description": "睿核科技顾客端移动端", "versionName": "1.0.0", diff --git a/customer-mobile/package.json b/cashier-customer/package.json similarity index 95% rename from customer-mobile/package.json rename to cashier-customer/package.json index cfeed37..59bb5ae 100644 --- a/customer-mobile/package.json +++ b/cashier-customer/package.json @@ -1,5 +1,5 @@ { - "name": "customer-mobile", + "name": "cashier-customer", "version": "1.0.0", "description": "顾客端移动端 - uni-app", "main": "main.js", diff --git a/customer-mobile/pages.json b/cashier-customer/pages.json similarity index 100% rename from customer-mobile/pages.json rename to cashier-customer/pages.json diff --git a/customer-mobile/pages/index/index.vue b/cashier-customer/pages/index/index.vue similarity index 100% rename from customer-mobile/pages/index/index.vue rename to cashier-customer/pages/index/index.vue diff --git a/customer-mobile/pages/member/member.vue b/cashier-customer/pages/member/member.vue similarity index 100% rename from customer-mobile/pages/member/member.vue rename to cashier-customer/pages/member/member.vue diff --git a/customer-mobile/pages/order/order.vue b/cashier-customer/pages/order/order.vue similarity index 100% rename from customer-mobile/pages/order/order.vue rename to cashier-customer/pages/order/order.vue diff --git a/package.json b/package.json index c45bc46..d1187eb 100644 --- a/package.json +++ b/package.json @@ -7,10 +7,10 @@ "scripts": { "dev:admin": "pnpm --filter admin-ui dev", "dev:cashier": "pnpm --filter cashier-mobile dev", - "dev:customer": "pnpm --filter customer-mobile dev", + "dev:cashier-customer": "pnpm --filter cashier-customer dev", "build:admin": "pnpm --filter admin-ui build", "build:cashier": "pnpm --filter cashier-mobile build", - "build:customer": "pnpm --filter customer-mobile build", + "build:cashier-customer": "pnpm --filter cashier-customer build", "build:all": "pnpm -r build", "lint": "pnpm -r lint", "type-check": "pnpm -r type-check" diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index c522d83..2c36880 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,4 +1,4 @@ packages: - 'admin-ui' - 'cashier-mobile' - - 'customer-mobile' + - 'cashier-customer'