From 1973ec3faa3646ca2d94507a094260f68b63b30e Mon Sep 17 00:00:00 2001 From: Ultrame <1019265060@qq.com> Date: Fri, 27 Feb 2026 15:35:03 +0800 Subject: [PATCH] =?UTF-8?q?input=20placeholder=E6=A0=B7=E5=BC=8F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/user_pages/setTransactionPassword/index.tsx | 16 +++++++++------- src/user_pages/validPhone/index.tsx | 6 ++---- src/user_pages/withdrawal/index.tsx | 1 + 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/user_pages/setTransactionPassword/index.tsx b/src/user_pages/setTransactionPassword/index.tsx index 35c7e1d..69e9183 100644 --- a/src/user_pages/setTransactionPassword/index.tsx +++ b/src/user_pages/setTransactionPassword/index.tsx @@ -67,10 +67,12 @@ const SetTransactionPassword: React.FC = () => { const { new_password, confirm_password, sms_code } = formData; if (handleType === "set") { setValid( - (sms_code !== "") && (new_password.length === 6) && (confirm_password.length === 6) + sms_code !== "" && + new_password.length === 6 && + confirm_password.length === 6 ); } else { - setValid((new_password.length === 6) && (confirm_password.length === 6)); + setValid(new_password.length === 6 && confirm_password.length === 6); } }, [formData]); @@ -97,7 +99,7 @@ const SetTransactionPassword: React.FC = () => { icon: "success", }); let delta = handleType === "set" ? 1 : 2; - Taro.navigateBack({ delta }) + Taro.navigateBack({ delta }); } catch (error) { Taro.showToast({ title: "设置交易密码失败", @@ -166,13 +168,11 @@ const SetTransactionPassword: React.FC = () => { Taro.navigateBack(); }} /> - + 交易密码 { 重复密码 { 手机验证 { handleInput(e, "sms_code"); diff --git a/src/user_pages/validPhone/index.tsx b/src/user_pages/validPhone/index.tsx index 09234e2..0a6c459 100644 --- a/src/user_pages/validPhone/index.tsx +++ b/src/user_pages/validPhone/index.tsx @@ -139,10 +139,7 @@ const ValidPhone: React.FC = () => { Taro.navigateBack(); }} /> - + 手机号 @@ -150,6 +147,7 @@ const ValidPhone: React.FC = () => { 验证码 { handleInput(e, "sms_code"); diff --git a/src/user_pages/withdrawal/index.tsx b/src/user_pages/withdrawal/index.tsx index 560733a..0202e1a 100644 --- a/src/user_pages/withdrawal/index.tsx +++ b/src/user_pages/withdrawal/index.tsx @@ -325,6 +325,7 @@ const Withdrawal: React.FC = () => {