Commit 6124a1be by 李伟康

commit 提交

1 parent 40f640fd
<template> <template>
<view class="layout"> <view class="layout">
<view class="bg"></view> <view class="bg"></view>
<view class="login" :key="dateKey"> <view class="login">
<view class="title">登录</view> <view class="title">登录</view>
<view class="sub-title">手机号码登录</view> <view class="sub-title">手机号码登录</view>
<view class="input"> <view class="input">
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
placeholder="请输入手机号" placeholder="请输入手机号"
maxlength="11" maxlength="11"
@blur="input($event, 'mobile')" @blur="input($event, 'mobile')"
:key="dateKey.mobile"
/> />
<template v-if="mobile"> <template v-if="mobile">
<view class="icon" @click="mobile = ''"> <view class="icon" @click="mobile = ''">
...@@ -18,13 +19,14 @@ ...@@ -18,13 +19,14 @@
</view> </view>
</template> </template>
</view> </view>
<view class="input"> <view class="input" >
<input <input
type="number" type="number"
:value="code" :value="code"
placeholder="请输入验证码" placeholder="请输入验证码"
maxlength="4" maxlength="4"
@blur="input($event, 'code')" @blur="input($event, 'code')"
:key="dateKey.code"
/> />
<template v-if="code"> <template v-if="code">
<view class="icon" @click="code = ''"> <view class="icon" @click="code = ''">
...@@ -71,7 +73,10 @@ export default { ...@@ -71,7 +73,10 @@ export default {
count: '', count: '',
noSignIn: true, noSignIn: true,
readingStatus: true, readingStatus: true,
dateKey: null dateKey: {
mobile: 0,
code: 0
}
}; };
}, },
onLoad (options) { onLoad (options) {
...@@ -194,7 +199,7 @@ export default { ...@@ -194,7 +199,7 @@ export default {
numbers = value.match(/\d+/g) numbers = value.match(/\d+/g)
console.log(numbers) console.log(numbers)
this[key] = numbers ? numbers.join('') : '' this[key] = numbers ? numbers.join('') : ''
this.dateKey = Date.now() this.dateKey[key] = Date.now()
}, 0) }, 0)
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!