input placeholder样式修改

This commit is contained in:
2026-02-27 15:35:03 +08:00
parent abc2dfeecf
commit 1973ec3faa
3 changed files with 12 additions and 11 deletions

View File

@@ -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();
}}
/>
<View
className="form-item"
style={{ marginTop: `${totalHeight}px` }}
>
<View className="form-item" style={{ marginTop: `${totalHeight}px` }}>
<Text className="form-label"></Text>
<Input
placeholder="请输入交易密码"
placeholderStyle="color: #d9d9d9;"
password
type="number"
maxlength={6}
@@ -185,6 +185,7 @@ const SetTransactionPassword: React.FC = () => {
<Text className="form-label"></Text>
<Input
placeholder="请再次输入交易密码"
placeholderStyle="color: #d9d9d9;"
password
type="number"
maxlength={6}
@@ -198,6 +199,7 @@ const SetTransactionPassword: React.FC = () => {
<Text className="form-label"></Text>
<Input
placeholder="请输入验证码"
placeholderStyle="color: #d9d9d9;"
type="number"
onInput={(e) => {
handleInput(e, "sms_code");

View File

@@ -139,10 +139,7 @@ const ValidPhone: React.FC = () => {
Taro.navigateBack();
}}
/>
<View
className="form-item"
style={{ marginTop: `${totalHeight}px` }}
>
<View className="form-item" style={{ marginTop: `${totalHeight}px` }}>
<Text className="form-label"></Text>
<Input defaultValue={formData.phone} type="number" disabled></Input>
</View>
@@ -150,6 +147,7 @@ const ValidPhone: React.FC = () => {
<Text className="form-label"></Text>
<Input
placeholder="请输入验证码"
placeholderStyle="color: #d9d9d9;"
type="number"
onInput={(e) => {
handleInput(e, "sms_code");

View File

@@ -325,6 +325,7 @@ const Withdrawal: React.FC = () => {
<Input
type="digit"
placeholder="0.00"
placeholderStyle="color:rgba(120, 120, 128, 0.12);"
cursorColor="#000"
value={inputValue}
onInput={handleInput}