fix
This commit is contained in:
@@ -87,10 +87,33 @@ export const OTPBindUI: React.FC<OTPBindUIProps> = ({
|
||||
|
||||
{showOtp && (
|
||||
<>
|
||||
<Text style={styles.hint}>验证码已发送至 {state.mobile}</Text>
|
||||
<Text style={styles.hint}>
|
||||
{state.needPassword
|
||||
? `验证码已发送至 ${state.mobile},该账号需输入密码`
|
||||
: `验证码已发送至 ${state.mobile}`}
|
||||
</Text>
|
||||
{!!state.errorMessage && (
|
||||
<Text style={styles.errorText}>{state.errorMessage}</Text>
|
||||
)}
|
||||
{state.needPassword && (
|
||||
<>
|
||||
<Text style={styles.label}>Amazon 密码</Text>
|
||||
<TextInput
|
||||
style={[styles.input, !!state.errorMessage && styles.inputError]}
|
||||
placeholder="请输入账号密码"
|
||||
placeholderTextColor="#aaa"
|
||||
secureTextEntry
|
||||
autoCapitalize="none"
|
||||
autoCorrect={false}
|
||||
value={state.password}
|
||||
onChangeText={t => {
|
||||
actions.setPassword(t);
|
||||
if (state.errorMessage) actions.clearError();
|
||||
}}
|
||||
editable={!isLoading}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
<Text style={styles.label}>验证码</Text>
|
||||
<TextInput
|
||||
style={[styles.input, !!state.errorMessage && styles.inputError]}
|
||||
|
||||
Reference in New Issue
Block a user