dcc
2024-06-07 d5381ec06ab5f549fade867c3a874de613bdd5d4
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,21 @@
    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,
        phone: this.form.phone,
      })
        .then(() => {
          this.registerApi();
        })
        .catch((err) => {
          //   this.$toast(this.$t(res.msg));
        });
    },
    onFail() {
      this.msg = "";
@@ -235,7 +246,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 +254,6 @@
        this.$toast(this.$t("请输入邀请码"));
        return;
      }
      if (!this.agree) {
        this.$toast(this.$t("请同意服务条款"));
        return;
@@ -253,10 +263,15 @@
    async registerApi() {
      this.$store.state.user.userInfo.token = undefined;
      console.log({
        ...this.form,
        type: 0,
        em: this.form.email,
      });
      Axios.registerUser({
        ...this.form,
        type: 2,
        type: 4,
        em: this.form.email,
      })
        .then((res) => {
          console.log(res, "=======");