|
@ -10,6 +10,7 @@ |
|
|
<div class="input-container"> |
|
|
<div class="input-container"> |
|
|
<div> |
|
|
<div> |
|
|
<input |
|
|
<input |
|
|
|
|
|
:maxlength="4" |
|
|
:type="showoldpasswd ? 'text' : 'password'" |
|
|
:type="showoldpasswd ? 'text' : 'password'" |
|
|
v-model="oldpasswd" |
|
|
v-model="oldpasswd" |
|
|
placeholder="输入旧密码" |
|
|
placeholder="输入旧密码" |
|
@ -23,6 +24,7 @@ |
|
|
<br /> |
|
|
<br /> |
|
|
<div> |
|
|
<div> |
|
|
<input |
|
|
<input |
|
|
|
|
|
:maxlength="4" |
|
|
:type="showPassword ? 'text' : 'password'" |
|
|
:type="showPassword ? 'text' : 'password'" |
|
|
v-model="password" |
|
|
v-model="password" |
|
|
placeholder="输入新密码" |
|
|
placeholder="输入新密码" |
|
@ -36,6 +38,7 @@ |
|
|
<br /> |
|
|
<br /> |
|
|
<div> |
|
|
<div> |
|
|
<input |
|
|
<input |
|
|
|
|
|
:maxlength="4" |
|
|
:type="showConfirmPassword ? 'text' : 'password'" |
|
|
:type="showConfirmPassword ? 'text' : 'password'" |
|
|
v-model="confirmPassword" |
|
|
v-model="confirmPassword" |
|
|
placeholder="输入确认新密码" |
|
|
placeholder="输入确认新密码" |
|
@ -171,11 +174,11 @@ const handleKeyboardInput = (value: string) => { |
|
|
// 更新对应字段的值 |
|
|
// 更新对应字段的值 |
|
|
|
|
|
|
|
|
if (currentInputField.value === 'oldpasswd') { |
|
|
if (currentInputField.value === 'oldpasswd') { |
|
|
oldpasswd.value = value |
|
|
|
|
|
|
|
|
oldpasswd.value = value.slice(0, 4) |
|
|
} else if (currentInputField.value == 'password') { |
|
|
} else if (currentInputField.value == 'password') { |
|
|
password.value = value |
|
|
|
|
|
|
|
|
password.value = value.slice(0, 4) |
|
|
} else if (currentInputField.value == 'confirmPassword') { |
|
|
} else if (currentInputField.value == 'confirmPassword') { |
|
|
confirmPassword.value = value |
|
|
|
|
|
|
|
|
confirmPassword.value = value.slice(0, 4) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|