diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..8fa72ce --- /dev/null +++ b/.env.development @@ -0,0 +1,20 @@ +VITE_API_BASE='https://hwjb.homilychart.com/dev/admin' +# 测试环境 +# VITE_API_BASE='http://54.255.212.181:10704/' +# 正式环境 +# VITE_API_BASE='http://54.255.212.181:10705/' +VITE_UPLOAD_URL=http://39.101.133.168:8828/hljw/api/aws/upload +# VITE_API_BASE='http://192.168.9.28:8081/' +# sunjiabei +# VITE_API_BASE='http://192.168.9.28:8081/' +# VITE_API_BASE='http://192.168.5.92:8081/' +# 张勇 +# VITE_API_BASE='http://192.168.3.83:8081/' +# 本地 +# VITE_API_BASE='http://localhost:8081/' +# 孙加倍 +# VITE_API_BASE='http://192.168.40.12:8081' + +# Lijianlin +# VITE_API_BASE='http://192.168.9.41:8081/' +# VITE_API_BASE='http://localhost: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 @@ + + + + +