Browse Source

删除全部历史记录,样式调整

lihuilin/feature-20251024095243-我的
ZhangYong 3 weeks ago
parent
commit
b325cd11fc
  1. 9
      api/deepExploration/deepExploration.js
  2. 4
      components/deepExploration_header.vue
  3. 3
      pages/deepExploration/deepExploration.vue

9
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({

4
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", []);
};

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

Loading…
Cancel
Save