From da1075b9e99ff1fd7ac6159cf172c266a0cfe15e Mon Sep 17 00:00:00 2001 From: huangzhenbao <17818024429@163.com> Date: Fri, 13 Feb 2026 01:13:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=A1=B5=E9=9D=A26?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/admin/router/adminComponentMap.uts | 14 +- layouts/admin/router/adminRoutes.uts | 44 ++-- pages.json | 84 +++++++ pages/mall/admin/app/mobile/config.uvue | 70 ++++++ pages/mall/admin/app/mobile/version.uvue | 38 +++ pages/mall/admin/app/pc/config.uvue | 66 ++++++ pages/mall/admin/app/pc/design.uvue | 223 ++++++++++++++++++ pages/mall/admin/app/routine/config.uvue | 66 ++++++ pages/mall/admin/app/routine/download.uvue | 137 +++++++++++ pages/mall/admin/app/wechat/config.uvue | 136 +++++++++++ pages/mall/admin/app/wechat/menu.uvue | 129 ++++++++++ pages/mall/admin/app/wechat/news.uvue | 82 +++++++ pages/mall/admin/app/wechat/reply/follow.uvue | 144 +++++++++++ .../mall/admin/app/wechat/reply/invalid.uvue | 63 +++++ .../mall/admin/app/wechat/reply/keyword.uvue | 57 +++++ 15 files changed, 1331 insertions(+), 22 deletions(-) create mode 100644 pages/mall/admin/app/mobile/config.uvue create mode 100644 pages/mall/admin/app/mobile/version.uvue create mode 100644 pages/mall/admin/app/pc/config.uvue create mode 100644 pages/mall/admin/app/pc/design.uvue create mode 100644 pages/mall/admin/app/routine/config.uvue create mode 100644 pages/mall/admin/app/routine/download.uvue create mode 100644 pages/mall/admin/app/wechat/config.uvue create mode 100644 pages/mall/admin/app/wechat/menu.uvue create mode 100644 pages/mall/admin/app/wechat/news.uvue create mode 100644 pages/mall/admin/app/wechat/reply/follow.uvue create mode 100644 pages/mall/admin/app/wechat/reply/invalid.uvue create mode 100644 pages/mall/admin/app/wechat/reply/keyword.uvue diff --git a/layouts/admin/router/adminComponentMap.uts b/layouts/admin/router/adminComponentMap.uts index f5eca71c..9e3a80db 100644 --- a/layouts/admin/router/adminComponentMap.uts +++ b/layouts/admin/router/adminComponentMap.uts @@ -170,8 +170,18 @@ export const componentMap: Map = new Map([ ['DecorationLink', defineAsyncComponent(() => import('@/pages/mall/admin/design/link-management.uvue'))], // 应用模块 - ['AppStatistic', PlaceholderPage], - ['AppList', PlaceholderPage], + ['AppWechatMenu', defineAsyncComponent(() => import('@/pages/mall/admin/app/wechat/menu.uvue'))], + ['AppWechatNews', defineAsyncComponent(() => import('@/pages/mall/admin/app/wechat/news.uvue'))], + ['AppWechatReplyFollow', defineAsyncComponent(() => import('@/pages/mall/admin/app/wechat/reply/follow.uvue'))], + ['AppWechatReplyKeyword', defineAsyncComponent(() => import('@/pages/mall/admin/app/wechat/reply/keyword.uvue'))], + ['AppWechatReplyInvalid', defineAsyncComponent(() => import('@/pages/mall/admin/app/wechat/reply/invalid.uvue'))], + ['AppWechatConfig', defineAsyncComponent(() => import('@/pages/mall/admin/app/wechat/config.uvue'))], + ['AppRoutineDownload', defineAsyncComponent(() => import('@/pages/mall/admin/app/routine/download.uvue'))], + ['AppRoutineConfig', defineAsyncComponent(() => import('@/pages/mall/admin/app/routine/config.uvue'))], + ['AppMobileConfig', defineAsyncComponent(() => import('@/pages/mall/admin/app/mobile/config.uvue'))], + ['AppMobileVersion', defineAsyncComponent(() => import('@/pages/mall/admin/app/mobile/version.uvue'))], + ['AppPcDesign', defineAsyncComponent(() => import('@/pages/mall/admin/app/pc/design.uvue'))], + ['AppPcConfig', defineAsyncComponent(() => import('@/pages/mall/admin/app/pc/config.uvue'))], // 维护模块 ['MaintainDevConfig', defineAsyncComponent(() => import('@/pages/mall/admin/maintain/dev-config/category.uvue'))], diff --git a/layouts/admin/router/adminRoutes.uts b/layouts/admin/router/adminRoutes.uts index a2c9ece4..c88c8d70 100644 --- a/layouts/admin/router/adminRoutes.uts +++ b/layouts/admin/router/adminRoutes.uts @@ -173,10 +173,13 @@ export const topMenus: TopMenu[] = [ id: 'app', title: '应用', icon: 'app', - path: '/pages/mall/admin/app/statistic', + path: '/pages/mall/admin/app/wechat/menu', order: 11, groups: [ - { id: 'app-manage', title: '', order: 1 } + { id: 'app-wechat', title: '公众号', order: 1 }, + { id: 'app-routine', title: '小程序', order: 2 }, + { id: 'app-mobile', title: 'APP', order: 3 }, + { id: 'app-pc', title: 'PC端', order: 4 } ] }, { @@ -1102,24 +1105,25 @@ export const routes: RouteRecord[] = [ { id: 'setting_api_pay', title: '商城支付配置', path: '/pages/mall/admin/setting/interface/payment', componentKey: 'SettingInterfacePayment', parentId: 'setting', groupId: 'setting-interface', order: 8 }, // ========== 应用模块 ========== - { - id: 'app_statistic', - title: '应用统计', - path: '/pages/mall/admin/app/statistic', - componentKey: 'AppStatistic', - parentId: 'app', - groupId: 'app-manage', - order: 1 - }, - { - id: 'app_list', - title: '应用列表', - path: '/pages/mall/admin/app/list', - componentKey: 'AppList', - parentId: 'app', - groupId: 'app-manage', - order: 2 - }, + // 1. 公众号 + { id: 'app_wechat_menu', title: '微信菜单', path: '/pages/mall/admin/app/wechat/menu', componentKey: 'AppWechatMenu', parentId: 'app', groupId: 'app-wechat', order: 1 }, + { id: 'app_wechat_news', title: '图文管理', path: '/pages/mall/admin/app/wechat/news', componentKey: 'AppWechatNews', parentId: 'app', groupId: 'app-wechat', order: 2 }, + { id: 'app_wechat_reply_follow', title: '关注回复', path: '/pages/mall/admin/app/wechat/reply/follow', componentKey: 'AppWechatReplyFollow', parentId: 'app', groupId: 'app-wechat', order: 3 }, + { id: 'app_wechat_reply_keyword', title: '关键字回复', path: '/pages/mall/admin/app/wechat/reply/keyword', componentKey: 'AppWechatReplyKeyword', parentId: 'app', groupId: 'app-wechat', order: 4 }, + { id: 'app_wechat_reply_invalid', title: '无效词回复', path: '/pages/mall/admin/app/wechat/reply/invalid', componentKey: 'AppWechatReplyInvalid', parentId: 'app', groupId: 'app-wechat', order: 5 }, + { id: 'app_wechat_config', title: '公众号配置', path: '/pages/mall/admin/app/wechat/config', componentKey: 'AppWechatConfig', parentId: 'app', groupId: 'app-wechat', order: 6 }, + + // 2. 小程序 + { id: 'app_routine_download', title: '小程序下载', path: '/pages/mall/admin/app/routine/download', componentKey: 'AppRoutineDownload', parentId: 'app', groupId: 'app-routine', order: 1 }, + { id: 'app_routine_config', title: '小程序配置', path: '/pages/mall/admin/app/routine/config', componentKey: 'AppRoutineConfig', parentId: 'app', groupId: 'app-routine', order: 2 }, + + // 3. APP + { id: 'app_mobile_config', title: 'APP配置', path: '/pages/mall/admin/app/mobile/config', componentKey: 'AppMobileConfig', parentId: 'app', groupId: 'app-mobile', order: 1 }, + { id: 'app_mobile_version', title: '版本管理', path: '/pages/mall/admin/app/mobile/version', componentKey: 'AppMobileVersion', parentId: 'app', groupId: 'app-mobile', order: 2 }, + + // 4. PC端 + { id: 'app_pc_design', title: 'PC端装修', path: '/pages/mall/admin/app/pc/design', componentKey: 'AppPcDesign', parentId: 'app', groupId: 'app-pc', order: 1 }, + { id: 'app_pc_config', title: 'PC端配置', path: '/pages/mall/admin/app/pc/config', componentKey: 'AppPcConfig', parentId: 'app', groupId: 'app-pc', order: 2 }, // ========== 维护模块 ========== // 开发配置 diff --git a/pages.json b/pages.json index 380ae959..c74049ac 100644 --- a/pages.json +++ b/pages.json @@ -759,6 +759,90 @@ "navigationBarTitleText": "商城支付配置", "navigationStyle": "custom" } + }, + { + "path": "app/wechat/menu", + "style": { + "navigationBarTitleText": "微信菜单", + "navigationStyle": "custom" + } + }, + { + "path": "app/wechat/news", + "style": { + "navigationBarTitleText": "图文管理", + "navigationStyle": "custom" + } + }, + { + "path": "app/wechat/reply/follow", + "style": { + "navigationBarTitleText": "微信关注回复", + "navigationStyle": "custom" + } + }, + { + "path": "app/wechat/reply/keyword", + "style": { + "navigationBarTitleText": "关键字回复", + "navigationStyle": "custom" + } + }, + { + "path": "app/wechat/reply/invalid", + "style": { + "navigationBarTitleText": "无效关键词回复", + "navigationStyle": "custom" + } + }, + { + "path": "app/wechat/config", + "style": { + "navigationBarTitleText": "公众号配置", + "navigationStyle": "custom" + } + }, + { + "path": "app/routine/download", + "style": { + "navigationBarTitleText": "小程序下载", + "navigationStyle": "custom" + } + }, + { + "path": "app/routine/config", + "style": { + "navigationBarTitleText": "小程序配置", + "navigationStyle": "custom" + } + }, + { + "path": "app/mobile/config", + "style": { + "navigationBarTitleText": "APP配置", + "navigationStyle": "custom" + } + }, + { + "path": "app/mobile/version", + "style": { + "navigationBarTitleText": "版本管理", + "navigationStyle": "custom" + } + }, + { + "path": "app/pc/design", + "style": { + "navigationBarTitleText": "PC端装修", + "navigationStyle": "custom" + } + }, + { + "path": "app/pc/config", + "style": { + "navigationBarTitleText": "PC端配置", + "navigationStyle": "custom" + } } ] }, diff --git a/pages/mall/admin/app/mobile/config.uvue b/pages/mall/admin/app/mobile/config.uvue new file mode 100644 index 00000000..328700d8 --- /dev/null +++ b/pages/mall/admin/app/mobile/config.uvue @@ -0,0 +1,70 @@ + + + + + diff --git a/pages/mall/admin/app/mobile/version.uvue b/pages/mall/admin/app/mobile/version.uvue new file mode 100644 index 00000000..1b4b8b38 --- /dev/null +++ b/pages/mall/admin/app/mobile/version.uvue @@ -0,0 +1,38 @@ + + + + + diff --git a/pages/mall/admin/app/pc/config.uvue b/pages/mall/admin/app/pc/config.uvue new file mode 100644 index 00000000..9b8117f7 --- /dev/null +++ b/pages/mall/admin/app/pc/config.uvue @@ -0,0 +1,66 @@ + + + + + diff --git a/pages/mall/admin/app/pc/design.uvue b/pages/mall/admin/app/pc/design.uvue new file mode 100644 index 00000000..64e09940 --- /dev/null +++ b/pages/mall/admin/app/pc/design.uvue @@ -0,0 +1,223 @@ + + + + + diff --git a/pages/mall/admin/app/routine/config.uvue b/pages/mall/admin/app/routine/config.uvue new file mode 100644 index 00000000..daef3074 --- /dev/null +++ b/pages/mall/admin/app/routine/config.uvue @@ -0,0 +1,66 @@ + + + + + diff --git a/pages/mall/admin/app/routine/download.uvue b/pages/mall/admin/app/routine/download.uvue new file mode 100644 index 00000000..dbdd0af6 --- /dev/null +++ b/pages/mall/admin/app/routine/download.uvue @@ -0,0 +1,137 @@ + + + + + diff --git a/pages/mall/admin/app/wechat/config.uvue b/pages/mall/admin/app/wechat/config.uvue new file mode 100644 index 00000000..cefac889 --- /dev/null +++ b/pages/mall/admin/app/wechat/config.uvue @@ -0,0 +1,136 @@ + + + + + diff --git a/pages/mall/admin/app/wechat/menu.uvue b/pages/mall/admin/app/wechat/menu.uvue new file mode 100644 index 00000000..be37bb04 --- /dev/null +++ b/pages/mall/admin/app/wechat/menu.uvue @@ -0,0 +1,129 @@ + + + + + diff --git a/pages/mall/admin/app/wechat/news.uvue b/pages/mall/admin/app/wechat/news.uvue new file mode 100644 index 00000000..52031cc1 --- /dev/null +++ b/pages/mall/admin/app/wechat/news.uvue @@ -0,0 +1,82 @@ + + + + + diff --git a/pages/mall/admin/app/wechat/reply/follow.uvue b/pages/mall/admin/app/wechat/reply/follow.uvue new file mode 100644 index 00000000..c98422c5 --- /dev/null +++ b/pages/mall/admin/app/wechat/reply/follow.uvue @@ -0,0 +1,144 @@ + + + + + diff --git a/pages/mall/admin/app/wechat/reply/invalid.uvue b/pages/mall/admin/app/wechat/reply/invalid.uvue new file mode 100644 index 00000000..d8225836 --- /dev/null +++ b/pages/mall/admin/app/wechat/reply/invalid.uvue @@ -0,0 +1,63 @@ + + + + + diff --git a/pages/mall/admin/app/wechat/reply/keyword.uvue b/pages/mall/admin/app/wechat/reply/keyword.uvue new file mode 100644 index 00000000..e4d5f17e --- /dev/null +++ b/pages/mall/admin/app/wechat/reply/keyword.uvue @@ -0,0 +1,57 @@ + + + + +