跳转首页 注册报错
This commit is contained in:
@@ -120,7 +120,7 @@
|
||||
import { computed, defineComponent, onMounted, reactive, ref } from "vue";
|
||||
import LoginTab from "@/components/login/LoginTab.vue";
|
||||
import NavTop from "@/components/NavTop.vue"
|
||||
import { checksmscode, getquhaolist, getwebvideolist, loginpass, sendsms } from '@/api';
|
||||
import { checksmscode, checkuser, getquhaolist, getwebvideolist, loginpass, sendsms } from '@/api';
|
||||
import { message } from 'ant-design-vue';
|
||||
import router from '@/router';
|
||||
import { useI18n } from '@/utils/i18n';
|
||||
@@ -181,7 +181,7 @@ export default defineComponent({
|
||||
* 点击获取验证码 触发倒计时
|
||||
*/
|
||||
let lock=false
|
||||
const getcode: () => void = () => {
|
||||
async function getcode() {
|
||||
console.log(phone.value);
|
||||
if (lock) {
|
||||
console.log("lock")
|
||||
@@ -191,6 +191,13 @@ export default defineComponent({
|
||||
message.error(lan.$t('shoujihaoweikong'));
|
||||
return;
|
||||
}
|
||||
const iszc: any = await checkuser({phone: phone.value})
|
||||
if(iszc.data){
|
||||
if(iszc.data.type == 0){
|
||||
message.error(lan.$t("yizhucexuesheng"))
|
||||
}
|
||||
return ;
|
||||
}
|
||||
lock = true;
|
||||
console.log(myquhao.value,"quhao")
|
||||
sendsms(myquhao.value, phone.value);
|
||||
@@ -207,7 +214,7 @@ export default defineComponent({
|
||||
clearInterval(timestep);
|
||||
}
|
||||
}, 1000);
|
||||
};
|
||||
}
|
||||
function getquhao(e?: any){
|
||||
console.log(e)
|
||||
myquhao.value = e.toString()
|
||||
|
||||
Reference in New Issue
Block a user