From a4a881860b52df64238bcc8f0c7f428be9c82ff5 Mon Sep 17 00:00:00 2001 From: hzm <934585316@qq.com> Date: Mon, 9 Mar 2026 21:32:03 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E8=A1=A8=E6=A0=BC=E5=88=97?= =?UTF-8?q?=E6=9C=80=E6=96=B0=E5=87=80=E5=80=BC=E5=92=8C=E4=BC=B0=E7=AE=97?= =?UTF-8?q?=E5=87=80=E5=80=BC=E5=A2=9E=E5=8A=A0=E6=97=A5=E6=9C=9F=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/MobileFundTable.jsx | 44 ++++++++++++++++++++---------- app/components/PcFundTable.jsx | 38 +++++++++++++++++++------- app/page.jsx | 2 ++ 3 files changed, 60 insertions(+), 24 deletions(-) diff --git a/app/components/MobileFundTable.jsx b/app/components/MobileFundTable.jsx index f4ce408..f9d324c 100644 --- a/app/components/MobileFundTable.jsx +++ b/app/components/MobileFundTable.jsx @@ -662,25 +662,41 @@ export default function MobileFundTable({ { accessorKey: 'latestNav', header: '最新净值', - cell: (info) => ( - - - {info.getValue() ?? '—'} - - - ), + cell: (info) => { + const original = info.row.original || {}; + const date = original.latestNavDate ?? '-'; + return ( +
+ + + {info.getValue() ?? '—'} + + + {date} +
+ ); + }, meta: { align: 'right', cellClassName: 'value-cell', width: columnWidthMap.latestNav }, }, { accessorKey: 'estimateNav', header: '估算净值', - cell: (info) => ( - - - {info.getValue() ?? '—'} - - - ), + cell: (info) => { + const original = info.row.original || {}; + const date = original.estimateNavDate ?? '-'; + const displayDate = typeof date === 'string' && date.length > 5 ? date.slice(5) : date; + + return ( +
+ + + {info.getValue() ?? '—'} + + + {displayDate} +
+ ); + }, meta: { align: 'right', cellClassName: 'value-cell', width: columnWidthMap.estimateNav }, }, { diff --git a/app/components/PcFundTable.jsx b/app/components/PcFundTable.jsx index 413ee73..2dc51b0 100644 --- a/app/components/PcFundTable.jsx +++ b/app/components/PcFundTable.jsx @@ -566,11 +566,20 @@ export default function PcFundTable({ header: '最新净值', size: 100, minSize: 80, - cell: (info) => ( - - {info.getValue() ?? '—'} - - ), + cell: (info) => { + const original = info.row.original || {}; + const date = original.latestNavDate ?? '-'; + return ( +
+ + {info.getValue() ?? '—'} + + + {date} + +
+ ); + }, meta: { align: 'right', cellClassName: 'value-cell', @@ -581,11 +590,20 @@ export default function PcFundTable({ header: '估算净值', size: 100, minSize: 80, - cell: (info) => ( - - {info.getValue() ?? '—'} - - ), + cell: (info) => { + const original = info.row.original || {}; + const date = original.estimateNavDate ?? '-'; + return ( +
+ + {info.getValue() ?? '—'} + + + {date} + +
+ ); + }, meta: { align: 'right', cellClassName: 'value-cell', diff --git a/app/page.jsx b/app/page.jsx index 2922b2a..47ace20 100644 --- a/app/page.jsx +++ b/app/page.jsx @@ -660,7 +660,9 @@ export default function HomePage() { isUpdated: f.jzrq === todayStr, hasDca: dcaPlans[f.code]?.enabled === true, latestNav, + latestNavDate: yesterdayDate, estimateNav, + estimateNavDate: estimateTime, yesterdayChangePercent, yesterdayChangeValue, yesterdayDate,