1
admin
2026-01-12 49f6b128e85e250223a12b44535583bdeb5c90fa
1
1 files modified
26 ■■■■ changed files
src/page/login/register.vue 26 ●●●● patch | view | raw | blame | history
src/page/login/register.vue
@@ -66,10 +66,10 @@
        <input :placeholder="$t('jy312')" v-model="rePassword" type="password" />
      </div>
      <!-- <div class="formDemos">
      <div class="formDemos">
        <span class="pwdIcons"></span>
        <input :placeholder="$t('jy313')" v-model="userName" />
      </div> -->
      </div>
    </div>
    <div class="loginBtn" v-loading="loginBtn" @click="gook">
@@ -166,7 +166,7 @@
        this.userPassword !== "" &&
        this.phone !== "" &&
        this.userPassword == this.rePassword
        // && this.userName != ""
        && this.userName != ""
      ) {
        this.btnClass = true;
      } else {
@@ -330,22 +330,22 @@
          Toast(this.$t("hj19"));
          this.loginBtn = false;
        } 
        // else if (isNull(this.userName)) {
        //   // this.texts = this.$t('hj33')
        //   // this.alertShow = true
        //   // setTimeout(() => {
        //   //   this.alertShow = false
        //   // }, 2000)
        //   Toast(this.$t("hj33"));
        //   this.loginBtn = false;
        // }
        else if (isNull(this.userName)) {
          // this.texts = this.$t('hj33')
          // this.alertShow = true
          // setTimeout(() => {
          //   this.alertShow = false
          // }, 2000)
          Toast(this.$t("hj33"));
          this.loginBtn = false;
        }
        else {
          let opts = {
            // agentCode:'4023', // SR330001
            phone: this.phone,
            // yzmCode: this.yzmCode,
            userPwd: this.userPassword,
            // agentCode: this.userName
            agentCode: this.userName
          };
          let data = await api.register(opts);
          if (data.status === 0) {