diff --git a/pages.json b/pages.json index 625b4c01..3d5245b8 100644 --- a/pages.json +++ b/pages.json @@ -453,410 +453,460 @@ "root": "pages/mall/admin", "pages": [ { - "path": "user/management/index", + "path": "order-management", "style": { - "navigationBarTitleText": "用户管理", + "navigationBarTitleText": "订单管理", "navigationStyle": "custom" } - }, + } + ] + }, + { + "root": "pages/mall/admin/order", + "pages": [ { - "path": "product/product-management/index", - "style": { - "navigationBarTitleText": "商品管理", - "navigationStyle": "custom" - } - }, - { - "path": "order/list", + "path": "list", "style": { "navigationBarTitleText": "订单列表", "navigationStyle": "custom" } }, { - "path": "order/order-statistics/index", + "path": "order-statistics/index", "style": { "navigationBarTitleText": "订单统计", "navigationStyle": "custom" } }, { - "path": "order/order-configuration/index", + "path": "order-configuration/index", "style": { "navigationBarTitleText": "订单配置", "navigationStyle": "custom" } }, { - "path": "order/aftersales-order/index", + "path": "aftersales-order/index", "style": { "navigationBarTitleText": "售后订单", "navigationStyle": "custom" } }, { - "path": "order/write-off-records/index", + "path": "write-off-records/index", "style": { "navigationBarTitleText": "核销记录", "navigationStyle": "custom" } - }, + } + ] + }, + { + "root": "pages/mall/admin/product", + "pages": [ { - "path": "order-management", + "path": "product-management/index", "style": { - "navigationBarTitleText": "订单管理", + "navigationBarTitleText": "商品管理", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/admin/user", + "pages": [ + { + "path": "management/index", + "style": { + "navigationBarTitleText": "用户管理", "navigationStyle": "custom" } }, { - "path": "finance/record", - "style": { - "navigationBarTitleText": "财务管理", - "navigationStyle": "custom" - } - }, - { - "path": "user/statistics/index", + "path": "statistics/index", "style": { "navigationBarTitleText": "用户统计", "navigationStyle": "custom" } - }, + } + ] + }, + { + "root": "pages/mall/admin/finance", + "pages": [ { - "path": "subscription/plan-management", + "path": "record", + "style": { + "navigationBarTitleText": "财务管理", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/admin/subscription", + "pages": [ + { + "path": "plan-management", "style": { "navigationBarTitleText": "订阅方案管理" } }, { - "path": "subscription/user-subscriptions", + "path": "user-subscriptions", "style": { "navigationBarTitleText": "用户订阅管理" } - }, + } + ] + }, + { + "root": "pages/mall/admin/distribution", + "pages": [ { - "path": "distribution/setting/index", + "path": "setting/index", "style": { "navigationBarTitleText": "分销设置", "navigationStyle": "custom" } }, { - "path": "distribution/promoter/index", + "path": "promoter/index", "style": { "navigationBarTitleText": "分销员管理", "navigationStyle": "custom" } }, { - "path": "distribution/level/index", + "path": "level/index", "style": { "navigationBarTitleText": "分销等级管理", "navigationStyle": "custom" } }, { - "path": "distribution/division/list", + "path": "division/list", "style": { "navigationBarTitleText": "事业部管理", "navigationStyle": "custom" } }, { - "path": "distribution/division/agent", + "path": "division/agent", "style": { "navigationBarTitleText": "代理商列表", "navigationStyle": "custom" } }, { - "path": "distribution/division/apply", + "path": "division/apply", "style": { "navigationBarTitleText": "事业部申请", "navigationStyle": "custom" } - }, + } + ] + }, + { + "root": "pages/mall/admin/marketing", + "pages": [ { - "path": "marketing/coupon/list", + "path": "coupon/list", "style": { "navigationBarTitleText": "优惠券列表" } }, { - "path": "marketing/coupon/receive", + "path": "coupon/receive", "style": { "navigationBarTitleText": "用户领取记录" } }, { - "path": "marketing/points/index", + "path": "points/index", "style": { "navigationBarTitleText": "积分管理" } }, { - "path": "marketing/signin/rule", + "path": "signin/rule", "style": { "navigationBarTitleText": "签到规则" } }, { - "path": "marketing/signin/record", + "path": "signin/record", "style": { "navigationBarTitleText": "签到记录" } - }, + } + ] + }, + { + "root": "pages/mall/admin/maintain", + "pages": [ { - "path": "maintain/dev-tools/database", + "path": "dev-tools/database", "style": { "navigationBarTitleText": "数据库管理", "navigationStyle": "custom" } }, { - "path": "maintain/dev-tools/file", + "path": "dev-tools/file", "style": { "navigationBarTitleText": "文件管理", "navigationStyle": "custom" } }, { - "path": "maintain/dev-tools/api", + "path": "dev-tools/api", "style": { "navigationBarTitleText": "接口管理", "navigationStyle": "custom" } }, { - "path": "maintain/dev-tools/data-dict", + "path": "dev-tools/data-dict", "style": { "navigationBarTitleText": "数据字典", "navigationStyle": "custom" } }, { - "path": "setting/message", + "path": "dev-config/category", + "style": { + "navigationBarTitleText": "配置分类", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/admin/setting", + "pages": [ + { + "path": "message", "style": { "navigationBarTitleText": "消息管理", "navigationStyle": "custom" } }, { - "path": "setting/agreement", + "path": "agreement", "style": { "navigationBarTitleText": "协议设置", "navigationStyle": "custom" } }, { - "path": "setting/ticket", + "path": "ticket", "style": { "navigationBarTitleText": "小票配置", "navigationStyle": "custom" } }, { - "path": "setting/auth/admin", + "path": "auth/admin", "style": { "navigationBarTitleText": "管理员管理", "navigationStyle": "custom" } }, { - "path": "setting/auth/role", + "path": "auth/role", "style": { "navigationBarTitleText": "角色管理", "navigationStyle": "custom" } }, { - "path": "setting/auth/permission", + "path": "auth/permission", "style": { "navigationBarTitleText": "权限规则", "navigationStyle": "custom" } }, { - "path": "setting/delivery/staff", + "path": "delivery/staff", "style": { "navigationBarTitleText": "配送员管理", "navigationStyle": "custom" } }, { - "path": "setting/delivery/station", + "path": "delivery/station", "style": { "navigationBarTitleText": "提货点", "navigationStyle": "custom" } }, { - "path": "setting/delivery/verifier", + "path": "delivery/verifier", "style": { "navigationBarTitleText": "核销员", "navigationStyle": "custom" } }, { - "path": "setting/delivery/template", + "path": "delivery/template", "style": { "navigationBarTitleText": "运费模板", "navigationStyle": "custom" } }, { - "path": "setting/interface/onepass/index", + "path": "interface/onepass/index", "style": { "navigationBarTitleText": "一号通账户", "navigationStyle": "custom" } }, { - "path": "setting/interface/onepass/config", + "path": "interface/onepass/config", "style": { "navigationBarTitleText": "一号通配置", "navigationStyle": "custom" } }, { - "path": "setting/interface/storage", + "path": "interface/storage", "style": { "navigationBarTitleText": "系统存储配置", "navigationStyle": "custom" } }, { - "path": "setting/interface/collect", + "path": "interface/collect", "style": { "navigationBarTitleText": "商品采集配置", "navigationStyle": "custom" } }, { - "path": "setting/interface/logistics", + "path": "interface/logistics", "style": { "navigationBarTitleText": "物流查询配置", "navigationStyle": "custom" } }, { - "path": "setting/interface/e-sheet", + "path": "interface/e-sheet", "style": { "navigationBarTitleText": "电子面单配置", "navigationStyle": "custom" } }, { - "path": "setting/interface/sms", + "path": "interface/sms", "style": { "navigationBarTitleText": "短信功能配置", "navigationStyle": "custom" } }, { - "path": "setting/interface/payment", + "path": "interface/payment", "style": { "navigationBarTitleText": "商城支付配置", "navigationStyle": "custom" } }, { - "path": "app/wechat/menu", + "path": "system/config", + "style": { + "navigationBarTitleText": "系统配置", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/admin/app", + "pages": [ + { + "path": "wechat/menu", "style": { "navigationBarTitleText": "微信菜单", "navigationStyle": "custom" } }, { - "path": "app/wechat/news", + "path": "wechat/news", "style": { "navigationBarTitleText": "图文管理", "navigationStyle": "custom" } }, { - "path": "app/wechat/reply/follow", + "path": "wechat/reply/follow", "style": { "navigationBarTitleText": "微信关注回复", "navigationStyle": "custom" } }, { - "path": "app/wechat/reply/keyword", + "path": "wechat/reply/keyword", "style": { "navigationBarTitleText": "关键字回复", "navigationStyle": "custom" } }, { - "path": "app/wechat/reply/invalid", + "path": "wechat/reply/invalid", "style": { "navigationBarTitleText": "无效关键词回复", "navigationStyle": "custom" } }, { - "path": "app/wechat/config", + "path": "wechat/config", "style": { "navigationBarTitleText": "公众号配置", "navigationStyle": "custom" } }, { - "path": "app/routine/download", + "path": "routine/download", "style": { "navigationBarTitleText": "小程序下载", "navigationStyle": "custom" } }, { - "path": "app/routine/config", + "path": "routine/config", "style": { "navigationBarTitleText": "小程序配置", "navigationStyle": "custom" } }, { - "path": "app/mobile/config", + "path": "mobile/config", "style": { "navigationBarTitleText": "APP配置", "navigationStyle": "custom" } }, { - "path": "app/mobile/version", + "path": "mobile/version", "style": { "navigationBarTitleText": "版本管理", "navigationStyle": "custom" } }, { - "path": "app/pc/design", + "path": "pc/design", "style": { "navigationBarTitleText": "PC端装修", "navigationStyle": "custom" } }, { - "path": "app/pc/config", + "path": "pc/config", "style": { "navigationBarTitleText": "PC端配置", "navigationStyle": "custom" } - }, - { - "path": "maintain/dev-config/category", - "style": { - "navigationBarTitleText": "配置分类", - "navigationStyle": "custom" - } - }, - { - "path": "setting/system/config", - "style": { - "navigationBarTitleText": "系统配置", - "navigationStyle": "custom" - } } ] }, diff --git a/vite.config.js b/vite.config.js index 86a6425a..874509f6 100644 --- a/vite.config.js +++ b/vite.config.js @@ -8,5 +8,29 @@ export default defineConfig({ alias: { '@': fileURLToPath(new URL('./', import.meta.url)) } + }, + build: { + // 生产环境构建配置 + rollupOptions: { + output: { + // 手动拆包策略:将第三方库拆分成独立文件,减少首屏主包体积 + manualChunks(id) { + if (id.includes('node_modules')) { + // 将 vue 相关依赖拆分到 vendor-vue + if (id.includes('vue')) { + return 'vendor-vue' + } + // 将 dcloudio (uni-app) 相关依赖拆分 + if (id.includes('@dcloudio')) { + return 'vendor-uni' + } + // 其他 node_modules 依赖放入 vendor + return 'vendor' + } + } + } + }, + // 提高警告门槛,由默认 500kb 提至 1000kb + chunkSizeWarningLimit: 1000 } })