xbx #134

Merged
theluyuan merged 34 commits from xbx into master 2020-11-18 06:56:15 +00:00
Showing only changes of commit 5b4a1efb39 - Show all commits

View File

@ -279,8 +279,9 @@ export default defineComponent({
* 点击获取验证码 触发60S倒计时
*/
let lock = false;
const getcode: () => void = () => {
const getcode = async () => {
console.log(11111);
if (lock) {
return;
}
@ -288,6 +289,11 @@ export default defineComponent({
message.error(lan.$t('shoujihaoweikong'));
return;
}
const iszc = await checkuser({phone: phone.value.phone})
if(iszc.code == 0){
message.error(lan.$t('zhanghaocunzai'))
return ;
}
lock = true;
sendsms(phone.value.quhao, phone.value.phone);
const timestep = setInterval(() => {
@ -374,11 +380,7 @@ export default defineComponent({
);
if (res) {
const iszc = await checkuser({phone: phone.value.phone})
if(iszc.code == 0){
message.error(lan.$t('zhanghaocunzai'))
return ;
}
stepnow.value = e;
}