chore: remove $ symbol from wallet management page

- Replace $ with USD or empty in amount display
- Remove $ after Coins icon in preset amount cards
- Replace (1 $ =) with (1 USD =) in exchange rate hint
- Update renderTopUpCountInUSD to return value without $ prefix
- Keep EUR symbol unchanged
This commit is contained in:
xiezhouwei 2026-06-11 11:58:41 +08:00
parent d7fdbb4e18
commit 53898ad22b
2 changed files with 7 additions and 7 deletions

View File

@ -383,7 +383,7 @@ const RechargeCard = ({
fontWeight: 'normal', fontWeight: 'normal',
}} }}
> >
(1 $ = {rate.toFixed(2)} {symbol}) (1 USD = {rate.toFixed(2)} {symbol})
</span> </span>
); );
})()} })()}
@ -453,7 +453,7 @@ const RechargeCard = ({
heading={6} heading={6}
style={{ margin: '0 0 8px 0' }} style={{ margin: '0 0 8px 0' }}
> >
<Coins size={18} />$ <Coins size={18} />
{formatLargeNumber(displayValue)} {formatLargeNumber(displayValue)}
{hasDiscount && ( {hasDiscount && (
<Tag style={{ marginLeft: 4 }} color='green'> <Tag style={{ marginLeft: 4 }} color='green'>
@ -550,7 +550,7 @@ const RechargeCard = ({
{t('充值额度')}: {product.quota} {t('充值额度')}: {product.quota}
</div> </div>
<div className='text-lg font-semibold text-blue-600'> <div className='text-lg font-semibold text-blue-600'>
{product.currency === 'EUR' ? '€' : '$'} {product.currency === 'EUR' ? '€' : 'USD'}
{product.price} {product.price}
</div> </div>
</Card> </Card>

View File

@ -653,7 +653,7 @@ const TopUp = () => {
if (rechargeDisplayCurrency === 'CNY') { if (rechargeDisplayCurrency === 'CNY') {
return { symbol: '¥', code: 'CNY' }; return { symbol: '¥', code: 'CNY' };
} }
return { symbol: '$', code: 'USD' }; return { symbol: '', code: 'USD' };
}; };
const renderAmount = () => { const renderAmount = () => {
@ -663,7 +663,7 @@ const TopUp = () => {
: '0.00'; : '0.00';
const { symbol, code } = getRechargeCurrencyMeta(); const { symbol, code } = getRechargeCurrencyMeta();
if (code === 'USD') { if (code === 'USD') {
return `${symbol}${formattedAmount} ${code}`; return `${formattedAmount} ${code}`;
} }
return `${symbol}${formattedAmount}`; return `${symbol}${formattedAmount}`;
}; };
@ -672,7 +672,7 @@ const TopUp = () => {
const renderTopUpCountInUSD = (value) => { const renderTopUpCountInUSD = (value) => {
const numericValue = Number(value); const numericValue = Number(value);
const safeValue = Number.isFinite(numericValue) ? numericValue : 0; const safeValue = Number.isFinite(numericValue) ? numericValue : 0;
return `$${safeValue}`; return `${safeValue}`;
}; };
const getAmount = async (value) => { const getAmount = async (value) => {
@ -981,7 +981,7 @@ const TopUp = () => {
{t('产品名称')}{selectedCreemProduct.name} {t('产品名称')}{selectedCreemProduct.name}
</p> </p>
<p> <p>
{t('价格')}{selectedCreemProduct.currency === 'EUR' ? '€' : '$'} {t('价格')}{selectedCreemProduct.currency === 'EUR' ? '€' : 'USD'}
{selectedCreemProduct.price} {selectedCreemProduct.price}
</p> </p>
<p> <p>