lxf
2025-04-21 0d5daf444d5b2338bf5c2a19630bd0333a6b852a
src/page/register/index.vue
@@ -28,7 +28,11 @@
      @selectArea="onSelectArea"
      :icon="icon"
    />
    <ExInput
      :label="$t('手机号')"
      :placeholderText="$t('请输入手机号')"
      v-model="phone"
    />
    <ExInput
      :label="$t('设置密码')"
      :placeholderText="$t('密码(6-12个字符)')"
@@ -49,7 +53,7 @@
    />
    <ExInput
      :label="$t('确认资金密码')"
      :placeholderText="$t('确认资金密码')"
      :placeholderText="$t('请确认资金密码')"
      v-model="resafeword"
      typeText="password"
    />
@@ -144,6 +148,7 @@
      username: "",
      password: "",
      repassword: "",
      phone: "",
      resafeword: "",
      safeword: "",
      invitCode: "", //邀请码
@@ -328,6 +333,7 @@
          this.activeIndex == 0 || this.activeIndex == 1
            ? this.username
            : `${this.username}`,
        phone: this.phone,
        password: this.password,
        re_password: this.repassword,
        re_safeword: this.resafeword,
@@ -338,19 +344,19 @@
      })
        .then((res) => {
          this.GET_USERINFO(res.data);
        //   if (this.activeIndex == 0 || this.activeIndex == 2) {
            this.$router.push("/finish");
        //   } else {
            // this.$router.push('/userCenter')
            // this.$router.push({
            //   name: "verify",
            //   query: {
            //     type: this.activeIndex,
            //     account:
            //       this.activeIndex == 1 ? this.username : `${this.username}`,
            //   },
            // });
        //   }
          //   if (this.activeIndex == 0 || this.activeIndex == 2) {
          this.$router.push("/finish");
          //   } else {
          // this.$router.push('/userCenter')
          // this.$router.push({
          //   name: "verify",
          //   query: {
          //     type: this.activeIndex,
          //     account:
          //       this.activeIndex == 1 ? this.username : `${this.username}`,
          //   },
          // });
          //   }
        })
        .catch((error) => {
          if (error.code === "ECONNABORTED") {