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,