tremble 5 rokov pred
rodič
commit
7c146d5204

+ 6 - 0
pc/src/page/layout/aside/temp/ltemp/register.vue

@@ -98,6 +98,12 @@ export default {
       // if (!reg.phone.test(this.phone)) {
       //   return
       // }
+      let resp = await this.$http
+        .post('/sso/user/checkUser', {phoneNum: this.phone})
+
+      if (resp.data.code === 0) {
+        return this.$toast.show('warn', this.langToast[3008])
+      }
       let res = await this.$store.dispatch('getAuthCode', {
         phone: this.phone,
         code: Number(this.codeActive[1].substr(1))