feat:移动端列表视图如果有持仓金额则展示持仓金额
This commit is contained in:
@@ -3949,7 +3949,13 @@ export default function HomePage() {
|
|||||||
>
|
>
|
||||||
{f.name}
|
{f.name}
|
||||||
</span>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
{(() => {
|
{(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user