From 53898ad22bbaa9c4cc167e1637ea0842db71b8b9 Mon Sep 17 00:00:00 2001 From: xiezhouwei Date: Thu, 11 Jun 2026 11:58:41 +0800 Subject: [PATCH] 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 --- web/src/components/topup/RechargeCard.jsx | 6 +++--- web/src/components/topup/index.jsx | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/web/src/components/topup/RechargeCard.jsx b/web/src/components/topup/RechargeCard.jsx index d68598c..62de793 100644 --- a/web/src/components/topup/RechargeCard.jsx +++ b/web/src/components/topup/RechargeCard.jsx @@ -383,7 +383,7 @@ const RechargeCard = ({ fontWeight: 'normal', }} > - (1 $ = {rate.toFixed(2)} {symbol}) + (1 USD = {rate.toFixed(2)} {symbol}) ); })()} @@ -453,7 +453,7 @@ const RechargeCard = ({ heading={6} style={{ margin: '0 0 8px 0' }} > - $ + {formatLargeNumber(displayValue)} {hasDiscount && ( @@ -550,7 +550,7 @@ const RechargeCard = ({ {t('充值额度')}: {product.quota}
- {product.currency === 'EUR' ? '€' : '$'} + {product.currency === 'EUR' ? '€' : 'USD'} {product.price}
diff --git a/web/src/components/topup/index.jsx b/web/src/components/topup/index.jsx index 199597d..41352db 100644 --- a/web/src/components/topup/index.jsx +++ b/web/src/components/topup/index.jsx @@ -653,7 +653,7 @@ const TopUp = () => { if (rechargeDisplayCurrency === 'CNY') { return { symbol: '¥', code: 'CNY' }; } - return { symbol: '$', code: 'USD' }; + return { symbol: '', code: 'USD' }; }; const renderAmount = () => { @@ -663,7 +663,7 @@ const TopUp = () => { : '0.00'; const { symbol, code } = getRechargeCurrencyMeta(); if (code === 'USD') { - return `${symbol}${formattedAmount} ${code}`; + return `${formattedAmount} ${code}`; } return `${symbol}${formattedAmount}`; }; @@ -672,7 +672,7 @@ const TopUp = () => { const renderTopUpCountInUSD = (value) => { const numericValue = Number(value); const safeValue = Number.isFinite(numericValue) ? numericValue : 0; - return `$${safeValue}`; + return `${safeValue}`; }; const getAmount = async (value) => { @@ -981,7 +981,7 @@ const TopUp = () => { {t('产品名称')}:{selectedCreemProduct.name}

- {t('价格')}:{selectedCreemProduct.currency === 'EUR' ? '€' : '$'} + {t('价格')}:{selectedCreemProduct.currency === 'EUR' ? '€' : 'USD'} {selectedCreemProduct.price}