From 60762f91758bd9f054fc8a34dfec43eb62ace7ad Mon Sep 17 00:00:00 2001 From: haoyuntao Date: Tue, 7 May 2024 14:40:01 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chat-scroll-view/chat-scroll-view.vue | 29 +++- src/packages/pages/ai_talk/ai_talk.vue | 25 ++-- .../pages/ai_talk/components/session-item.vue | 67 +++++++-- .../ai_talk/components/session-popup.vue | 63 ++++++--- src/pages/ai_creation/ai_creation.vue | 127 ++++++++++++++++++ src/pages/user/user.vue | 2 +- src/static/images/user/toux.png | Bin 0 -> 15827 bytes src/styles/public.scss | 16 +-- 8 files changed, 276 insertions(+), 53 deletions(-) create mode 100644 src/pages/ai_creation/ai_creation.vue create mode 100644 src/static/images/user/toux.png diff --git a/src/components/chat-scroll-view/chat-scroll-view.vue b/src/components/chat-scroll-view/chat-scroll-view.vue index 5a1a006..b30f0cf 100644 --- a/src/components/chat-scroll-view/chat-scroll-view.vue +++ b/src/components/chat-scroll-view/chat-scroll-view.vue @@ -22,10 +22,10 @@ @@ -113,9 +114,10 @@ import { useSessionList } from './components/useSessionList' import agreement from '@/components/agreement/agreement.vue' const { getSessionLists, sessionActive } = useSessionList() -const showPopup = ref(false) +const showPopup = ref(true) const showExamplePopup = ref(false) const problem = ref([]) +const popup=ref(null) // 聊天记录列表 const chatList = ref([]) const chatRef = shallowRef() @@ -134,7 +136,10 @@ const modelKey = ref('') const getProblemExample = async () => { problem.value = await getSamplesLists() } - +const handlerback=()=>{ + console.log(popup.value,'=====popup.value') + popup.value.showPopup() +} const getDecorateFunc = async () => { try { const { data } = await getDecorate({ id: 8 }) diff --git a/src/packages/pages/ai_talk/components/session-item.vue b/src/packages/pages/ai_talk/components/session-item.vue index b2c5b46..36b4941 100644 --- a/src/packages/pages/ai_talk/components/session-item.vue +++ b/src/packages/pages/ai_talk/components/session-item.vue @@ -1,15 +1,18 @@