From 436698f47d790831749280432a6cbc751d5b036d Mon Sep 17 00:00:00 2001 From: zhangrenyuan <18990852002@163.com> Date: Thu, 6 Nov 2025 15:47:00 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E6=B7=BB=E5=8A=A0=E9=A2=91?= =?UTF-8?q?=E9=81=93=E7=AE=A1=E7=90=86=EF=BC=8C=E5=8C=85=E6=8B=AC=E6=89=93?= =?UTF-8?q?=E8=B5=8F=E3=80=81=E9=93=81=E7=B2=89=E3=80=81=E5=B0=8F=E9=BB=84?= =?UTF-8?q?=E8=BD=A6=EF=BC=8C=E5=90=8E=E7=BB=AD=E9=9C=80=E8=A6=81=E5=AE=8C?= =?UTF-8?q?=E5=96=84=E5=B0=8F=E9=BB=84=E8=BD=A6=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- src/router/index.js | 2 +- src/utils/menuTreePermission.js | 2 +- src/utils/menuUtils.js | 7 +- src/views/channelManage/cart/cart.vue | 676 +++++++++++++++++++++++++++++ src/views/channelManage/fans/fans.vue | 657 ++++++++++++++++++++++++++++ src/views/channelManage/reward/reward.vue | 700 ++++++++++++++++++++++++++++++ 7 files changed, 2043 insertions(+), 5 deletions(-) diff --git a/.env.development b/.env.development index 2ccc7eb..8fa72ce 100644 --- a/.env.development +++ b/.env.development @@ -1,4 +1,4 @@ -# VITE_API_BASE='https://hwjb.homilychart.com/dev/admin' +VITE_API_BASE='https://hwjb.homilychart.com/dev/admin' # 测试环境 # VITE_API_BASE='http://54.255.212.181:10704/' # 正式环境 @@ -13,7 +13,7 @@ VITE_UPLOAD_URL=http://39.101.133.168:8828/hljw/api/aws/upload # 本地 # VITE_API_BASE='http://localhost:8081/' # 孙加倍 -VITE_API_BASE='http://192.168.40.12:8081' +# VITE_API_BASE='http://192.168.40.12:8081' # Lijianlin # VITE_API_BASE='http://192.168.9.41:8081/' diff --git a/src/router/index.js b/src/router/index.js index 4c20539..28dc0b8 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -385,7 +385,7 @@ const routes = [ }, // 频道管理 { - path: '/channelManage', + path: 'channelManage', name: 'channelManage', meta: { permissionId: 124 }, children: [ diff --git a/src/utils/menuTreePermission.js b/src/utils/menuTreePermission.js index 99dc1b9..a502085 100644 --- a/src/utils/menuTreePermission.js +++ b/src/utils/menuTreePermission.js @@ -187,7 +187,7 @@ export const findMenuById = (menuList, targetId) => { // 递归判断某个 menuId 是否存在 export const hasMenuPermission = (tree, targetId) => { for (const node of tree) { - console.log(node.id) + // console.log(node.id) if (node.id === targetId) return true; if (node.children && hasMenuPermission(node.children, targetId)) return true; } diff --git a/src/utils/menuUtils.js b/src/utils/menuUtils.js index aec0e4e..b8ba460 100644 --- a/src/utils/menuUtils.js +++ b/src/utils/menuUtils.js @@ -91,8 +91,13 @@ export const getRoutePath = (menu) => { '退款-总部财务':'/moneyManage/refundDetail/refundHeader', '执行明细': '/moneyManage/executor', - }; + '频道管理': '/channelManage', + '打赏管理': '/channelManage/reward', + '铁粉管理': '/channelManage/fans', + '小黄车管理': '/channelManage/cart', + }; + // console.log('1111',menu.menuName) // 未匹配的菜单默认使用id作为路由(可根据实际需求调整) return routeMap[menu.menuName] || '/noPermission' diff --git a/src/views/channelManage/cart/cart.vue b/src/views/channelManage/cart/cart.vue index e69de29..9695aed 100644 --- a/src/views/channelManage/cart/cart.vue +++ b/src/views/channelManage/cart/cart.vue @@ -0,0 +1,676 @@ + + + + + \ No newline at end of file diff --git a/src/views/channelManage/fans/fans.vue b/src/views/channelManage/fans/fans.vue index e69de29..b2c8733 100644 --- a/src/views/channelManage/fans/fans.vue +++ b/src/views/channelManage/fans/fans.vue @@ -0,0 +1,657 @@ + + + + + diff --git a/src/views/channelManage/reward/reward.vue b/src/views/channelManage/reward/reward.vue index e69de29..aff62ee 100644 --- a/src/views/channelManage/reward/reward.vue +++ b/src/views/channelManage/reward/reward.vue @@ -0,0 +1,700 @@ + + + + +