fix: add space before K in points formatting

main
sp mac bookpro 2605 2026-06-13 00:15:43 +08:00
parent 257f6a3c3b
commit e0363a845e
3 changed files with 4 additions and 4 deletions

View File

@ -95,7 +95,7 @@ export default function PointsMallH5Products({ logic }: Props) {
</div>
<div className="points-mall-product-price-row h5-points-mall-product-price-row">
<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>
</div>
<Button

View File

@ -36,7 +36,7 @@ export default function PointsMallH5Top({ logic }: Props) {
<div className="points-balance-row h5-points-balance-row">
<div className="points-balance-main">
<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">
${typeof totalSpentUSD === 'number' ? totalSpentUSD.toFixed(2) : '--'}
</div>

View File

@ -59,7 +59,7 @@ export default function PointsMallPageWeb({ logic }: Props) {
<div className="points-balance-row">
<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">
${typeof totalSpentUSD === 'number' ? totalSpentUSD.toFixed(2) : '--'}
</div>
@ -196,7 +196,7 @@ export default function PointsMallPageWeb({ logic }: Props) {
</div>
<div className="points-mall-product-price-row">
<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>
</div>
<Button