diff --git a/src/i18n/en.ts b/src/i18n/en.ts index dabf9ae..eb01cae 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -302,6 +302,7 @@ export default { cshipinyaoqiu1: "The video should be no longer than 10 minutes", cshipinyaoqiu2: "Video size cannot exceed 500M", shangchuanwancheng: "Please wait for the file to be uploaded", + zhanghaocunzai: "account already exists", shichangtishi:"", renshutishi: '', tixianzhu: "", diff --git a/src/i18n/zh.ts b/src/i18n/zh.ts index c8a8520..cdb9dfb 100644 --- a/src/i18n/zh.ts +++ b/src/i18n/zh.ts @@ -302,6 +302,7 @@ export default { cshipinyaoqiu1: "视频长度不能超过10分钟", cshipinyaoqiu2: "视频大小不能超过500m", shangchuanwancheng: "请等待文件上传完成", + zhanghaocunzai: "帐号已存在", shichangtishi:"", renshutishi: '', tixianzhu:"", diff --git a/src/views/login/Sign.vue b/src/views/login/Sign.vue index 61a38cb..12a655a 100644 --- a/src/views/login/Sign.vue +++ b/src/views/login/Sign.vue @@ -225,6 +225,7 @@ import { defineComponent, onMounted, reactive, ref, toRaw } from "vue"; import NavTop from "@/components/NavTop.vue"; import { checksmscode, + checkuser, getquhaolist, getwillsay, interests, @@ -371,7 +372,13 @@ export default defineComponent({ phone.value.quhao + phone.value.phone, phone.value.code ); + if (res) { + const iszc = await checkuser({phone: phone.value.phone}) + if(iszc.code == 0){ + message.error(lan.$t('zhanghaocunzai')) + return ; + } stepnow.value = e; }