diff --git a/components/deepExploration_header.vue b/components/deepExploration_header.vue
index 94ea260..25d1dbe 100644
--- a/components/deepExploration_header.vue
+++ b/components/deepExploration_header.vue
@@ -140,7 +140,7 @@ const openHistoryDrawer = async () => {
};
const clearAllHistory = () => {
- searchHistory.value = [];
+ historyList.value = [];
// uni.setStorageSync("search_history", []);
};
diff --git a/pages/deepExploration/MainForceActions.vue b/pages/deepExploration/MainForceActions.vue
index 97fd330..3c32ab8 100644
--- a/pages/deepExploration/MainForceActions.vue
+++ b/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;
diff --git a/pages/deepExploration/deepExploration.vue b/pages/deepExploration/deepExploration.vue
index 7f9a698..d5bd9fa 100644
--- a/pages/deepExploration/deepExploration.vue
+++ b/pages/deepExploration/deepExploration.vue
@@ -7,7 +7,7 @@
+ placeholder-style="color: #A6A6A6; font-size: 28rpx; " />
@@ -307,6 +307,7 @@
.searchInput {
color: #111;
+ width: 100%;
}
}