From bafb44ff06b53875ffd6aa7fb02a598f470e5552 Mon Sep 17 00:00:00 2001 From: Ultrame <1019265060@qq.com> Date: Fri, 27 Feb 2026 12:06:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E4=BA=A4=E6=98=93=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E9=A1=B5=E9=9D=A2=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../setTransactionPassword/index.scss | 11 +++++--- src/user_pages/validPhone/index.scss | 11 +++++--- src/user_pages/withdrawal/index.tsx | 26 +++++++++---------- 3 files changed, 29 insertions(+), 19 deletions(-) diff --git a/src/user_pages/setTransactionPassword/index.scss b/src/user_pages/setTransactionPassword/index.scss index eaa59d8..f99120e 100644 --- a/src/user_pages/setTransactionPassword/index.scss +++ b/src/user_pages/setTransactionPassword/index.scss @@ -17,6 +17,7 @@ top: 0; z-index: 100; background-color: #f5f5f5; + padding: 0 20px; } .detail-navigator { @@ -48,18 +49,22 @@ } .form-item { - padding: 20px; + padding: 16px 0; box-sizing: border-box; height: 50px; display: flex; - gap: 10px; + gap: 20px; align-items: center; border-bottom: 1px solid #0000000d; font-size: 14px; .form-label { - width: 56px; text-align: right; + font-weight: 600; + } + + Input { + flex: 1; } } diff --git a/src/user_pages/validPhone/index.scss b/src/user_pages/validPhone/index.scss index 08afa60..6a72957 100644 --- a/src/user_pages/validPhone/index.scss +++ b/src/user_pages/validPhone/index.scss @@ -3,6 +3,7 @@ box-sizing: border-box; height: 100vh; overflow-y: hidden; + padding: 0 20px; .custom-navbar { height: 56px; /* 通常与原生导航栏高度一致 */ @@ -48,18 +49,22 @@ } .form-item { - padding: 20px; + padding: 16px 0; box-sizing: border-box; height: 50px; display: flex; - gap: 10px; + gap: 20px; align-items: center; border-bottom: 1px solid #0000000d; font-size: 14px; .form-label { - width: 56px; text-align: right; + font-weight: 600; + } + + Input { + flex: 1; } } diff --git a/src/user_pages/withdrawal/index.tsx b/src/user_pages/withdrawal/index.tsx index ec87155..560733a 100644 --- a/src/user_pages/withdrawal/index.tsx +++ b/src/user_pages/withdrawal/index.tsx @@ -49,7 +49,7 @@ const Withdrawal: React.FC = () => { }, [initializeKeyboardListener, addListener]); const [showTips, setShowTips] = useState(false); const [tipsText, setTipsText] = useState(""); - const [inputValue, setInputValue] = useState("0.00"); + const [inputValue, setInputValue] = useState(""); const [walletInfo, setWalletInfo] = useState({ balance: "0.00", }); @@ -65,8 +65,8 @@ const Withdrawal: React.FC = () => { const [inputValueObj, setInputValueObj] = useState({ integer: "0", - decimal: "00" - }) + decimal: "00", + }); useDidShow(() => { load_wallet_data(); @@ -87,11 +87,11 @@ const Withdrawal: React.FC = () => { }, [show_withdraw_popup]); useEffect(() => { - const value = Number(inputValue).toFixed(2).split(".") - const integer = value[0] - const decimal = value[1] - setInputValueObj({ integer, decimal }) - }, [inputValue]) + const value = Number(inputValue).toFixed(2).split("."); + const integer = value[0]; + const decimal = value[1]; + setInputValueObj({ integer, decimal }); + }, [inputValue]); const validateWithdrawAmount = (amount: string) => { if (Number(amount) > Number(walletInfo.balance)) { @@ -307,15 +307,15 @@ const Withdrawal: React.FC = () => { showBack={true} showAvatar={false} onBack={() => { - const pages = Taro.getCurrentPages() - const prevPage = pages[pages.length - 2] + const pages = Taro.getCurrentPages(); + const prevPage = pages[pages.length - 2]; prevPage.setData({ - updateList: withdrawSuccess - }) + updateList: withdrawSuccess, + }); Taro.navigateBack(); }} /> -