From 9ce370d48413ddb9faf04059c849964ccf0f72fc Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Fri, 20 Feb 2026 20:29:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A0=B7=E5=BC=8F=E5=AE=8C=E5=96=84?= =?UTF-8?q?=E4=B8=8E=E4=BF=AE=E6=94=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/statistic/bigScreen/index.vue | 95 ++++++++++++++----------- 1 file changed, 55 insertions(+), 40 deletions(-) diff --git a/src/pages/statistic/bigScreen/index.vue b/src/pages/statistic/bigScreen/index.vue index 70eff37..862afe1 100644 --- a/src/pages/statistic/bigScreen/index.vue +++ b/src/pages/statistic/bigScreen/index.vue @@ -4,26 +4,29 @@ - - - 净资产 - {{ Number(netAsset || 0).toFixed(2) }} - - - 总负债 - {{ Number(totalDebt || 0).toFixed(2) }} - - - 总资产 - {{ Number(totalAsset || 0).toFixed(2) }} - - - 信用卡已用额度 - {{ Number(creditBalance || 0).toFixed(2) }} - - - 未结清贷款本息 - {{ Number(unClearedOnlineDebt || 0).toFixed(2) }} + + 核心指标 + + + 净资产 + {{ Number(netAsset || 0).toFixed(2) }} + + + 总负债 + {{ Number(totalDebt || 0).toFixed(2) }} + + + 总资产 + {{ Number(totalAsset || 0).toFixed(2) }} + + + 信用卡已用额度 + {{ Number(creditBalance || 0).toFixed(2) }} + + + 未结清贷款本息 + {{ Number(unClearedOnlineDebt || 0).toFixed(2) }} + @@ -488,7 +491,7 @@ const assetChartOpts = computed(() => ({ lineHeight: 25 }, title: { - name: `总计`, + name: `资产总计`, fontSize: 15, color: '#666666' }, @@ -636,8 +639,9 @@ const trendChartOpts = ref({ dataLabel: false, xAxis: { disableGrid: true, - rotateLabel: true, - labelCount: 5 + fontSize: 9, + boundaryGap: 'justify', + labelCount: 3 }, yAxis: { gridType: 'dash', @@ -680,8 +684,9 @@ const expenseChartOpts = ref({ dataLabel: false, xAxis: { disableGrid: true, - rotateLabel: true, - labelCount: 4 + fontSize: 9, + boundaryGap: 'justify', + labelCount: 3 }, yAxis: { gridType: 'dash', @@ -724,8 +729,9 @@ const investChartOpts = ref({ dataLabel: false, xAxis: { disableGrid: true, - rotateLabel: true, - labelCount: 4 + fontSize: 9, + boundaryGap: 'justify', + labelCount: 3 }, yAxis: { gridType: 'dash', @@ -765,8 +771,9 @@ const lendRepaymentChartOpts = ref({ dataLabel: false, xAxis: { disableGrid: true, - rotateLabel: true, - labelCount: 5 + fontSize: 9, + boundaryGap: 'justify', + labelCount: 3 }, yAxis: { gridType: 'dash', @@ -809,8 +816,9 @@ const balanceChartOpts = ref({ dataLabel: false, xAxis: { disableGrid: true, - rotateLabel: true, - labelCount: 5 + fontSize: 9, + boundaryGap: 'justify', + labelCount: 3 }, yAxis: { gridType: 'dash', @@ -850,8 +858,9 @@ const creditBillChartOpts = ref({ dataLabel: false, xAxis: { disableGrid: true, - rotateLabel: true, - labelCount: 4 + fontSize: 9, + boundaryGap: 'justify', + labelCount: 3 }, yAxis: { gridType: 'dash', @@ -891,8 +900,9 @@ const openCardChartOpts = ref({ dataLabel: false, xAxis: { disableGrid: true, - rotateLabel: true, - labelCount: 5 + fontSize: 9, + boundaryGap: 'justify', + labelCount: 3 }, yAxis: { gridType: 'dash', @@ -928,8 +938,9 @@ const posCardChartOpts = ref({ dataLabel: false, xAxis: { disableGrid: true, - rotateLabel: true, - labelCount: 6 + fontSize: 9, + boundaryGap: 'justify', + labelCount: 3 }, yAxis: { gridType: 'dash', @@ -1302,7 +1313,6 @@ onMounted(() => { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20rpx; - margin: 24rpx 0; .metric-card:nth-child(4), .metric-card:nth-child(5) { @@ -1363,6 +1373,10 @@ onMounted(() => { padding: 24rpx; border: 1px solid rgba(148, 163, 184, 0.3); box-shadow: 0 4rpx 16rpx rgba(15, 23, 42, 0.5); + + &:first-child { + margin-top: 24rpx; + } } .section-title { @@ -1374,14 +1388,15 @@ onMounted(() => { border-bottom: 1px solid rgba(148, 163, 184, 0.2); position: relative; padding-left: 16rpx; + line-height: 28rpx; &::before { content: ''; position: absolute; left: 0; - top: 2rpx; + top: 0; width: 6rpx; - height: 24rpx; + height: 28rpx; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 3rpx; }