From ba655834b9bfd6e660f081cf11096c60760c1f83 Mon Sep 17 00:00:00 2001 From: zoujing Date: Thu, 26 Mar 2026 15:13:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=94=9F=E6=88=90=E7=85=A7=E7=89=87?= =?UTF-8?q?=E7=9A=84=E7=BB=84=E4=BB=B6=E6=90=AD=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/model/ChatModel.js | 4 +- .../components/chat/ChatMainList/index.vue | 9 ++-- .../module/AnswerComponent/index.vue | 41 +++++++++++++----- .../images/g_image.png | Bin 0 -> 544723 bytes .../images/g_title.png | Bin 0 -> 6057 bytes .../module/GeneratorPhotoComponent/index.vue | 34 +++++++++++++++ .../GeneratorPhotoComponent/styles/index.scss | 23 ++++++++++ src/pages/long-answer/index.vue | 2 +- src/static/scss/rounded.scss | 4 ++ 9 files changed, 102 insertions(+), 15 deletions(-) create mode 100644 src/pages/index/components/module/GeneratorPhotoComponent/images/g_image.png create mode 100644 src/pages/index/components/module/GeneratorPhotoComponent/images/g_title.png create mode 100644 src/pages/index/components/module/GeneratorPhotoComponent/index.vue create mode 100644 src/pages/index/components/module/GeneratorPhotoComponent/styles/index.scss diff --git a/src/model/ChatModel.js b/src/model/ChatModel.js index acb981f..e43eece 100644 --- a/src/model/ChatModel.js +++ b/src/model/ChatModel.js @@ -24,9 +24,11 @@ export const CompName = { // 调查问卷卡片 callSurveyQuestionnaire: "callSurveyQuestionnaire", // 打开地图卡片 - openMapCard: "openMapCard", + mapCard: "mapCard", // 回答卡片 longTextCard: "longTextCard", + // 生成合成图片 + generatorPhotoCard: "generatorPhotoCard", }; /// 发送的指令类型 diff --git a/src/pages/index/components/chat/ChatMainList/index.vue b/src/pages/index/components/chat/ChatMainList/index.vue index 595c64f..f995910 100644 --- a/src/pages/index/components/chat/ChatMainList/index.vue +++ b/src/pages/index/components/chat/ChatMainList/index.vue @@ -19,8 +19,7 @@ + + \ No newline at end of file diff --git a/src/pages/index/components/module/GeneratorPhotoComponent/styles/index.scss b/src/pages/index/components/module/GeneratorPhotoComponent/styles/index.scss new file mode 100644 index 0000000..5d051c7 --- /dev/null +++ b/src/pages/index/components/module/GeneratorPhotoComponent/styles/index.scss @@ -0,0 +1,23 @@ +.container { + background: rgba(255, 255, 255, 0.2); + box-shadow: 0px 9px 34px 0px rgba(27, 9, 91, 0.07); +} + +.content { + background: linear-gradient(180deg, $theme-color-100 0%, $theme-color-500 100%); + border-radius: 24px 24px 24px 24px; + border: 1px solid #FFFFFF; +} + +.g_title { + width: 197px; + height: 42px; +} + +.btn-bg { + background: rgba(255, 255, 255, 0.32); +} + +.btn-bg-sub { + box-shadow: inset 0px 0px 41px 0px $theme-color-50, inset 0px 0px 15px 0px $theme-color-100; +} \ No newline at end of file diff --git a/src/pages/long-answer/index.vue b/src/pages/long-answer/index.vue index 16c7f7a..10b10e9 100644 --- a/src/pages/long-answer/index.vue +++ b/src/pages/long-answer/index.vue @@ -12,7 +12,7 @@ const props = defineProps({ }); onLoad(({ message = "" }) => { - props.answerText = message; + props.answerText = decodeURIComponent(message); }); \ No newline at end of file diff --git a/src/static/scss/rounded.scss b/src/static/scss/rounded.scss index aed980d..a1bcd89 100644 --- a/src/static/scss/rounded.scss +++ b/src/static/scss/rounded.scss @@ -31,6 +31,10 @@ border-radius: 20px; } +.rounded-24 { + border-radius: 24px; +} + .rounded-50 { border-radius: 50px; }