From 37cd2134a4dc309633d2abcf42470ab3085e047d Mon Sep 17 00:00:00 2001 From: BabyBoy <2019108827@qq.com> Date: Mon, 9 Jun 2025 16:09:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E7=AE=A1=E7=90=86=EF=BC=8C?= =?UTF-8?q?=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/contentCenter/types.ts | 4 + src/api/ums/member.js | 6 +- src/router/index.ts | 58 ++- src/views/contentManage/video/index.vue | 10 +- .../contentManage/videodetails/index.vue | 464 ++++++++++++++++++ src/views/ums/member/index.vue | 13 +- 6 files changed, 522 insertions(+), 33 deletions(-) create mode 100644 src/views/contentManage/videodetails/index.vue diff --git a/src/api/contentCenter/types.ts b/src/api/contentCenter/types.ts index 638f3ce..3b1c699 100644 --- a/src/api/contentCenter/types.ts +++ b/src/api/contentCenter/types.ts @@ -100,4 +100,8 @@ export interface CategoryQuery { * 每页页数 */; size?: number; + /** + * 查看详情id + */ + memberId?: string; } diff --git a/src/api/ums/member.js b/src/api/ums/member.js index 7f46e44..111eacf 100644 --- a/src/api/ums/member.js +++ b/src/api/ums/member.js @@ -78,14 +78,14 @@ export function decryptedPhone(data) { } // 查询会员统计数据 -export function viewStatistics(memberId){ +export function viewStatistics(memberId) { return request({ url: `/ums/member/view/statistics/` + memberId, method: 'get' }) } -export function getMiniWechatImg(params){ +export function getMiniWechatImg(params) { return request({ url: `/ums/member/wechat/code`, method: 'get', @@ -93,7 +93,7 @@ export function getMiniWechatImg(params){ }) } -export function judgeQrCode(params){ +export function judgeQrCode(params) { return request({ url: `/no-auth/verified/code`, method: 'get', diff --git a/src/router/index.ts b/src/router/index.ts index 99a3742..3426edc 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -4,7 +4,6 @@ import Layout from '@/layout/index.vue'; /* Layout */ - /** * Note: 路由配置项 * @@ -113,28 +112,28 @@ export const constantRoutes: RouteRecordRaw[] = [ component: () => import('@/views/contentManage/video/index.vue'), name: 'Video', meta: { title: '视频管理', icon: '', noCache: true } - }, - // 评论和点赞 - { - path: 'comments', - component: () => import('@/views/contentManage/video/index.vue'), - name: 'Comments', - meta: { title: '评论与点赞', icon: '', noCache: true } - }, - // 粉丝与关注 - { - path: 'fans', - component: () => import('@/views/contentManage/video/index.vue'), - name: 'Fans', - meta: { title: '粉丝与关注', icon: '', noCache: true } - }, - // 云点播 - { - path: 'cloud', - component: () => import('@/views/contentManage/video/index.vue'), - name: 'Cloud', - meta: { title: '云点播', icon: '', noCache: true } } + // 评论和点赞 + // { + // path: 'comments', + // component: () => import('@/views/contentManage/video/index.vue'), + // name: 'Comments', + // meta: { title: '评论与点赞', icon: '', noCache: true } + // }, + // // 粉丝与关注 + // { + // path: 'fans', + // component: () => import('@/views/contentManage/video/index.vue'), + // name: 'Fans', + // meta: { title: '粉丝与关注', icon: '', noCache: true } + // }, + // // 云点播 + // { + // path: 'cloud', + // component: () => import('@/views/contentManage/video/index.vue'), + // name: 'Cloud', + // meta: { title: '云点播', icon: '', noCache: true } + // } ] } ]; @@ -155,6 +154,7 @@ export const dynamicRoutes: RouteRecordRaw[] = [ } ] }, + { path: '/system/role-auth', component: Layout, @@ -253,6 +253,20 @@ export const dynamicRoutes: RouteRecordRaw[] = [ meta: { title: '售后订单详情' } } ] + }, + { + path: '/contentManage', + component: Layout, + // hidden: true, + // permissions: ['system:user:edit'], + children: [ + { + path: 'videodetails', + component: () => import('@/views/contentManage/videodetails/index.vue'), + name: 'Videodetails', + meta: { title: '视频详情', icon: 'dashboard', affix: true } + } + ] } ]; diff --git a/src/views/contentManage/video/index.vue b/src/views/contentManage/video/index.vue index 528f55b..782ea5d 100644 --- a/src/views/contentManage/video/index.vue +++ b/src/views/contentManage/video/index.vue @@ -44,9 +44,9 @@ - - - + + +