From be54a44884517beddf4eb88fa81763ab14e8757f Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Wed, 04 Sep 2024 22:45:24 +0800
Subject: [PATCH] 9.4问题处理
---
src/page/register/index.vue | 33 +++++++++++++++++----------------
1 files changed, 17 insertions(+), 16 deletions(-)
diff --git a/src/page/register/index.vue b/src/page/register/index.vue
index 93581b9..d72412f 100644
--- a/src/page/register/index.vue
+++ b/src/page/register/index.vue
@@ -6,7 +6,7 @@
<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"
@@ -14,7 +14,7 @@
<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="" />
@@ -96,7 +96,7 @@
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('请输入手机号');
}
@@ -143,10 +143,10 @@
// return
// }
// }
- if(this.invitCode ==''){
- this.$toast(this.$t('请输入邀请码'));
- return
- }
+ // if(this.invitCode ==''){
+ // this.$toast(this.$t('请输入邀请码'));
+ // return
+ // }
switch (this.activeIndex) {
case 0:
{
@@ -161,14 +161,14 @@
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 == '') {
@@ -242,7 +242,8 @@
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('网络超时!')); }
--
Gitblit v1.9.3