feat:移动端列表视图如果有持仓金额则展示持仓金额

This commit is contained in:
hzm
2026-02-27 21:56:58 +08:00
parent 7236684178
commit c3157439c3

View File

@@ -3949,7 +3949,13 @@ export default function HomePage() {
>
{f.name}
</span>
<span className="muted code-text">#{f.code}</span>
<span className="muted code-text">
{(() => {
const holding = holdings[f.code];
const profit = getHoldingProfit(f, holding);
return profit ? `¥${profit.amount.toFixed(2)}` : `#${f.code}`;
})()}
</span>
</div>
</div>
{(() => {