| | |
| | | /> |
| | | <ExInput |
| | | :placeholderText="$t('请确认密码')" |
| | | v-model="form.rePassword" |
| | | v-model="form.re_password" |
| | | typeText="password" |
| | | /> |
| | | <ExInput |
| | |
| | | code: "", |
| | | username: "", |
| | | password: "", |
| | | rePassword: "", |
| | | re_password: "", |
| | | usercode: "", |
| | | }, |
| | | show: false, |
| | |
| | | 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 = ""; |
| | |
| | | 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; |
| | | } |
| | |
| | | this.$toast(this.$t("请输入邀请码")); |
| | | return; |
| | | } |
| | | |
| | | if (!this.agree) { |
| | | this.$toast(this.$t("请同意服务条款")); |
| | | return; |
| | |
| | | Axios.registerUser({ |
| | | ...this.form, |
| | | type: 2, |
| | | em: this.form.email, |
| | | }) |
| | | .then((res) => { |
| | | console.log(res, "======="); |