From 07f5e49d4031f74c296fe01bb79e913c864979e5 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期一, 07 四月 2025 17:29:52 +0800
Subject: [PATCH] 数字人

---
 src/components/chat/components/ChatContainer.vue |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/src/components/chat/components/ChatContainer.vue b/src/components/chat/components/ChatContainer.vue
index f04733c..6648965 100644
--- a/src/components/chat/components/ChatContainer.vue
+++ b/src/components/chat/components/ChatContainer.vue
@@ -22,6 +22,21 @@
 					<i class="ywifont ywicon-xiangxiajiantou !text-[20px]" />
 				</div>
 			</div>
+			<div v-show="digitalHumanIsShow" class="absolute right-28 bottom-[250px] w-[400px] h-[540px]">
+				<span class="ywifont ywicon-guanbi text-[20px] cursor-pointer absolute top-2 right-2 z-[1]" @click="closeDigitalHuman"></span>
+				<div class="duix-container h-full w-full"></div>
+			</div>
+
+			<div v-if="!digitalHumanIsShow" class="absolute right-28 bottom-[250px]">
+				<el-tooltip content="鏁板瓧浜�" placement="top">
+					<div
+						class="flex items-center justify-center size-[38px] cursor-pointer hover:text-[#0284ff] border rounded-full hover:bg-[#f6f7f9] shadow bg-white"
+						@click="openDigitalHuman"
+					>
+						<i class="ywifont ywicon-shuziren !text-[20px]" />
+					</div>
+				</el-tooltip>
+			</div>
 
 			<!-- 杈撳叆鍖哄煙 -->
 			<div class="w-full px-6 pb-6 bg-[rgb(247,248,250)] flex justify-center z-[1] flex-0" v-if="!isSharePage">
@@ -50,6 +65,7 @@
 import { useChatWidth } from '../hooks/useChatWidth';
 import { useScroll } from '../hooks/useScroll';
 import emitter from '/@/utils/mitt';
+import { useDigitalHuman } from './playBar/hook/useDigitalHuman';
 
 const props = defineProps<{
 	loading?: boolean;
@@ -58,7 +74,9 @@
 }>();
 
 const chatListDom = ref<HTMLDivElement>();
-
+const { openDigitalHuman, isHumanTalking, digitalHumanIsShow, closeDigitalHuman } = useDigitalHuman({
+	container: '.duix-container',
+});
 const { scrollToBottom, isBottom } = useScroll({
 	chatListDom,
 });

--
Gitblit v1.9.3