Commit 6da5b6b0 by 张立顺

fix 交互修改

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