| | |
| | | <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"> |
| | |
| | | this.userPassword !== "" && |
| | | this.phone !== "" && |
| | | this.userPassword == this.rePassword |
| | | // && this.userName != "" |
| | | && this.userName != "" |
| | | ) { |
| | | this.btnClass = true; |
| | | } else { |
| | |
| | | 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) { |