修改了验证
This commit is contained in:
parent
5b1f165528
commit
5b4a1efb39
@ -279,8 +279,9 @@ export default defineComponent({
|
|||||||
* 点击获取验证码 触发60S倒计时
|
* 点击获取验证码 触发60S倒计时
|
||||||
*/
|
*/
|
||||||
let lock = false;
|
let lock = false;
|
||||||
const getcode: () => void = () => {
|
const getcode = async () => {
|
||||||
console.log(11111);
|
console.log(11111);
|
||||||
|
|
||||||
if (lock) {
|
if (lock) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -288,6 +289,11 @@ export default defineComponent({
|
|||||||
message.error(lan.$t('shoujihaoweikong'));
|
message.error(lan.$t('shoujihaoweikong'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
const iszc = await checkuser({phone: phone.value.phone})
|
||||||
|
if(iszc.code == 0){
|
||||||
|
message.error(lan.$t('zhanghaocunzai'))
|
||||||
|
return ;
|
||||||
|
}
|
||||||
lock = true;
|
lock = true;
|
||||||
sendsms(phone.value.quhao, phone.value.phone);
|
sendsms(phone.value.quhao, phone.value.phone);
|
||||||
const timestep = setInterval(() => {
|
const timestep = setInterval(() => {
|
||||||
@ -374,11 +380,7 @@ export default defineComponent({
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (res) {
|
if (res) {
|
||||||
const iszc = await checkuser({phone: phone.value.phone})
|
|
||||||
if(iszc.code == 0){
|
|
||||||
message.error(lan.$t('zhanghaocunzai'))
|
|
||||||
return ;
|
|
||||||
}
|
|
||||||
stepnow.value = e;
|
stepnow.value = e;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user