Browse Source

Merge branch 'zhangyong/feature-20251028115958-深度探索' into milestone-20251031-简版功能开发

lihuilin/feature-20251024095243-我的
ZhangYong 3 weeks ago
parent
commit
409a9fabc9
  1. 9
      api/deepExploration/deepExploration.js
  2. 6
      components/deepExploration_header.vue
  3. 21
      pages/deepExploration/MainForceActions.vue
  4. 6
      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({

6
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";
@ -140,8 +141,9 @@ const openHistoryDrawer = async () => {
};
const clearAllHistory = () => {
searchHistory.value = [];
historyList.value = [];
RecordListDeleteApi({
})
// uni.setStorageSync("search_history", []);
};

21
pages/deepExploration/MainForceActions.vue

@ -415,9 +415,13 @@
stockPrice.value = result.data.StockInformation.Price || '435.900'
if (result.data.chartData) {
const rawData = JSON.parse(JSON.stringify(result.data.chartData));
if (rawData.categories.length > 1) { //
rawData.categories[rawData.categories.length - 1] = ''; //
console.log('删了;');
}
chartData.value = {
...JSON.parse(JSON.stringify(result.data.chartData))
...rawData
}
chartKey.value++;
console.log('chartData', chartData.value);
@ -430,24 +434,25 @@
rotate: false,
rotateLock: false,
color: ["#1890FF", "#91CB74", "#FAC858", "#EE6666", "#73C0DE", "#3CA272", "#FC8452", "#9A60B4", "#ea7ccc"],
padding: [15, 15, 0, 15],
padding: [15, 30, 0, 15],
dataLabel: false,
enableScroll: true,
enableMarkLine: false,
legend: {},
xAxis: {
labelCount: 4,
itemCount: 30,
itemCount: 20,
disableGrid: true,
gridColor: "#CCCCCC",
gridType: "solid",
dashLength: 4,
scrollShow: false,
rotate: 45,
scrollAlign: "left",
scrollColor: "#A6A6A6",
scrollBackgroundColor: "#EFEBEF",
labelColor: "#8C8C8C",
fontSize: 9
fontSize: 9,
},
yAxis: {
labelColor: "#8C8C8C",
@ -565,6 +570,9 @@
htmlContent.value = marked.parse(markdownContent.value);
//k线
if (historyData.value.stockData.chartData.categories.length > 1) { //
historyData.value.stockData.chartData.categories[historyData.value.stockData.chartData.categories.length - 1] = ''; //
}
chartData.value = {
...JSON.parse(JSON.stringify(historyData.value.stockData.chartData))
}
@ -763,6 +771,7 @@
.charts-box {
width: 100%;
height: 100%;
overflow: visible;
}
}
}
@ -792,7 +801,7 @@
}
.txtContent {
min-height: 200rpx;
min-height: 300rpx;
padding: 20rpx 30rpx;
margin-bottom: 100rpx;

6
pages/deepExploration/deepExploration.vue

@ -7,7 +7,7 @@
<deepExploration_header></deepExploration_header>
<view class="search">
<input v-model="stockName" class="searchInput" type="text" placeholder="请输入股票名称、股票代码"
placeholder-style="color: #A6A6A6; font-size: 22rpx;" />
placeholder-style="color: #A6A6A6; font-size: 28rpx; " />
<image @click="searchStock" class="seachIcon" src="/static/deepExploration-images/search.png"
mode="aspectFill"></image>
</view>
@ -307,6 +307,7 @@
.searchInput {
color: #111;
width: 100%;
}
}
@ -367,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