From cc39200908ca5586f0d5d863fe24a919340024f7 Mon Sep 17 00:00:00 2001 From: dongqian <3475123872@qq.com> Date: Thu, 30 Oct 2025 16:37:56 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E8=AF=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/deepMate/deepMate.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/deepMate/deepMate.vue b/pages/deepMate/deepMate.vue index 5640183..273b96a 100644 --- a/pages/deepMate/deepMate.vue +++ b/pages/deepMate/deepMate.vue @@ -639,7 +639,7 @@ const simulateBotResponse = async (userMessage) => { // 更新机器人的消息内容 const errorMessage = res.message || "请求失败,请稍后重试"; - let responseText = `我已经收到您的消息: "${userMessage}"。错误信息: "${errorMessage}"`; + let responseText = `我已经收到您的消息: "${userMessage}"。"${errorMessage}"`; // 开始打字机效果显示错误信息 let index = 0; From c07ac2b71352478e892bd1e246c2c44879125799 Mon Sep 17 00:00:00 2001 From: wangyi <3432649580@qq.com> Date: Thu, 30 Oct 2025 16:53:29 +0800 Subject: [PATCH 2/8] =?UTF-8?q?=E6=89=8B=E6=9C=BA=E5=8F=B7=E5=A2=9E?= =?UTF-8?q?=E6=B7=BB-?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/start/Registration/Registration.vue | 4 ++-- pages/start/login/login.vue | 4 ++-- pages/start/recoverPassword/recoverPassword.vue | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/start/Registration/Registration.vue b/pages/start/Registration/Registration.vue index b4d205a..994a2c3 100644 --- a/pages/start/Registration/Registration.vue +++ b/pages/start/Registration/Registration.vue @@ -326,7 +326,7 @@ function changeAccount() { } if (switchType.value === "Phone") { - account.value = `${country.value}${phone.value}`; + account.value = `${country.value}-${phone.value}`; } if (switchType.value === "Email") { account.value = email.value; @@ -511,7 +511,7 @@ async function sendCode() { if (switchType.value === "Phone") { // 发送验证码 - const phoneAll = `${country.value}${phone.value}`; + const phoneAll = `${country.value}-${phone.value}`; const res = await SendPhoneCodeApi({ phone: phoneAll, }); diff --git a/pages/start/login/login.vue b/pages/start/login/login.vue index 5cd0fc6..dd41da7 100644 --- a/pages/start/login/login.vue +++ b/pages/start/login/login.vue @@ -536,7 +536,7 @@ function changeAccount() { } if (switchType.value === "Phone") { - account.value = `${country.value}${phone.value}`; + account.value = `${country.value}-${phone.value}`; } if (switchType.value === "Email") { account.value = email.value; @@ -652,7 +652,7 @@ async function sendCode() { if (switchType.value === "Phone") { // 发送验证码 - const phoneAll = `${country.value}${phone.value}`; + const phoneAll = `${country.value}-${phone.value}`; const res = await SendPhoneCodeApi({ phone: phoneAll, }); diff --git a/pages/start/recoverPassword/recoverPassword.vue b/pages/start/recoverPassword/recoverPassword.vue index 9644a18..4c1915e 100644 --- a/pages/start/recoverPassword/recoverPassword.vue +++ b/pages/start/recoverPassword/recoverPassword.vue @@ -451,7 +451,7 @@ function changeAccount() { } if (switchType.value === "Phone") { - account.value = `${country.value}${phone.value}`; + account.value = `${country.value}-${phone.value}`; } if (switchType.value === "Email") { account.value = email.value; @@ -570,7 +570,7 @@ function sendCode() { } } if (switchType.value === "Phone") { - const phoneAll = `${country.value}${phone.value}`; + const phoneAll = `${country.value}-${phone.value}`; const res = SendPhoneCodeApi({ phone: phoneAll, From cfa23e2b9b65d4ec3054e11a27dd4100a8cb821c Mon Sep 17 00:00:00 2001 From: wangyi <3432649580@qq.com> Date: Thu, 30 Oct 2025 17:02:52 +0800 Subject: [PATCH 3/8] =?UTF-8?q?=E4=BC=98=E5=8C=96deepmate=E8=BE=93?= =?UTF-8?q?=E5=87=BA=E6=97=B6=E5=B8=A6html=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/deepMate/deepMate.vue | 77 +++++++++++++++++++++++++++++++++++---------- 1 file changed, 61 insertions(+), 16 deletions(-) diff --git a/pages/deepMate/deepMate.vue b/pages/deepMate/deepMate.vue index d887782..1a4ddbd 100644 --- a/pages/deepMate/deepMate.vue +++ b/pages/deepMate/deepMate.vue @@ -677,26 +677,48 @@ const simulateBotResponse = async (userMessage) => { const typeWriter = () => { if (index < responseText.length) { - const ch = responseText.charAt(index); + let ch = responseText.charAt(index); + let charsToAdd = ch; + let newIndex = index + 1; + + // 检查是否遇到HTML标签开始 + if (ch === '<') { + // 寻找标签结束位置 + let tagEndIndex = responseText.indexOf('>', index); + if (tagEndIndex !== -1) { + // 完整获取标签内容 + charsToAdd = responseText.substring(index, tagEndIndex + 1); + newIndex = tagEndIndex + 1; + } + } + const current = messages.value[botIndex]; // 通过数组替换触发渲染,避免部分平台对子项属性变更不响应 messages.value.splice(botIndex, 1, { ...current, - content: current.content + ch, + content: current.content + charsToAdd, isTyping: true, }); - index++; + index = newIndex; scrollToBottom(); // 字符间延迟,模拟打字效果 const baseDelay = 5; // 普通字符基础延迟(毫秒) const slowPunct = /[。!?!?;;]/; // 句号、感叹号、分号等较长停顿 const midPunct = /[,、,::]/; // 逗号、顿号、冒号等中等停顿 - const delay = slowPunct.test(ch) - ? 220 - : midPunct.test(ch) - ? 120 - : baseDelay; + + // 如果是标签,使用更短的延迟或者立即显示 + let delay; + if (charsToAdd.startsWith('<')) { + delay = 1; // 标签快速显示 + } else { + delay = slowPunct.test(ch) + ? 220 + : midPunct.test(ch) + ? 120 + : baseDelay; + } + setTimeout(typeWriter, delay); } else { // 打字完成,更新状态 @@ -786,22 +808,33 @@ const simulateBotResponse = async (userMessage) => { const typeWriter = () => { if (index < responseText.length) { - const ch = responseText.charAt(index); + let ch = responseText.charAt(index); + let charsToAdd = ch; + let newIndex = index + 1; + let delay = baseDelay; + + // 检查是否遇到HTML标签开始 + if (ch === '<') { + // 寻找标签结束位置 + let tagEndIndex = responseText.indexOf('>', index); + if (tagEndIndex !== -1) { + // 完整获取标签内容 + charsToAdd = responseText.substring(index, tagEndIndex + 1); + newIndex = tagEndIndex + 1; + delay = 1; // 标签快速显示 + } + } + const current = messages.value[botIndex]; // 通过数组替换触发渲染,避免部分平台对子项属性变更不响应 messages.value.splice(botIndex, 1, { ...current, - content: current.content + ch, + content: current.content + charsToAdd, isTyping: true, }); - index++; + index = newIndex; scrollToBottom(); - const delay = slowPunct.test(ch) - ? 220 - : midPunct.test(ch) - ? 120 - : baseDelay; setTimeout(typeWriter, delay); } else { const current = messages.value[botIndex]; @@ -1769,9 +1802,21 @@ async function itemClick(item) { } .thinking-content { + transition: transform 1s ease; /* 添加过渡效果 */ + transform-origin: top center; /* 设置变换原点 */ padding: 20rpx 30rpx; } +@keyframes transform { + from { + transform: scaleY(0); + } + to { + transform: scaleY(1); + } + +} + .thinking-item { display: flex; align-items: center; From 2ac3f788a511a3f5c17f551d0282237ddba8bd4d Mon Sep 17 00:00:00 2001 From: dongqian <3475123872@qq.com> Date: Thu, 30 Oct 2025 17:13:52 +0800 Subject: [PATCH 4/8] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A9=BA=E7=99=BD?= =?UTF-8?q?=E9=A1=B5=E8=BF=94=E5=9B=9E=E9=A1=B5=E9=9D=A2=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/blank/institutionalTrendsBriefing.vue | 4 +--- pages/blank/notice.vue | 5 ++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/pages/blank/institutionalTrendsBriefing.vue b/pages/blank/institutionalTrendsBriefing.vue index ca1133c..13cae23 100644 --- a/pages/blank/institutionalTrendsBriefing.vue +++ b/pages/blank/institutionalTrendsBriefing.vue @@ -24,9 +24,7 @@ diff --git a/pages/blank/notice.vue b/pages/blank/notice.vue index f64f90d..b273154 100644 --- a/pages/blank/notice.vue +++ b/pages/blank/notice.vue @@ -24,9 +24,8 @@ From 9d9fb407ede0c3bc8c7564aeaf6d301a2afe6a0c Mon Sep 17 00:00:00 2001 From: lihui Date: Thu, 30 Oct 2025 17:14:11 +0800 Subject: [PATCH 5/8] =?UTF-8?q?fix=EF=BC=9A=E6=9C=AA=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E7=82=B9=E5=87=BB=E5=88=86=E4=BA=AB=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E6=B2=A1token?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/member.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pages/home/member.vue b/pages/home/member.vue index f1ffd25..988b972 100644 --- a/pages/home/member.vue +++ b/pages/home/member.vue @@ -1,5 +1,5 @@