From c1410ace2698edae68eff21511ba86c609d2c99c Mon Sep 17 00:00:00 2001 From: ZhangYong Date: Thu, 30 Oct 2025 18:39:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=AA=E5=9D=90=E6=A0=87=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E4=B8=8D=E5=85=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/deepExploration_header.vue | 2 +- pages/deepExploration/MainForceActions.vue | 21 +++++++++++++++------ pages/deepExploration/deepExploration.vue | 3 ++- 3 files changed, 18 insertions(+), 8 deletions(-) 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%; } }