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 @@
-
+
@@ -129,6 +129,14 @@ const goToAbout = () => {
}
const goToShare = () => {
+ console.log('用户信息==========',userInfoRes.value.data)
+ if (!userInfoRes.value.data) {
+ uni.showToast({
+ title: '请先登录',
+ icon: 'none'
+ })
+ return
+ }
uni.navigateTo({
url: '../setting/share'
})
From f0dbdcbc9ee4c81a03b6ec61efea8a227d0adaa8 Mon Sep 17 00:00:00 2001
From: dongqian <3475123872@qq.com>
Date: Thu, 30 Oct 2025 17:23:30 +0800
Subject: [PATCH 6/8] =?UTF-8?q?=E4=BF=AE=E6=94=B9deepmate=E5=9B=BE?=
=?UTF-8?q?=E6=A0=87=E4=BD=8D=E7=BD=AE?=
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 273b96a..1e9c5e7 100644
--- a/pages/deepMate/deepMate.vue
+++ b/pages/deepMate/deepMate.vue
@@ -1093,7 +1093,7 @@ async function itemClick(item) {
.welcome-section {
/* 灰色卡片(recommend-card)之后展示背景图 */
- margin-top: 10rpx;
+ margin-top: 2rem;
display: flex;
align-items: center;
justify-content: center;
From 67c58355f58d37179b25fc362244de7c9120b831 Mon Sep 17 00:00:00 2001
From: dongqian <3475123872@qq.com>
Date: Thu, 30 Oct 2025 17:32:23 +0800
Subject: [PATCH 7/8] =?UTF-8?q?=E4=BF=AE=E6=94=B9deepmate=E5=88=A0?=
=?UTF-8?q?=E9=99=A4=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/deepMate/deepMate.vue | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
diff --git a/pages/deepMate/deepMate.vue b/pages/deepMate/deepMate.vue
index 1e9c5e7..d3fab77 100644
--- a/pages/deepMate/deepMate.vue
+++ b/pages/deepMate/deepMate.vue
@@ -237,7 +237,7 @@
删除全部
@@ -571,8 +571,21 @@ const groupedHistory = computed(() => {
});
const clearAllHistory = () => {
- searchHistory.value = [];
- // uni.setStorageSync("search_history", []);
+ uni.showModal({
+ title: '确认删除',
+ content: '确定要删除全部历史记录吗?该操作不可撤销。',
+ confirmText: '删除',
+ cancelText: '取消',
+ success: (res) => {
+ if (res.confirm) {
+ // 当前历史面板依赖 historyList,而非 searchHistory
+ historyList.value = [];
+ // 同步清空本地旧缓存(如果曾使用)
+ // uni.setStorageSync("search_history", []);
+ uni.showToast({ title: '历史已清空', icon: 'none' });
+ }
+ }
+ })
};
// 发送消息
From f4bc5c06042d0dba148bf825ad3b02881f42cd5f Mon Sep 17 00:00:00 2001
From: dongqian <3475123872@qq.com>
Date: Thu, 30 Oct 2025 17:40:45 +0800
Subject: [PATCH 8/8] =?UTF-8?q?=E5=BD=93=E5=8F=91=E9=80=81=E6=B6=88?=
=?UTF-8?q?=E6=81=AF=E6=97=B6=E5=9B=9E=E5=88=B0=E9=A1=B6=E9=83=A8=E6=8C=89?=
=?UTF-8?q?=E9=92=AE=E5=87=BA=E7=8E=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/deepMate/deepMate.vue | 1 +
1 file changed, 1 insertion(+)
diff --git a/pages/deepMate/deepMate.vue b/pages/deepMate/deepMate.vue
index d3fab77..3de84b6 100644
--- a/pages/deepMate/deepMate.vue
+++ b/pages/deepMate/deepMate.vue
@@ -220,6 +220,7 @@
@touchmove="onBackTopTouchMove"
@touchend="onBackTopTouchEnd"
@click="onBackTopClick"
+ v-if="messages.length > 0"
>