This commit is contained in:
zmj 2024-06-21 15:27:09 +08:00
parent 4368d5965a
commit d03a1eecfc
1 changed files with 8 additions and 7 deletions

View File

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