diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json index 1c75694..728c4a6 100644 --- a/.hbuilderx/launch.json +++ b/.hbuilderx/launch.json @@ -4,7 +4,7 @@ { "customPlaygroundType" : "local", "packageName" : "io.dcloud.HBuilder", - "playground" : "standard", + "playground" : "custom", "type" : "uni-app:app-android" } ] diff --git a/api/tcpConnection.js b/api/tcpConnection.js index 62fb6bb..10f6700 100644 --- a/api/tcpConnection.js +++ b/api/tcpConnection.js @@ -6,7 +6,7 @@ */ // 引用TCP插件 -// const TCPSocket = uni.requireNativePlugin('Aimer-TCPPlugin'); +const TCPSocket = uni.requireNativePlugin('Aimer-TCPPlugin'); // const TCPSocket = uni.requireNativePlugin("Aimer-TCPPlugin"); // TCP连接配置 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 @@ diff --git a/pages/deepMate/deepMate.vue b/pages/deepMate/deepMate.vue index 1a4ddbd..a894035 100644 --- a/pages/deepMate/deepMate.vue +++ b/pages/deepMate/deepMate.vue @@ -232,6 +232,7 @@ @touchmove="onBackTopTouchMove" @touchend="onBackTopTouchEnd" @click="onBackTopClick" + v-if="messages.length > 0" > @@ -249,7 +250,7 @@ 删除全部 @@ -595,8 +596,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' }); + } + } + }) }; // 发送消息 @@ -669,7 +683,7 @@ const simulateBotResponse = async (userMessage) => { // 更新机器人的消息内容 const errorMessage = res.message || "请求失败,请稍后重试"; - let responseText = `我已经收到您的消息: "${userMessage}"。错误信息: "${errorMessage}"`; + let responseText = `我已经收到您的消息: "${userMessage}"。"${errorMessage}"`; // 开始打字机效果显示错误信息 let index = 0; @@ -1190,7 +1204,7 @@ async function itemClick(item) { .welcome-section { /* 灰色卡片(recommend-card)之后展示背景图 */ - margin-top: 10rpx; + margin-top: 2rem; display: flex; align-items: center; justify-content: center; 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 @@