diff --git a/web/src/components/layout/PageLayout.js b/web/src/components/layout/PageLayout.js
index 6825595d..8576a4ea 100644
--- a/web/src/components/layout/PageLayout.js
+++ b/web/src/components/layout/PageLayout.js
@@ -136,9 +136,8 @@ const PageLayout = () => {
flex: '1 0 auto',
overflowY: styleState.isMobile ? 'visible' : 'auto',
WebkitOverflowScrolling: 'touch',
- padding: shouldInnerPadding ? '24px' : '0',
+ padding: shouldInnerPadding ? (styleState.isMobile ? '5px' : '24px') : '0',
position: 'relative',
- marginTop: styleState.isMobile ? '2px' : '0',
}}
>
diff --git a/web/src/helpers/render.js b/web/src/helpers/render.js
index e3ef0878..3d1bca0d 100644
--- a/web/src/helpers/render.js
+++ b/web/src/helpers/render.js
@@ -46,8 +46,7 @@ import {
Gift,
User,
Settings,
- CircleUser,
- Users
+ CircleUser
} from 'lucide-react';
// 侧边栏图标颜色映射
diff --git a/web/src/i18n/locales/en.json b/web/src/i18n/locales/en.json
index 06cfc8f8..7ee93831 100644
--- a/web/src/i18n/locales/en.json
+++ b/web/src/i18n/locales/en.json
@@ -971,6 +971,8 @@
"最低": "lowest",
"划转额度": "Transfer amount",
"邀请链接": "Invitation link",
+ "划转邀请额度": "Transfer invitation quota",
+ "可用邀请额度": "Available invitation quota",
"更多优惠": "More offers",
"企业微信": "Enterprise WeChat",
"点击解绑WxPusher": "Click to unbind WxPusher",
diff --git a/web/src/pages/TopUp/index.js b/web/src/pages/TopUp/index.js
index 893858f7..cb32bca2 100644
--- a/web/src/pages/TopUp/index.js
+++ b/web/src/pages/TopUp/index.js
@@ -347,7 +347,7 @@ const TopUp = () => {
};
return (
-
+
{/* 划转模态框 */}
{
>
{/* 账户余额信息 */}
-
+
{t('当前余额')}
@@ -517,7 +517,7 @@ const TopUp = () => {
{/* 预设充值额度卡片网格 */}
{t('选择充值额度')}
-
+
{presetAmounts.map((preset, index) => (
{
))}
+ {/* 桌面端显示的自定义金额和支付按钮 */}
+
+
+ {t('或输入自定义金额')}
+
-
- {t('或输入自定义金额')}
-
-
-
-
-
{t('充值数量')}
- {amountLoading ? (
-
- ) : (
-
{t('实付金额:') + renderAmount()}
- )}
+
+
+ {t('充值数量')}
+ {amountLoading ? (
+
+ ) : (
+ {t('实付金额:') + renderAmount()}
+ )}
+
+
{
+ if (value && value >= 1) {
+ setTopUpCount(value);
+ setSelectedPreset(null);
+ await getAmount(value);
+ }
+ }}
+ onBlur={(e) => {
+ const value = parseInt(e.target.value);
+ if (!value || value < 1) {
+ setTopUpCount(1);
+ getAmount(1);
+ }
+ }}
+ size="large"
+ className="w-full"
+ formatter={(value) => value ? `${value}` : ''}
+ parser={(value) => value ? parseInt(value.replace(/[^\d]/g, '')) : 0}
+ />
-
{
- if (value && value >= 1) {
- setTopUpCount(value);
- setSelectedPreset(null);
- await getAmount(value);
- }
- }}
- onBlur={(e) => {
- const value = parseInt(e.target.value);
- if (!value || value < 1) {
- setTopUpCount(1);
- getAmount(1);
- }
- }}
- size="large"
- className="w-full"
- formatter={(value) => value ? `${value}` : ''}
- parser={(value) => value ? parseInt(value.replace(/[^\d]/g, '')) : 0}
- />
-
-
-
-
+
+
+
+
>
)}
@@ -612,7 +614,7 @@ const TopUp = () => {
{!enableOnlineTopUp && (
@@ -735,22 +737,21 @@ const TopUp = () => {
+
+ {/* 移动端底部固定的自定义金额和支付区域 */}
+ {enableOnlineTopUp && (
+
+
+
+
+ {t('充值数量')}
+ {amountLoading ? (
+
+ ) : (
+ {t('实付金额:') + renderAmount()}
+ )}
+
+
{
+ if (value && value >= 1) {
+ setTopUpCount(value);
+ setSelectedPreset(null);
+ await getAmount(value);
+ }
+ }}
+ onBlur={(e) => {
+ const value = parseInt(e.target.value);
+ if (!value || value < 1) {
+ setTopUpCount(1);
+ getAmount(1);
+ }
+ }}
+ className="w-full"
+ formatter={(value) => value ? `${value}` : ''}
+ parser={(value) => value ? parseInt(value.replace(/[^\d]/g, '')) : 0}
+ />
+
+
+
+
+
+
+
+
+ )}
);
};