From 83d10a0a78e54851f0c0c5445a97ab89f59ef8b8 Mon Sep 17 00:00:00 2001 From: comlibmb <1844410276@qq.com> Date: Wed, 28 Jan 2026 09:18:29 +0800 Subject: [PATCH] Refactor pages subpackages and remove backup files --- main - 副本.uts | 14 - pages - 副本 (2).json | 118 ------ pages - 副本.json | 213 ----------- pages.json | 818 ++++++++++++++++++++++++++++++------------ 4 files changed, 591 insertions(+), 572 deletions(-) delete mode 100644 main - 副本.uts delete mode 100644 pages - 副本 (2).json delete mode 100644 pages - 副本.json diff --git a/main - 副本.uts b/main - 副本.uts deleted file mode 100644 index 234c8c9b..00000000 --- a/main - 副本.uts +++ /dev/null @@ -1,14 +0,0 @@ -import { createSSRApp } from 'vue' -import App from './App.uvue' -import i18n from '@/uni_modules/i18n/index.uts' - -export function createApp() { - const app = createSSRApp(App) - - // 注册 i18n 全局属性,使组件可以使用 $t 方法 - app.config.globalProperties.$t = (key: string, values?: any, locale?: string): string => { - return i18n.global.t(key, values, locale) - } - - return { app } -} diff --git a/pages - 副本 (2).json b/pages - 副本 (2).json deleted file mode 100644 index 765ececb..00000000 --- a/pages - 副本 (2).json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "pages": [ - // 消费者端页面 - { - "path": "pages/mall/consumer/index", - "style": { - "navigationBarTitleText": "商城首页", - "enablePullDownRefresh": true - } - }, - { - "path": "pages/mall/consumer/category", - "style": { - "navigationBarTitleText": "商品分类" - } - }, - { - "path": "pages/mall/consumer/search", - "style": { - "navigationBarTitleText": "搜索商品", - "navigationStyle": "custom" - } - }, - { - "path": "pages/mall/consumer/product-detail", - "style": { - "navigationBarTitleText": "商品详情" - } - }, - { - "path": "pages/mall/consumer/cart", - "style": { - "navigationBarTitleText": "购物车" - } - }, - { - "path": "pages/mall/consumer/orders", - "style": { - "navigationBarTitleText": "我的订单", - "enablePullDownRefresh": true - } - }, - { - "path": "pages/mall/consumer/order-detail", - "style": { - "navigationBarTitleText": "订单详情" - } - }, - { - "path": "pages/mall/consumer/address", - "style": { - "navigationBarTitleText": "收货地址" - } - }, - { - "path": "pages/mall/consumer/address-edit", - "style": { - "navigationBarTitleText": "编辑地址" - } - }, - { - "path": "pages/mall/consumer/coupons", - "style": { - "navigationBarTitleText": "我的优惠券" - } - }, - { - "path": "pages/mall/consumer/favorites", - "style": { - "navigationBarTitleText": "我的收藏" - } - }, - { - "path": "pages/mall/consumer/profile", - "style": { - "navigationBarTitleText": "个人中心" - } - } - ], - "tabBar": { - "color": "#999999", - "selectedColor": "#007aff", - "backgroundColor": "#ffffff", - "borderStyle": "black", - "list": [ - { - "pagePath": "pages/mall/consumer/index", - "text": "首页", - "iconPath": "static/tab-home.png", - "selectedIconPath": "static/tab-home-active.png" - }, - { - "pagePath": "pages/mall/consumer/category", - "text": "分类", - "iconPath": "static/tab-category.png", - "selectedIconPath": "static/tab-category-active.png" - }, - { - "pagePath": "pages/mall/consumer/cart", - "text": "购物车", - "iconPath": "static/tab-cart.png", - "selectedIconPath": "static/tab-cart-active.png" - }, - { - "pagePath": "pages/mall/consumer/orders", - "text": "订单", - "iconPath": "static/tab-order.png", - "selectedIconPath": "static/tab-order-active.png" - }, - { - "pagePath": "pages/mall/consumer/profile", - "text": "我的", - "iconPath": "static/tab-profile.png", - "selectedIconPath": "static/tab-profile-active.png" - } - ] - } -} \ No newline at end of file diff --git a/pages - 副本.json b/pages - 副本.json deleted file mode 100644 index fed5ab00..00000000 --- a/pages - 副本.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "pages": [ - { - "path": "pages/mall/consumer/index", - "style": { - "navigationBarTitleText": "商城首页", - "navigationStyle": "custom" - } - }, - { - "path": "pages/user/boot", - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/user/login", - "style": { - "navigationBarTitleText": "登录" - } - }, - { - "path": "pages/user/register", - "style": { - "navigationBarTitleText": "注册" - } - }, - { - "path": "pages/user/forgot-password", - "style": { - "navigationBarTitleText": "忘记密码" - } - }, - { - "path": "pages/user/center", - "style": { - "navigationBarTitleText": "用户中心" - } - }, - { - "path": "pages/user/profile", - "style": { - "navigationBarTitleText": "个人资料" - } - }, - { - "path": "pages/user/terms", - "style": { - "navigationBarTitleText": "用户协议与隐私政策" - } - }, - { - "path": "pages/mall/merchant/index", - "style": { - "navigationBarTitleText": "商家中心", - "navigationStyle": "custom" - } - }, - { - "path": "pages/mall/delivery/index", - "style": { - "navigationBarTitleText": "配送中心", - "navigationStyle": "custom" - } - }, - { - "path": "pages/mall/admin/index", - "style": { - "navigationBarTitleText": "管理后台", - "navigationStyle": "custom" - } - }, - { - "path": "pages/mall/service/index", - "style": { - "navigationBarTitleText": "客服工作台", - "navigationStyle": "custom" - } - }, - { - "path": "pages/mall/analytics/index", - "style": { - "navigationBarTitleText": "数据分析", - "navigationStyle": "custom" - } - } - ], - "subPackages": [ - { - "root": "pages/mall", - "pages": [ - { - "path": "consumer/product-detail", - "style": { - "navigationBarTitleText": "商品详情" - } - }, - { - "path": "consumer/order-detail", - "style": { - "navigationBarTitleText": "订单详情" - } - }, - { - "path": "consumer/profile", - "style": { - "navigationBarTitleText": "个人中心" - } - }, - { - "path": "consumer/subscription/plan-list", - "style": { - "navigationBarTitleText": "软件订阅" - } - }, - { - "path": "consumer/subscription/plan-detail", - "style": { - "navigationBarTitleText": "订阅详情" - } - }, - { - "path": "consumer/subscription/subscribe-checkout", - "style": { - "navigationBarTitleText": "确认订阅" - } - }, - { - "path": "consumer/subscription/my-subscriptions", - "style": { - "navigationBarTitleText": "我的订阅" - } - }, - { - "path": "admin/subscription/plan-management", - "style": { - "navigationBarTitleText": "订阅方案管理" - } - }, - { - "path": "admin/subscription/user-subscriptions", - "style": { - "navigationBarTitleText": "用户订阅管理" - } - }, - { - "path": "nfc/security/index", - "style": { - "navigationBarTitleText": "安保工作台", - "enablePullDownRefresh": true, - "backgroundColor": "#f8f9fa" - } - } - ] - } - ], - "tabBar": { - "custom": true, - "color": "#7A7E83", - "selectedColor": "#3cc51f", - "borderStyle": "black", - "backgroundColor": "#ffffff", - "list": [ - { - "pagePath": "pages/mall/consumer/index", - "iconPath": "static/tab-home.png", - "selectedIconPath": "static/tab-home-current.png", - "text": "首页" - }, - { - "pagePath": "pages/mall/consumer/category", - "iconPath": "static/tab-category.png", - "selectedIconPath": "static/tab-category-current.png", - "text": "分类" - }, - { - "pagePath": "pages/mall/consumer/cart", - "iconPath": "static/tab-cart.png", - "selectedIconPath": "static/tab-cart-current.png", - "text": "购物车" - }, - { - "pagePath": "pages/mall/consumer/profile", - "iconPath": "static/tab-profile.png", - "selectedIconPath": "static/tab-profile-current.png", - "text": "我的" - } - ] - }, - "globalStyle": { - "navigationBarTextStyle": "black", - "navigationBarTitleText": "mall", - "navigationBarBackgroundColor": "#FFFFFF", - "backgroundColor": "#F8F8F8" - }, - "condition": { - "current": 0, - "list": [ - { - "name": "消费者端首页", - "path": "pages/mall/consumer/index" - }, - { - "name": "启动页(登录态判断)", - "path": "pages/user/boot" - }, - { - "name": "登录页", - "path": "pages/user/login" - } - ] - } -} \ No newline at end of file diff --git a/pages.json b/pages.json index 09aa09e6..314253fb 100644 --- a/pages.json +++ b/pages.json @@ -1,32 +1,56 @@ { "pages": [ { - "path": "pages/mall/consumer/index", + "path": "pages/user/login", + "style": { + "navigationBarTitleText": "用户登录", + "navigationStyle": "custom" + } + }, + { + "path": "pages/user/boot", + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/user/register", + "style": { + "navigationBarTitleText": "注册" + } + }, + { + "path": "pages/user/forgot-password", + "style": { + "navigationBarTitleText": "忘记密码" + } + }, + { + "path": "pages/user/terms", + "style": { + "navigationBarTitleText": "用户协议与隐私政策" + } + }, + { + "path": "pages/user/center", + "style": { + "navigationBarTitleText": "用户中心" + } + }, + { + "path": "pages/user/profile", + "style": { + "navigationBarTitleText": "个人资料" + } + }, + { + "path": "pages/mall/consumer/index", "style": { "navigationBarTitleText": "首页", "navigationStyle": "custom", "enablePullDownRefresh": true } }, - { - "path": "pages/mall/consumer/settings", - "style": { - "navigationBarTitleText": "设置" - } - }, - { - "path": "pages/mall/consumer/wallet", - "style": { - "navigationBarTitleText": "我的钱包" - } - }, - { - "path": "pages/user/login", - "style": { - "navigationBarTitleText": "用户登录", - "navigationStyle": "custom" - } - }, { "path": "pages/mall/consumer/category", "style": { @@ -51,222 +75,556 @@ "style": { "navigationBarTitleText": "我的" } + } + ], + "subPackages": [ + { + "root": "pages/mall/consumer", + "pages": [ + { + "path": "settings", + "style": { + "navigationBarTitleText": "设置" + } + }, + { + "path": "wallet", + "style": { + "navigationBarTitleText": "我的钱包" + } + }, + { + "path": "search", + "style": { + "navigationBarTitleText": "搜索", + "navigationStyle": "custom" + } + }, + { + "path": "product-detail", + "style": { + "navigationBarTitleText": "商品详情" + } + }, + { + "path": "shop-detail", + "style": { + "navigationBarTitleText": "店铺详情" + } + }, + { + "path": "coupons", + "style": { + "navigationBarTitleText": "我的优惠券" + } + }, + { + "path": "favorites", + "style": { + "navigationBarTitleText": "我的收藏" + } + }, + { + "path": "footprint", + "style": { + "navigationBarTitleText": "我的足迹" + } + }, + { + "path": "address-list", + "style": { + "navigationBarTitleText": "收货地址" + } + }, + { + "path": "address-edit", + "style": { + "navigationBarTitleText": "编辑地址" + } + }, + { + "path": "checkout", + "style": { + "navigationBarTitleText": "确认订单" + } + }, + { + "path": "payment", + "style": { + "navigationBarTitleText": "收银台" + } + }, + { + "path": "payment-success", + "style": { + "navigationBarTitleText": "支付成功", + "navigationStyle": "custom" + } + }, + { + "path": "orders", + "style": { + "navigationBarTitleText": "我的订单", + "enablePullDownRefresh": true + } + }, + { + "path": "order-detail", + "style": { + "navigationBarTitleText": "订单详情" + } + }, + { + "path": "logistics", + "style": { + "navigationBarTitleText": "物流详情" + } + }, + { + "path": "review", + "style": { + "navigationBarTitleText": "评价晒单" + } + }, + { + "path": "refund", + "style": { + "navigationBarTitleText": "退款/售后" + } + }, + { + "path": "apply-refund", + "style": { + "navigationBarTitleText": "申请售后" + } + }, + { + "path": "refund-review", + "style": { + "navigationBarTitleText": "服务评价" + } + }, + { + "path": "chat", + "style": { + "navigationBarTitleText": "客服聊天", + "navigationStyle": "custom" + } + }, + { + "path": "subscription/plan-list", + "style": { + "navigationBarTitleText": "软件订阅" + } + }, + { + "path": "subscription/plan-detail", + "style": { + "navigationBarTitleText": "订阅详情" + } + }, + { + "path": "subscription/subscribe-checkout", + "style": { + "navigationBarTitleText": "确认订阅" + } + }, + { + "path": "subscription/my-subscriptions", + "style": { + "navigationBarTitleText": "我的订阅" + } + } + ] }, { - "path": "pages/mall/consumer/search", - "style": { - "navigationBarTitleText": "搜索", - "navigationStyle": "custom" - } + "root": "pages/mall/delivery", + "pages": [ + { + "path": "index", + "style": { + "navigationBarTitleText": "配送中心", + "navigationStyle": "custom" + } + }, + { + "path": "order-detail", + "style": { + "navigationBarTitleText": "订单详情页", + "navigationStyle": "custom" + } + }, + { + "path": "profile", + "style": { + "navigationBarTitleText": "配送个人中心", + "navigationStyle": "custom" + } + }, + { + "path": "order-history", + "style": { + "navigationBarTitleText": "历史记录", + "navigationStyle": "custom" + } + }, + { + "path": "earnings", + "style": { + "navigationBarTitleText": "收入明细", + "navigationStyle": "custom" + } + }, + { + "path": "tasks", + "style": { + "navigationBarTitleText": "全部任务", + "navigationStyle": "custom" + } + }, + { + "path": "task-detail", + "style": { + "navigationBarTitleText": "任务详情", + "navigationStyle": "custom" + } + }, + { + "path": "profile-edit", + "style": { + "navigationBarTitleText": "编辑个人资料", + "navigationStyle": "custom" + } + }, + { + "path": "ratings", + "style": { + "navigationBarTitleText": "评价", + "navigationStyle": "custom" + } + }, + { + "path": "vehicle", + "style": { + "navigationBarTitleText": "车辆管理", + "navigationStyle": "custom" + } + }, + { + "path": "vehicle-add", + "style": { + "navigationBarTitleText": "添加车辆", + "navigationStyle": "custom" + } + }, + { + "path": "vehicle-edit", + "style": { + "navigationBarTitleText": "编辑车辆", + "navigationStyle": "custom" + } + }, + { + "path": "settings", + "style": { + "navigationBarTitleText": "设置", + "navigationStyle": "custom" + } + } + ] }, { - "path": "pages/mall/consumer/product-detail", - "style": { - "navigationBarTitleText": "商品详情" - } + "root": "pages/mall/analytics", + "pages": [ + { + "path": "index", + "style": { + "navigationBarTitleText": "数据分析", + "navigationStyle": "custom" + } + }, + { + "path": "profile", + "style": { + "navigationBarTitleText": "数据分析个人中心" + } + }, + { + "path": "sales-report", + "style": { + "navigationBarTitleText": "销售报表" + } + }, + { + "path": "user-analysis", + "style": { + "navigationBarTitleText": "用户分析" + } + }, + { + "path": "product-insights", + "style": { + "navigationBarTitleText": "商品洞察" + } + }, + { + "path": "delivery-analysis", + "style": { + "navigationBarTitleText": "配送效率分析" + } + }, + { + "path": "coupon-analysis", + "style": { + "navigationBarTitleText": "优惠券效果分析" + } + }, + { + "path": "market-trends", + "style": { + "navigationBarTitleText": "市场趋势" + } + }, + { + "path": "custom-report", + "style": { + "navigationBarTitleText": "自定义报表" + } + }, + { + "path": "report-detail", + "style": { + "navigationBarTitleText": "报表详情", + "enablePullDownRefresh": false + } + }, + { + "path": "data-detail", + "style": { + "navigationBarTitleText": "数据分析详情", + "enablePullDownRefresh": false + } + }, + { + "path": "insight-detail", + "style": { + "navigationBarTitleText": "数据洞察详情", + "enablePullDownRefresh": false + } + }, + { + "path": "test/test-connection", + "style": { + "navigationBarTitleText": "Supabase 连接测试" + } + } + ] }, { - "path": "pages/mall/consumer/shop-detail", - "style": { - "navigationBarTitleText": "店铺详情" - } + "root": "pages/mall/admin", + "pages": [ + { + "path": "homePage/index", + "style": { + "navigationBarTitleText": "管理后台", + "navigationStyle": "custom" + } + }, + { + "path": "user-management", + "style": { + "navigationBarTitleText": "用户管理", + "navigationStyle": "custom" + } + }, + { + "path": "product-management", + "style": { + "navigationBarTitleText": "商品管理", + "navigationStyle": "custom" + } + }, + { + "path": "order-management", + "style": { + "navigationBarTitleText": "订单管理", + "navigationStyle": "custom" + } + }, + { + "path": "finance-management", + "style": { + "navigationBarTitleText": "财务管理", + "navigationStyle": "custom" + } + }, + { + "path": "user-statistics", + "style": { + "navigationBarTitleText": "用户统计", + "navigationStyle": "custom" + } + }, + { + "path": "system-settings", + "style": { + "navigationBarTitleText": "系统设置", + "navigationStyle": "custom" + } + }, + { + "path": "profile", + "style": { + "navigationBarTitleText": "管理后台" + } + }, + { + "path": "delivery-management", + "style": { + "navigationBarTitleText": "配送管理" + } + }, + { + "path": "merchant-management", + "style": { + "navigationBarTitleText": "商家管理" + } + }, + { + "path": "merchant-review", + "style": { + "navigationBarTitleText": "商家审核" + } + }, + { + "path": "product-review", + "style": { + "navigationBarTitleText": "商品审核" + } + }, + { + "path": "refund-review", + "style": { + "navigationBarTitleText": "退款审核" + } + }, + { + "path": "complaints", + "style": { + "navigationBarTitleText": "投诉处理" + } + }, + { + "path": "notifications", + "style": { + "navigationBarTitleText": "通知" + } + }, + { + "path": "activity-log", + "style": { + "navigationBarTitleText": "活动日志" + } + }, + { + "path": "subscription/plan-management", + "style": { + "navigationBarTitleText": "订阅方案管理" + } + }, + { + "path": "subscription/user-subscriptions", + "style": { + "navigationBarTitleText": "用户订阅管理" + } + }, + { + "path": "marketing/coupon/coupon-management", + "style": { + "navigationBarTitleText": "优惠券管理" + } + }, + { + "path": "marketing/coupon/list", + "style": { + "navigationBarTitleText": "优惠券列表" + } + }, + { + "path": "marketing/coupon/receive", + "style": { + "navigationBarTitleText": "用户领取记录" + } + }, + { + "path": "marketing/points/index", + "style": { + "navigationBarTitleText": "积分管理" + } + }, + { + "path": "marketing/signin/rule", + "style": { + "navigationBarTitleText": "签到规则" + } + }, + { + "path": "marketing/signin/record", + "style": { + "navigationBarTitleText": "签到记录" + } + } + ] }, { - "path": "pages/mall/consumer/coupons", - "style": { - "navigationBarTitleText": "我的优惠券" - } + "root": "pages/mall/merchant", + "pages": [ + { + "path": "index", + "style": { + "navigationBarTitleText": "商家中心", + "navigationStyle": "custom" + } + }, + { + "path": "product-detail", + "style": { + "navigationBarTitleText": "商品管理详情", + "enablePullDownRefresh": false + } + }, + { + "path": "profile", + "style": { + "navigationBarTitleText": "个人资料" + } + } + ] }, { - "path": "pages/mall/consumer/favorites", - "style": { - "navigationBarTitleText": "我的收藏" - } - }, - { - "path": "pages/mall/consumer/footprint", - "style": { - "navigationBarTitleText": "我的足迹" - } - }, - { - "path": "pages/mall/consumer/address-list", - "style": { - "navigationBarTitleText": "收货地址" - } - }, - { - "path": "pages/mall/consumer/address-edit", - "style": { - "navigationBarTitleText": "编辑地址" - } - }, - { - "path": "pages/mall/consumer/checkout", - "style": { - "navigationBarTitleText": "确认订单" - } - }, - { - "path": "pages/mall/consumer/payment", - "style": { - "navigationBarTitleText": "收银台" - } - }, - { - "path": "pages/mall/consumer/payment-success", - "style": { - "navigationBarTitleText": "支付成功", - "navigationStyle": "custom" - } - }, - { - "path": "pages/mall/consumer/orders", - "style": { - "navigationBarTitleText": "我的订单", - "enablePullDownRefresh": true - } - }, - { - "path": "pages/mall/delivery/order-detail", - "style": { - "navigationBarTitleText": "订单详情页", - "navigationStyle": "custom" - } - }, - { - "path": "pages/mall/delivery/profile", - "style": { - "navigationBarTitleText": "配送个人中心", - "navigationStyle": "custom" - } - }, - { - "path": "pages/mall/delivery/order-history", - "style": { - "navigationBarTitleText": "历史记录", - "navigationStyle": "custom" - } - }, - { - "path": "pages/mall/delivery/earnings", - "style": { - "navigationBarTitleText": "历史记录", - "navigationStyle": "custom" - } - }, - { - "path": "pages/mall/delivery/tasks", - "style": { - "navigationBarTitleText": "全部任务", - "navigationStyle": "custom" - } - }, - { - "path": "pages/mall/delivery/task-detail", - "style": { - "navigationBarTitleText": "任务详情", - "navigationStyle": "custom" - } - }, - { - "path": "pages/mall/delivery/profile-edit", - "style": { - "navigationBarTitleText": "编辑个人资料", - "navigationStyle": "custom" - } - }, - { - "path": "pages/mall/delivery/ratings", - "style": { - "navigationBarTitleText": "评价", - "navigationStyle": "custom" - } - }, - { - "path": "pages/mall/delivery/vehicle", - "style": { - "navigationBarTitleText": "车辆管理", - "navigationStyle": "custom" - } - }, - { - "path": "pages/mall/delivery/vehicle-add", - "style": { - "navigationBarTitleText": "添加车辆", - "navigationStyle": "custom" - } - }, - { - "path": "pages/mall/delivery/vehicle-edit", - "style": { - "navigationBarTitleText": "添加车辆", - "navigationStyle": "custom" - } - }, - { - "path": "pages/mall/delivery/settings", - "style": { - "navigationBarTitleText": "设置", - "navigationStyle": "custom" - } - }, - { - "path": "pages/mall/delivery/order-detail", - "style": { - "navigationBarTitleText": "订单详情页", - "navigationStyle": "custom" - } - }, - { - "path": "pages/mall/delivery/profile", - "style": { - "navigationBarTitleText": "配送个人中心", - "navigationStyle": "custom" - } - }, - { - "path": "pages/mall/consumer/order-detail", - "style": { - "navigationBarTitleText": "订单详情" - } - }, - { - "path": "pages/mall/consumer/logistics", - "style": { - "navigationBarTitleText": "物流详情" - } - }, - { - "path": "pages/mall/consumer/review", - "style": { - "navigationBarTitleText": "评价晒单" - } - }, - { - "path": "pages/mall/consumer/refund", - "style": { - "navigationBarTitleText": "退款/售后" - } - }, - { - "path": "pages/mall/consumer/apply-refund", - "style": { - "navigationBarTitleText": "申请售后" - } - }, - { - "path": "pages/mall/consumer/refund-review", - "style": { - "navigationBarTitleText": "服务评价" - } - }, - { - "path": "pages/mall/consumer/chat", - "style": { - "navigationBarTitleText": "客服聊天", - "navigationStyle": "custom" - } + "root": "pages/mall/service", + "pages": [ + { + "path": "index", + "style": { + "navigationBarTitleText": "客服工作台", + "navigationStyle": "custom" + } + }, + { + "path": "profile", + "style": { + "navigationBarTitleText": "客服个人中心" + } + }, + { + "path": "ticket-detail", + "style": { + "navigationBarTitleText": "工单详情", + "enablePullDownRefresh": false + } + } + ] } ], "tabBar": { @@ -306,5 +664,11 @@ "selectedIconPath": "static/tabbar/profile-active.png" } ] + }, + "globalStyle": { + "navigationBarTextStyle": "black", + "navigationBarTitleText": "mall", + "navigationBarBackgroundColor": "#FFFFFF", + "backgroundColor": "#F8F8F8" } -} +} \ No newline at end of file