|
@@ -7,7 +7,8 @@
|
|
|
@click="closeWin"
|
|
|
/>
|
|
|
<div class="title">
|
|
|
- <p>忘记密码</p>
|
|
|
+ <!-- 忘记密码 -->
|
|
|
+ <p>{{ $t("Key20") }}</p>
|
|
|
</div>
|
|
|
<!-- 先择老师还是学生 -->
|
|
|
<div class="teacherAndStudent">
|
|
@@ -15,13 +16,15 @@
|
|
|
@click="selectTS('teacher')"
|
|
|
:class="TorS == 'teacher' ? 'select' : ''"
|
|
|
>
|
|
|
- <p>我是老师</p>
|
|
|
+ <!-- 我是老师 -->
|
|
|
+ <p>{{ $t("Key11") }}</p>
|
|
|
</div>
|
|
|
<div
|
|
|
@click="selectTS('student')"
|
|
|
:class="TorS == 'teacher' ? '' : 'select'"
|
|
|
>
|
|
|
- <p>我是学生</p>
|
|
|
+ <!-- <p>我是学生</p> -->
|
|
|
+ <p>{{ $t("Key12") }}</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="main">
|
|
@@ -44,7 +47,7 @@
|
|
|
@input="trimUsername"
|
|
|
@change="ChangeUsername"
|
|
|
:class="accountError ? 'inputError' : 'input'"
|
|
|
- :placeholder="loginType == '手机' ? '手机号' : '邮箱'"
|
|
|
+ :placeholder="loginType == '手机' ? $t('Key85') : $t('Key35')"
|
|
|
/>
|
|
|
<!-- <img
|
|
|
@click="showLoginType"
|
|
@@ -55,11 +58,11 @@
|
|
|
<div class="selectLoginType" v-show="ShowloginType">
|
|
|
<div @click="selectLoginType('邮箱')">
|
|
|
<img src="../../assets/login/singin6.png" alt="" />
|
|
|
- <span> EMAIL </span>
|
|
|
+ <span> {{ $t("Key34").toUpperCase() }} </span>
|
|
|
</div>
|
|
|
<div @click="selectLoginType('手机')">
|
|
|
<img src="../../assets/login/phone2.png" alt="" />
|
|
|
- <span> PHONE </span>
|
|
|
+ <span> {{ $t("Key85").toUpperCase() }} </span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -76,7 +79,7 @@
|
|
|
class="input"
|
|
|
type="text"
|
|
|
maxlength="6"
|
|
|
- placeholder="请输入验证码"
|
|
|
+ :placeholder="$t('Key37')"
|
|
|
/>
|
|
|
<button v-if="VerificationCodeShow" class="waitTime">
|
|
|
{{ time + "s" }}
|
|
@@ -89,7 +92,7 @@
|
|
|
language_type == 'AR' ? 'marginRight' : '',
|
|
|
]"
|
|
|
>
|
|
|
- 获取验证码
|
|
|
+ <!-- 获取 -->{{ $t("Key542") }}
|
|
|
</button>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -103,7 +106,7 @@
|
|
|
<input
|
|
|
:type="parsswordType"
|
|
|
:class="passwordError ? 'inputError' : 'input'"
|
|
|
- placeholder="密码"
|
|
|
+ :placeholder="$t('Key14')"
|
|
|
@change="changeParssword"
|
|
|
v-model="password"
|
|
|
@input="trimPassword"
|
|
@@ -123,7 +126,8 @@
|
|
|
alt=""
|
|
|
/>
|
|
|
<p :class="passwordError ? 'textRed' : ''">
|
|
|
- 请输入8-12位大写字母、小写字母、数字和组合。
|
|
|
+ <!-- 请输入8-12位大写字母、小写字母、数字和组合。 -->
|
|
|
+ {{ $t("Key121") }}
|
|
|
</p>
|
|
|
</div>
|
|
|
<div>
|
|
@@ -135,7 +139,7 @@
|
|
|
<input
|
|
|
:type="twoPasswordType"
|
|
|
:class="passwordErrorTwo ? 'inputError' : 'input'"
|
|
|
- placeholder="确认密码"
|
|
|
+ :placeholder="$t('Key16')"
|
|
|
v-model="twopassword"
|
|
|
@change="Changetwopassword"
|
|
|
@input="trimtwopassword"
|
|
@@ -155,7 +159,8 @@
|
|
|
alt=""
|
|
|
/>
|
|
|
<p :class="passwordErrorTwo ? 'textRed' : ''">
|
|
|
- 请再次输入密码。这两个项必须相同。
|
|
|
+ <!-- 请再次输入密码。这两个项必须相同。 -->
|
|
|
+ {{ $t("Key18") }}
|
|
|
</p>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -163,7 +168,10 @@
|
|
|
<div class="btnLogin">
|
|
|
<div class="inner">
|
|
|
<img v-if="isLogin" src="../../assets/login/Ellipse87.png" alt="" />
|
|
|
- <p @click="gotoLogin" v-else>完成</p>
|
|
|
+ <p @click="gotoLogin" v-else>
|
|
|
+ {{ $t("Key82") }}
|
|
|
+ <!-- 完成 -->
|
|
|
+ </p>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -239,7 +247,7 @@ export default {
|
|
|
this.EmailCorrect = reg.test(this.phone_or_email);
|
|
|
if (!this.EmailCorrect) {
|
|
|
this.accountError = true;
|
|
|
- this.$message.error("邮箱格式不正确");
|
|
|
+ this.$message.error(this.$t("Key545"));
|
|
|
} else {
|
|
|
this.accountError = false;
|
|
|
}
|
|
@@ -248,7 +256,7 @@ export default {
|
|
|
this.EmailCorrect = reg.test(this.phone_or_email);
|
|
|
if (!this.EmailCorrect) {
|
|
|
this.accountError = true;
|
|
|
- this.$message.error("电话号码不正确");
|
|
|
+ this.$message.error("手机号码不正确");
|
|
|
} else {
|
|
|
this.accountError = false;
|
|
|
}
|
|
@@ -279,7 +287,7 @@ export default {
|
|
|
console.log(res);
|
|
|
});
|
|
|
} else {
|
|
|
- this_.$message.warning("请先输入电子邮箱或手机号码");
|
|
|
+ this_.$message.warning(this.$t("Key546"));
|
|
|
}
|
|
|
},
|
|
|
// 验证码的验证只能输入数字
|
|
@@ -337,7 +345,7 @@ export default {
|
|
|
// 注册
|
|
|
gotoLogin() {
|
|
|
if (this.phone_or_email == "") {
|
|
|
- this.$message.warning("请输入邮箱。");
|
|
|
+ this.$message.warning(this.$Key("Key35"));
|
|
|
return;
|
|
|
}
|
|
|
if (this.password == "") {
|
|
@@ -345,15 +353,16 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
if (this.verification_code == "") {
|
|
|
- this.$message.warning("请输入验证码。");
|
|
|
+ //请输入验证码
|
|
|
+ this.$message.warning(this.$t("Key37"));
|
|
|
return;
|
|
|
}
|
|
|
if (this.passwordError) {
|
|
|
- this.$message.warning("请重新输入密码。密码格式不对");
|
|
|
+ this.$message.warning("请重新输入密码,密码格式不对");
|
|
|
return;
|
|
|
}
|
|
|
if (this.twopassword != this.password) {
|
|
|
- this.$message.warning("请输入确认密码。两个条目必须相同");
|
|
|
+ this.$message.warning(this.$t("Key544"));
|
|
|
return;
|
|
|
}
|
|
|
this.isLogin = true;
|
|
@@ -367,7 +376,7 @@ export default {
|
|
|
};
|
|
|
getLogin(MethodName, data)
|
|
|
.then((res) => {
|
|
|
- this.$message.success("密码修改成功”");
|
|
|
+ this.$message.success(this.$t("Key501"));
|
|
|
this.changeLoginReg("login");
|
|
|
this.isLogin = false;
|
|
|
this.changeLoginType(this.TorS);
|