feat: 优化当日收益计算方式
This commit is contained in:
@@ -458,7 +458,7 @@ export default function MobileFundTable({
|
||||
while (queue.length) {
|
||||
const item = queue.shift();
|
||||
if (item == null) continue;
|
||||
// eslint-disable-next-line no-await-in-loop
|
||||
|
||||
await worker(item);
|
||||
}
|
||||
});
|
||||
@@ -859,7 +859,6 @@ export default function MobileFundTable({
|
||||
const cls = hasProfit ? (value > 0 ? 'up' : value < 0 ? 'down' : '') : 'muted';
|
||||
const amountStr = hasProfit ? (info.getValue() ?? '') : '—';
|
||||
const percentStr = original.todayProfitPercent ?? '';
|
||||
const isUpdated = original.isUpdated;
|
||||
return (
|
||||
<div style={{ width: '100%' }}>
|
||||
<span className={cls} style={{ display: 'block', width: '100%', fontWeight: 700 }}>
|
||||
@@ -867,7 +866,7 @@ export default function MobileFundTable({
|
||||
{masked && hasProfit ? <span className="mask-text">******</span> : amountStr}
|
||||
</FitText>
|
||||
</span>
|
||||
{percentStr && !isUpdated && !masked ? (
|
||||
{percentStr && !masked ? (
|
||||
<span className={`${cls} today-profit-percent`} style={{ display: 'block', width: '100%', fontSize: '0.75em', opacity: 0.9, fontWeight: 500 }}>
|
||||
<FitText maxFontSize={11} minFontSize={9}>
|
||||
{percentStr}
|
||||
|
||||
Reference in New Issue
Block a user