input placeholder样式修改
This commit is contained in:
@@ -67,10 +67,12 @@ const SetTransactionPassword: React.FC = () => {
|
|||||||
const { new_password, confirm_password, sms_code } = formData;
|
const { new_password, confirm_password, sms_code } = formData;
|
||||||
if (handleType === "set") {
|
if (handleType === "set") {
|
||||||
setValid(
|
setValid(
|
||||||
(sms_code !== "") && (new_password.length === 6) && (confirm_password.length === 6)
|
sms_code !== "" &&
|
||||||
|
new_password.length === 6 &&
|
||||||
|
confirm_password.length === 6
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
setValid((new_password.length === 6) && (confirm_password.length === 6));
|
setValid(new_password.length === 6 && confirm_password.length === 6);
|
||||||
}
|
}
|
||||||
}, [formData]);
|
}, [formData]);
|
||||||
|
|
||||||
@@ -97,7 +99,7 @@ const SetTransactionPassword: React.FC = () => {
|
|||||||
icon: "success",
|
icon: "success",
|
||||||
});
|
});
|
||||||
let delta = handleType === "set" ? 1 : 2;
|
let delta = handleType === "set" ? 1 : 2;
|
||||||
Taro.navigateBack({ delta })
|
Taro.navigateBack({ delta });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
Taro.showToast({
|
Taro.showToast({
|
||||||
title: "设置交易密码失败",
|
title: "设置交易密码失败",
|
||||||
@@ -166,13 +168,11 @@ const SetTransactionPassword: React.FC = () => {
|
|||||||
Taro.navigateBack();
|
Taro.navigateBack();
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<View
|
<View className="form-item" style={{ marginTop: `${totalHeight}px` }}>
|
||||||
className="form-item"
|
|
||||||
style={{ marginTop: `${totalHeight}px` }}
|
|
||||||
>
|
|
||||||
<Text className="form-label">交易密码</Text>
|
<Text className="form-label">交易密码</Text>
|
||||||
<Input
|
<Input
|
||||||
placeholder="请输入交易密码"
|
placeholder="请输入交易密码"
|
||||||
|
placeholderStyle="color: #d9d9d9;"
|
||||||
password
|
password
|
||||||
type="number"
|
type="number"
|
||||||
maxlength={6}
|
maxlength={6}
|
||||||
@@ -185,6 +185,7 @@ const SetTransactionPassword: React.FC = () => {
|
|||||||
<Text className="form-label">重复密码</Text>
|
<Text className="form-label">重复密码</Text>
|
||||||
<Input
|
<Input
|
||||||
placeholder="请再次输入交易密码"
|
placeholder="请再次输入交易密码"
|
||||||
|
placeholderStyle="color: #d9d9d9;"
|
||||||
password
|
password
|
||||||
type="number"
|
type="number"
|
||||||
maxlength={6}
|
maxlength={6}
|
||||||
@@ -198,6 +199,7 @@ const SetTransactionPassword: React.FC = () => {
|
|||||||
<Text className="form-label">手机验证</Text>
|
<Text className="form-label">手机验证</Text>
|
||||||
<Input
|
<Input
|
||||||
placeholder="请输入验证码"
|
placeholder="请输入验证码"
|
||||||
|
placeholderStyle="color: #d9d9d9;"
|
||||||
type="number"
|
type="number"
|
||||||
onInput={(e) => {
|
onInput={(e) => {
|
||||||
handleInput(e, "sms_code");
|
handleInput(e, "sms_code");
|
||||||
|
|||||||
@@ -139,10 +139,7 @@ const ValidPhone: React.FC = () => {
|
|||||||
Taro.navigateBack();
|
Taro.navigateBack();
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<View
|
<View className="form-item" style={{ marginTop: `${totalHeight}px` }}>
|
||||||
className="form-item"
|
|
||||||
style={{ marginTop: `${totalHeight}px` }}
|
|
||||||
>
|
|
||||||
<Text className="form-label">手机号</Text>
|
<Text className="form-label">手机号</Text>
|
||||||
<Input defaultValue={formData.phone} type="number" disabled></Input>
|
<Input defaultValue={formData.phone} type="number" disabled></Input>
|
||||||
</View>
|
</View>
|
||||||
@@ -150,6 +147,7 @@ const ValidPhone: React.FC = () => {
|
|||||||
<Text className="form-label">验证码</Text>
|
<Text className="form-label">验证码</Text>
|
||||||
<Input
|
<Input
|
||||||
placeholder="请输入验证码"
|
placeholder="请输入验证码"
|
||||||
|
placeholderStyle="color: #d9d9d9;"
|
||||||
type="number"
|
type="number"
|
||||||
onInput={(e) => {
|
onInput={(e) => {
|
||||||
handleInput(e, "sms_code");
|
handleInput(e, "sms_code");
|
||||||
|
|||||||
@@ -325,6 +325,7 @@ const Withdrawal: React.FC = () => {
|
|||||||
<Input
|
<Input
|
||||||
type="digit"
|
type="digit"
|
||||||
placeholder="0.00"
|
placeholder="0.00"
|
||||||
|
placeholderStyle="color:rgba(120, 120, 128, 0.12);"
|
||||||
cursorColor="#000"
|
cursorColor="#000"
|
||||||
value={inputValue}
|
value={inputValue}
|
||||||
onInput={handleInput}
|
onInput={handleInput}
|
||||||
|
|||||||
Reference in New Issue
Block a user