| | |
| | | <div class="title textColor">{{ $t('注册') }}</div> |
| | | <div class="flex re-tab"> |
| | | <!-- <div class="textColor1" :class="activeIndex == 0 ? 'active' : ''" @click="changeIndex(0)">{{ $t('账号') }}</div>--> |
| | | <div class="textColor1" :class="activeIndex == 1 ? 'active' : ''" @click="changeIndex(1)">{{ $t('邮箱') }}</div> |
| | | <div class="textColor1" :class="activeIndex == 1 ? 'active' : ''" @click="changeIndex(1)">{{ $t('个性号码') }}</div> |
| | | <!-- <div class="textColor1" :class="activeIndex == 2 ? 'active' : ''" @click="changeIndex(2)">{{ $t('手机号') }}</div> --> |
| | | </div> |
| | | <ExInput :label="getRegType(activeIndex, true)" :placeholderText="getRegType(activeIndex, false)" v-model.trim="username" |
| | |
| | | |
| | | <ExInput :label="$t('设置密码')" :placeholderText="$t('密码(6-12个字符)')" v-model="password" typeText="password" /> |
| | | <ExInput :label="$t('确认密码')" :placeholderText="$t('请确认密码')" v-model="repassword" typeText="password" /> |
| | | <ExInput :label="$t('邀请码(选填)')" :placeholderText="$t('请输入邀请码')" v-model="invitCode" :clearBtn="false" /> |
| | | <!-- <ExInput :label="$t('邀请码(选填)')" :placeholderText="$t('请输入邀请码')" v-model="invitCode" :clearBtn="false" /> --> |
| | | <div class="protocol textColor"> |
| | | <i @click="agreeProt"> |
| | | <img v-show="agree" src="../../assets/image/login/prot2.png" alt="" /> |
| | |
| | | case 0: |
| | | return bFlag ? this.$t('账号') : this.$t('请输入账号'); |
| | | case 1: |
| | | return bFlag ? this.$t('邮箱') : this.$t('请输入邮箱'); |
| | | return bFlag ? this.$t('个性号码') : this.$t('个性号码'); |
| | | case 2: |
| | | return bFlag ? this.$t('手机号') : this.$t('请输入手机号'); |
| | | } |
| | |
| | | // return |
| | | // } |
| | | // } |
| | | if(this.invitCode ==''){ |
| | | this.$toast(this.$t('请输入邀请码')); |
| | | return |
| | | } |
| | | // if(this.invitCode ==''){ |
| | | // this.$toast(this.$t('请输入邀请码')); |
| | | // return |
| | | // } |
| | | switch (this.activeIndex) { |
| | | case 0: |
| | | { |
| | |
| | | break; |
| | | } |
| | | case 1: |
| | | { |
| | | let match = this.username.search(/@/); |
| | | if (this.username == '' || match == -1) { |
| | | this.$toast(this.$t('请输入正确的邮箱地址')); |
| | | return; |
| | | } |
| | | break; |
| | | } |
| | | // { |
| | | // let match = this.username.search(/@/); |
| | | // if (this.username == '' || match == -1) { |
| | | // this.$toast(this.$t('请输入正确的邮箱地址')); |
| | | // return; |
| | | // } |
| | | // break; |
| | | // } |
| | | case 2: |
| | | { |
| | | if (this.username == '') { |
| | |
| | | this.$router.push('/setFond') |
| | | } |
| | | else { |
| | | this.$router.push({ name: 'verify', query: { type: this.activeIndex, account: this.activeIndex == 1 ? this.username : `${this.username}` } }) |
| | | this.$router.push({ name: 'login' }) |
| | | // 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('网络超时!')); } |