From 62246fef8d93e35010de3b70cbafd65ab39c9542 Mon Sep 17 00:00:00 2001 From: claw_bot Date: Thu, 12 Mar 2026 10:45:31 +0000 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E6=80=BB=E7=9B=88=E4=BA=8F=E7=99=BE?= =?UTF-8?q?=E5=88=86=E6=AF=94=E5=A2=9E=E5=8A=A0=E5=B7=A6=E8=BE=B9=E8=B7=9D?= =?UTF-8?q?=EF=BC=8C=E8=B0=83=E5=B0=8F=E5=AD=97=E4=BD=93=E6=9B=B4=E5=8D=8F?= =?UTF-8?q?=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/detail/detail.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/detail/detail.vue b/pages/detail/detail.vue index f97cbd6..dc4ce22 100644 --- a/pages/detail/detail.vue +++ b/pages/detail/detail.vue @@ -25,7 +25,7 @@ 总盈亏 {{ (portfolioData.totalReturn || 0) >= 0 ? '+' : '' }}{{ getCurrencySymbol(portfolioData.currency) }}{{ (portfolioData.totalReturn || 0).toLocaleString('zh-CN', { minimumFractionDigits: 2, maximumFractionDigits: 2 }) }} - ({{ (portfolioData.historicalChange || 0) >= 0 ? '+' : '' }}{{ (portfolioData.historicalChange || 0).toFixed(2) }}%) + ({{ (portfolioData.historicalChange || 0) >= 0 ? '+' : '' }}{{ (portfolioData.historicalChange || 0).toFixed(2) }}%) From edace5b803c8f1b8d7243ba51464521519a80897 Mon Sep 17 00:00:00 2001 From: claw_bot Date: Thu, 12 Mar 2026 10:54:34 +0000 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E6=9C=80=E8=BF=91=E4=BA=A4?= =?UTF-8?q?=E6=98=93=E8=AE=B0=E5=BD=95=E6=98=BE=E7=A4=BA=E4=BA=A4=E6=98=93?= =?UTF-8?q?=E9=87=91=E9=A2=9D=EF=BC=8C=E4=BC=98=E5=8C=96=E5=B8=83=E5=B1=80?= =?UTF-8?q?=E9=97=B4=E8=B7=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/detail/detail.vue | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/pages/detail/detail.vue b/pages/detail/detail.vue index dc4ce22..0a07adf 100644 --- a/pages/detail/detail.vue +++ b/pages/detail/detail.vue @@ -138,8 +138,13 @@ - {{ log.title }} {{ log.stockCode || '' }} - {{ log.type === 'buy' ? '增加' : '减少' }} {{ log.amount }} + + {{ log.title }} {{ log.stockCode || '' }} + + {{ log.type === 'buy' ? '+' : '-' }}{{ getCurrencySymbol(portfolioData.currency) }}{{ (log.amount || 0).toLocaleString('zh-CN', { minimumFractionDigits: 2, maximumFractionDigits: 2 }) }} + + + {{ log.type === 'buy' ? '买入' : '卖出' }} 操作 @@ -694,15 +699,17 @@ const deletePortfolio = async () => { /* 交易明细 */ .timeline-box { padding: 0 16rpx; } .timeline-item { display: flex; margin-bottom: 0; min-height: 120rpx; } -.tl-left { width: 80rpx; text-align: right; padding-right: 20rpx; display: flex; flex-direction: column; } +.tl-left { width: 120rpx; text-align: right; padding-right: 24rpx; display: flex; flex-direction: column; } .tl-date { font-size: 26rpx; font-weight: 600; color: #374151; } .tl-time { font-size: 22rpx; color: #9CA3AF; margin-top: 4rpx; } .tl-line { width: 40rpx; display: flex; flex-direction: column; align-items: center; position: relative; } .tl-dot { width: 16rpx; height: 16rpx; border-radius: 50%; z-index: 2; margin-top: 10rpx; } .tl-dash { width: 2rpx; flex: 1; background-color: #E5E7EB; margin-top: 8rpx; } -.tl-right { flex: 1; padding-left: 20rpx; padding-bottom: 40rpx; } +.tl-right { flex: 1; padding-left: 24rpx; padding-bottom: 40rpx; } .tl-title { font-size: 28rpx; font-weight: 600; color: #1F2937; } +.tl-amount { font-size: 26rpx; font-weight: 700; } .tl-desc { font-size: 24rpx; color: #6B7280; margin-top: 8rpx; } +.w-full { width: 100%; } /* 底部固定操作栏 */ .fixed-bottom {