add
This commit is contained in:
parent
4368d5965a
commit
d03a1eecfc
|
@ -16,17 +16,16 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class='card'>
|
<view class='card'>
|
||||||
<!-- type='password' -->
|
|
||||||
<view @click="showKeyBorad=true,type=1">
|
<view @click="showKeyBorad=true,type=1">
|
||||||
<up-input style="pointer-events: none;" v-model="form.password" placeholder="请输入你的密码" border="none"
|
<up-input style="pointer-events: none;" type='password' v-model="form.password" placeholder="请输入你的密码"
|
||||||
readonly></up-input>
|
border="none" readonly></up-input>
|
||||||
</view>
|
</view>
|
||||||
<view style="margin: 30rpx 0;">
|
<view style="margin: 30rpx 0;">
|
||||||
<up-line color="#D3E3FD"></up-line>
|
<up-line color="#D3E3FD"></up-line>
|
||||||
</view>
|
</view>
|
||||||
<view @click="showKeyBorad=true,type=2">
|
<view @click="showKeyBorad=true,type=2">
|
||||||
<up-input style="pointer-events: none;" v-model="form.rePassword" placeholder="请再次输入你的密码" border="none"
|
<up-input style="pointer-events: none;" type='password' v-model="form.rePassword" placeholder="请再次输入你的密码"
|
||||||
readonly></up-input>
|
border="none" readonly></up-input>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
@ -65,12 +64,11 @@
|
||||||
return regex.test(phone) ? true : false
|
return regex.test(phone) ? true : false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const getCode = async () => {
|
const getCode = async () => {
|
||||||
if (!checkPhone(form.phone)) return uni.$u.toast('请输入正确的手机号')
|
if (!checkPhone(form.phone)) return uni.$u.toast('请输入正确的手机号')
|
||||||
await getMassageCode()
|
await getMassageCode()
|
||||||
flag.value = false
|
flag.value = false
|
||||||
cutDown.value = 10
|
cutDown.value = 60
|
||||||
let timer = setInterval(() => {
|
let timer = setInterval(() => {
|
||||||
cutDown.value--
|
cutDown.value--
|
||||||
if (cutDown.value <= 0) clearInterval(timer)
|
if (cutDown.value <= 0) clearInterval(timer)
|
||||||
|
@ -103,6 +101,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// 键盘事件结束
|
// 键盘事件结束
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const submit = async () => {
|
const submit = async () => {
|
||||||
if (!form.code) return uni.$u.toast('请输入验证码');
|
if (!form.code) return uni.$u.toast('请输入验证码');
|
||||||
if (form.password !== form.rePassword) return uni.$u.toast('两次密码不一致');
|
if (form.password !== form.rePassword) return uni.$u.toast('两次密码不一致');
|
||||||
|
|
Loading…
Reference in New Issue