diff --git a/src/views/AiEmotion.vue b/src/views/AiEmotion.vue index 7ca2228..c4144b0 100644 --- a/src/views/AiEmotion.vue +++ b/src/views/AiEmotion.vue @@ -321,7 +321,7 @@ function renderCharts(data) { // 深拷贝数据避免污染原始数据 const clonedData = JSON.parse(JSON.stringify(data)); console.log('已深拷贝数据,避免污染原始数据'); - + // 渲染股市温度计图表 if (marketTemperatureRef.value && clonedData.GSWDJ) { console.log("开始渲染股市温度计图表"); @@ -384,8 +384,8 @@ onMounted(() => { \ No newline at end of file diff --git a/src/views/components/emotionDecod.vue b/src/views/components/emotionDecod.vue index 3849607..f208858 100644 --- a/src/views/components/emotionDecod.vue +++ b/src/views/components/emotionDecod.vue @@ -181,7 +181,7 @@ function initQXNLZHEcharts(kline, qxnlzhqData) { data: [0, 1, 2, 3], // 倒序显示 axisLine: { lineStyle: { color: "#8392A5" } }, axisLabel: { - show: true, // 显示刻度标签 + show: false, // 显示刻度标签 color: "#fff", // 白色文字 backgroundColor: "transparent", fontSize: 12, diff --git a/src/views/components/marketTemperature.vue b/src/views/components/marketTemperature.vue index 22aa6fb..60cd8f9 100644 --- a/src/views/components/marketTemperature.vue +++ b/src/views/components/marketTemperature.vue @@ -163,13 +163,13 @@ function initChart(raw, klineDataRawValue, WDRLValue) { console.error('initChart: raw, klineDataRawValue or WDRLValue is undefined') return } - + // 如果已存在图表实例,先销毁 if (chartInstance) { chartInstance.dispose() chartInstance = null } - + // 处理 K 线图数据 const klineData = klineDataRawValue.map(item => { const open = item[1] @@ -333,9 +333,9 @@ defineExpose({ initChart }) .container { margin: 0 auto; - padding: 20px; + /* padding: 20px; */ max-width: 80vw; - padding-bottom: 7rem; + padding-bottom: 10%; } .border3 { @@ -352,7 +352,7 @@ defineExpose({ initChart }) border-radius: 8px; padding: 20px; width: 80%; - margin-left: 7rem; + margin-left: 8%; } /* 手机端适配样式 */ @@ -366,8 +366,8 @@ defineExpose({ initChart }) margin-top: 0px; border-radius: 8px; padding: 0px; - width: 108%; - margin-left: -8px; + width: 100%; + margin-left: 0%; height: auto; } @@ -397,6 +397,7 @@ defineExpose({ initChart }) .WDRL_data { font-size: 3vw; } + .el-table .cell { box-sizing: border-box; line-height: 23px; @@ -406,6 +407,6 @@ defineExpose({ initChart }) text-overflow: ellipsis; white-space: normal; text-align: center; -} + } } \ No newline at end of file