From f42aa899f6264062d66a53e41e8954468725aa7a Mon Sep 17 00:00:00 2001
From: zzzz <690498789@qq.com>
Date: Tue, 23 Apr 2024 00:16:26 +0800
Subject: [PATCH] 1

---
 src/page/register/index.vue |   24 +++++++++++++++++-------
 1 files changed, 17 insertions(+), 7 deletions(-)

diff --git a/src/page/register/index.vue b/src/page/register/index.vue
index f3355e1..5953ca2 100644
--- a/src/page/register/index.vue
+++ b/src/page/register/index.vue
@@ -30,7 +30,7 @@
     />
     <ExInput
       :placeholderText="$t('请确认密码')"
-      v-model="form.rePassword"
+      v-model="form.re_password"
       typeText="password"
     />
     <ExInput
@@ -114,7 +114,7 @@
         code: "",
         username: "",
         password: "",
-        rePassword: "",
+        re_password: "",
         usercode: "",
       },
       show: false,
@@ -193,10 +193,20 @@
     onClose() {
       console.log("onClose");
     },
-    onSuccess() {
-      console.log("onSuccess");
-      this.registerApi();
+    async onSuccess() {
       this.show = false;
+      this.registerApi();
+      //   AxiosuserCenter.invitationCode({
+      //     email: this.form.email,
+      //     verificationCode: this.form.code,
+      //     code: this.form.usercode,
+      //   }).then((res) => {
+      //     if (res.code == 0) {
+      //       this.registerApi();
+      //     } else {
+      //       this.$toast(this.$t(res.msg));
+      //     }
+      //   });
     },
     onFail() {
       this.msg = "";
@@ -235,7 +245,7 @@
         this.$toast(this.$t("请输入密码"));
         return;
       }
-      if (this.form.password !== this.form.rePassword) {
+      if (this.form.password !== this.form.re_password) {
         this.$toast(this.$t("密码不一致"));
         return;
       }
@@ -243,7 +253,6 @@
         this.$toast(this.$t("请输入邀请码"));
         return;
       }
-
       if (!this.agree) {
         this.$toast(this.$t("请同意服务条款"));
         return;
@@ -257,6 +266,7 @@
       Axios.registerUser({
         ...this.form,
         type: 2,
+        em: this.form.email,
       })
         .then((res) => {
           console.log(res, "=======");

--
Gitblit v1.9.3