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; } }