diff --git a/yudao-admin-vue3/src/api/member/user/index.ts b/yudao-admin-vue3/src/api/member/user/index.ts index e38206a..b8b5304 100644 --- a/yudao-admin-vue3/src/api/member/user/index.ts +++ b/yudao-admin-vue3/src/api/member/user/index.ts @@ -20,6 +20,7 @@ export interface UserVO { point: number | undefined | null totalPoint: number | undefined | null experience: number | null | undefined + groupName: string } // 查询会员用户列表 @@ -51,3 +52,8 @@ export const updateUserPoint = async (data: any) => { export const updateUserBalance = async (data: any) => { return await request.put({ url: `/member/user/update-balance`, data }) } + +// 客服查询用户详情 +export const getUserInfo = async (id: number) => { + return await request.get({ url: `/member/user/getUserInfo?id=` + id }) +} diff --git a/yudao-admin-vue3/src/layout/Layout.vue b/yudao-admin-vue3/src/layout/Layout.vue index af51970..13a82e7 100644 --- a/yudao-admin-vue3/src/layout/Layout.vue +++ b/yudao-admin-vue3/src/layout/Layout.vue @@ -54,7 +54,7 @@ export default defineComponent({ onClick={handleClickOutside} > ) : undefined} - + {renderLayout()} diff --git a/yudao-admin-vue3/src/layout/components/useRenderLayout.tsx b/yudao-admin-vue3/src/layout/components/useRenderLayout.tsx index 1110cd8..11184f2 100644 --- a/yudao-admin-vue3/src/layout/components/useRenderLayout.tsx +++ b/yudao-admin-vue3/src/layout/components/useRenderLayout.tsx @@ -35,88 +35,120 @@ const mobile = computed(() => appStore.getMobile) // 固定菜单 const fixedMenu = computed(() => appStore.getFixedMenu) +import { useRoute } from 'vue-router' + export const useRenderLayout = () => { - const renderClassic = () => { - return ( - <> -
- {logo.value ? ( - - ) : undefined} - -
-
- -
- - - {tagsView.value ? ( - - ) : undefined} -
- - -
-
- - ) - } + const route = useRoute() + let renderClassic = null; + if(route.path == "/kefu/kefu"){ + renderClassic = () => { + return ( + <> + +
+ + + + + +
+ + ) + } + }else { + renderClassic = () => { + return ( + <> +
+ {logo.value ? ( + + ) : undefined} + +
+
+ +
+ + + {tagsView.value ? ( + + ) : undefined} +
+ + +
+
+ + ) + } + } const renderTopLeft = () => { return ( diff --git a/yudao-admin-vue3/src/views/mall/promotion/kefu/components/KeFuMessageList.vue b/yudao-admin-vue3/src/views/mall/promotion/kefu/components/KeFuMessageList.vue index 399f02e..accb631 100644 --- a/yudao-admin-vue3/src/views/mall/promotion/kefu/components/KeFuMessageList.vue +++ b/yudao-admin-vue3/src/views/mall/promotion/kefu/components/KeFuMessageList.vue @@ -1,11 +1,14 @@