1
zzzz
2024-04-23 f42aa899f6264062d66a53e41e8954468725aa7a
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, "=======");