| | |
| | | break; |
| | | } |
| | | } |
| | | Axios.registerUser({ |
| | | username: (this.activeIndex == 0 || this.activeIndex == 1) ? this.username : `${this.username}`, |
| | | password: this.password, |
| | | re_password: this.repassword, |
| | | type: this.type, |
| | | usercode: this.invitCode, |
| | | }).then((res) => { |
| | | this.GET_USERINFO(res.data) |
| | | if (this.activeIndex == 0||this.activeIndex == 2) { |
| | | this.$router.push('/setFond') |
| | | } |
| | | else { |
| | | this.$router.push({ name: 'verify', query: { type: this.activeIndex, account: this.activeIndex == 1 ? this.username : `${this.username}` } }) |
| | | } |
| | | }).catch((error) => { |
| | | if (error.code === 'ECONNABORTED') { this.$toast(this.$t('网络超时!')); } |
| | | else if (error.msg !== undefined) { this.$toast(this.$t(error.msg)); } |
| | | }); |
| | | c |
| | | } |
| | | } |
| | | } |