Commit 6da5b6b0 by 张立顺

fix 交互修改

1 parent c76f0afe
......@@ -32,7 +32,7 @@
<view class="password-warn" v-if="passwordInfo.warn">{{ passwordInfo.warn }}</view>
<view class="password-body flex flex-direction-column" :class="passwordInfo.type == 'reset' ? 'reset' : ''">
<view class="uni-input-wrapper passwordInput">
<input v-model="passwords.passwordsNumber" class="uni-password-input" placeholder="请输入6位密码" type="number" :password="showPassword" maxlength="6" @input="handleInput" />
<input ref="passwordInputs" id="passWord" :focus="focused" v-model="passwords.passwordsNumber" class="uni-password-input" placeholder="请输入6位密码" type="number" :password="showPassword" maxlength="6" @input="handleInput" />
</view>
<!-- <input class="password-input" type="number" v-model="passwords.passwordsNumber" max-length="6" /> -->
......@@ -70,6 +70,7 @@ export default {
name: 'Password',
data() {
return {
focused: false,
showError: false,
showPassword: true,
inputType: 'password',
......@@ -126,7 +127,9 @@ export default {
const { phone } = uni.$storage.get('userInfo')
this.phone = phone
this.getUserInfo()
// this.passwordInfo = this.typeList[2]
this.$nextTick(() => {
this.focused = true
})
},
filters: {
formatPhone(phone) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!