Commit 6124a1be by 李伟康

commit 提交

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