fix: add space before K in points formatting
parent
257f6a3c3b
commit
e0363a845e
|
|
@ -95,7 +95,7 @@ export default function PointsMallH5Products({ logic }: Props) {
|
||||||
</div>
|
</div>
|
||||||
<div className="points-mall-product-price-row h5-points-mall-product-price-row">
|
<div className="points-mall-product-price-row h5-points-mall-product-price-row">
|
||||||
<div>
|
<div>
|
||||||
<span className="points-mall-product-price">{p.pointsPrice >= 1000 ? `${(p.pointsPrice / 1000).toFixed(1)}K` : Number(p.pointsPrice).toLocaleString()}</span>
|
<span className="points-mall-product-price">{p.pointsPrice >= 1000 ? `${(p.pointsPrice / 1000).toFixed(1)} K` : Number(p.pointsPrice).toLocaleString()}</span>
|
||||||
<span className="points-mall-product-price-label">Token</span>
|
<span className="points-mall-product-price-label">Token</span>
|
||||||
</div>
|
</div>
|
||||||
<Button
|
<Button
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ export default function PointsMallH5Top({ logic }: Props) {
|
||||||
<div className="points-balance-row h5-points-balance-row">
|
<div className="points-balance-row h5-points-balance-row">
|
||||||
<div className="points-balance-main">
|
<div className="points-balance-main">
|
||||||
<div className="points-balance-label">我的Token</div>
|
<div className="points-balance-label">我的Token</div>
|
||||||
<div className="points-balance-value">{userPoints >= 1000 ? `${(userPoints / 1000).toFixed(1)}K` : userPoints.toLocaleString()}</div>
|
<div className="points-balance-value">{userPoints >= 1000 ? `${(userPoints / 1000).toFixed(1)} K` : userPoints.toLocaleString()}</div>
|
||||||
<div className="points-balance-subtext">
|
<div className="points-balance-subtext">
|
||||||
累计消费 ${typeof totalSpentUSD === 'number' ? totalSpentUSD.toFixed(2) : '--'}
|
累计消费 ${typeof totalSpentUSD === 'number' ? totalSpentUSD.toFixed(2) : '--'}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ export default function PointsMallPageWeb({ logic }: Props) {
|
||||||
<div className="points-balance-row">
|
<div className="points-balance-row">
|
||||||
<div>
|
<div>
|
||||||
<div className="points-balance-label">我的Token</div>
|
<div className="points-balance-label">我的Token</div>
|
||||||
<div className="points-balance-value">{userPoints >= 1000 ? `${(userPoints / 1000).toFixed(1)}K` : userPoints.toLocaleString()}</div>
|
<div className="points-balance-value">{userPoints >= 1000 ? `${(userPoints / 1000).toFixed(1)} K` : userPoints.toLocaleString()}</div>
|
||||||
<div className="points-balance-subtext">
|
<div className="points-balance-subtext">
|
||||||
累计消费 ${typeof totalSpentUSD === 'number' ? totalSpentUSD.toFixed(2) : '--'}
|
累计消费 ${typeof totalSpentUSD === 'number' ? totalSpentUSD.toFixed(2) : '--'}
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -196,7 +196,7 @@ export default function PointsMallPageWeb({ logic }: Props) {
|
||||||
</div>
|
</div>
|
||||||
<div className="points-mall-product-price-row">
|
<div className="points-mall-product-price-row">
|
||||||
<div>
|
<div>
|
||||||
<span className="points-mall-product-price">{p.pointsPrice >= 1000 ? `${(p.pointsPrice / 1000).toFixed(1)}K` : Number(p.pointsPrice).toLocaleString()}</span>
|
<span className="points-mall-product-price">{p.pointsPrice >= 1000 ? `${(p.pointsPrice / 1000).toFixed(1)} K` : Number(p.pointsPrice).toLocaleString()}</span>
|
||||||
<span className="points-mall-product-price-label">Token</span>
|
<span className="points-mall-product-price-label">Token</span>
|
||||||
</div>
|
</div>
|
||||||
<Button
|
<Button
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue