From b325cd11fceff1137d89c02160b935145279a6df Mon Sep 17 00:00:00 2001 From: ZhangYong Date: Thu, 30 Oct 2025 18:47:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=85=A8=E9=83=A8=E5=8E=86?= =?UTF-8?q?=E5=8F=B2=E8=AE=B0=E5=BD=95=EF=BC=8C=E6=A0=B7=E5=BC=8F=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/deepExploration/deepExploration.js | 9 +++++++++ components/deepExploration_header.vue | 4 +++- pages/deepExploration/deepExploration.vue | 3 ++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/api/deepExploration/deepExploration.js b/api/deepExploration/deepExploration.js index e73c35c..616d832 100644 --- a/api/deepExploration/deepExploration.js +++ b/api/deepExploration/deepExploration.js @@ -101,6 +101,15 @@ export const RecordListApi = (data) => { data:data }) } + +//历史记录删除 +export const RecordListDeleteApi = (data) => { + return http({ + method: 'POST', + url: '/api/coze/deleteRecord', + data:data + }) +} // 选股策略 export const stocSelectApi = (data) => { return http({ diff --git a/components/deepExploration_header.vue b/components/deepExploration_header.vue index 25d1dbe..db2188d 100644 --- a/components/deepExploration_header.vue +++ b/components/deepExploration_header.vue @@ -91,6 +91,7 @@ import { RecordListApi, RecordInfoApi, + RecordListDeleteApi } from "../api/deepExploration/deepExploration"; import { ref, onMounted, computed } from "vue"; import { useDeepExplorationStore } from "../stores/modules/deepExploration"; @@ -141,7 +142,8 @@ const openHistoryDrawer = async () => { const clearAllHistory = () => { historyList.value = []; - + RecordListDeleteApi({ + }) // uni.setStorageSync("search_history", []); }; diff --git a/pages/deepExploration/deepExploration.vue b/pages/deepExploration/deepExploration.vue index d5bd9fa..f523971 100644 --- a/pages/deepExploration/deepExploration.vue +++ b/pages/deepExploration/deepExploration.vue @@ -368,11 +368,12 @@ padding: 6rpx 20rpx; color: #ffffff; font-family: "PingFang SC"; - font-size: 10rpx; + font-size: 24rpx; font-style: normal; font-weight: 100; line-height: 29rpx; height: 40rpx; + width: 140rpx; } }