|
@@ -5,7 +5,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="lp_right">
|
|
<div class="lp_right">
|
|
<div v-if="allowOrgList.findIndex((i) => i.area) == -1" @click="backVersion" class="Version">
|
|
<div v-if="allowOrgList.findIndex((i) => i.area) == -1" @click="backVersion" class="Version">
|
|
- 返回旧版
|
|
|
|
|
|
+ {{ lang.Returnoldversion }}
|
|
</div>
|
|
</div>
|
|
<div class="lp_r_box">
|
|
<div class="lp_r_box">
|
|
<div class="lp_r_b_logo">
|
|
<div class="lp_r_b_logo">
|
|
@@ -24,7 +24,7 @@
|
|
<span v-if="showLoginMessage.name">{{
|
|
<span v-if="showLoginMessage.name">{{
|
|
showLoginMessage.name
|
|
showLoginMessage.name
|
|
}}</span>
|
|
}}</span>
|
|
- <span style="margin: 0" v-else>可可乐博智慧教育平台</span>
|
|
|
|
|
|
+ <span style="margin: 0" v-else>{{ lang.KekeleboPlatform }}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div v-if="steps == 2" style="cursor: pointer" @click="steps = 1">
|
|
<div v-if="steps == 2" style="cursor: pointer" @click="steps = 1">
|
|
@@ -34,9 +34,9 @@
|
|
</div>
|
|
</div>
|
|
<template v-if="steps == 1">
|
|
<template v-if="steps == 1">
|
|
<span v-if="['default', 'weChat', 'orgL', 'code'].includes(loginType)"
|
|
<span v-if="['default', 'weChat', 'orgL', 'code'].includes(loginType)"
|
|
- >登录</span
|
|
|
|
|
|
+ >{{ lang.login }}</span
|
|
>
|
|
>
|
|
- <span v-if="['bind'].includes(loginType)">绑定账号</span>
|
|
|
|
|
|
+ <span v-if="['bind'].includes(loginType)">{{ lang.Bindaccount }}</span>
|
|
<div class="lp_r_b_formArea">
|
|
<div class="lp_r_b_formArea">
|
|
<!-- 微信绑定,账号登录,组织号登录 -->
|
|
<!-- 微信绑定,账号登录,组织号登录 -->
|
|
<div
|
|
<div
|
|
@@ -48,11 +48,11 @@
|
|
style="position: relative"
|
|
style="position: relative"
|
|
v-if="loginType == 'orgL'"
|
|
v-if="loginType == 'orgL'"
|
|
>
|
|
>
|
|
- <span>组织号</span>
|
|
|
|
|
|
+ <span>{{ lang.OrganizationNumber }}</span>
|
|
<div>
|
|
<div>
|
|
<input
|
|
<input
|
|
type="text"
|
|
type="text"
|
|
- placeholder="请输入组织号"
|
|
|
|
|
|
+ :placeholder="lang.enterorgnumber"
|
|
v-model.trim="SuffixData"
|
|
v-model.trim="SuffixData"
|
|
@input="getSuffix"
|
|
@input="getSuffix"
|
|
/>
|
|
/>
|
|
@@ -67,16 +67,16 @@
|
|
"
|
|
"
|
|
v-if="SuffixData.trim()"
|
|
v-if="SuffixData.trim()"
|
|
>
|
|
>
|
|
- {{ orginfo.length ? orginfo[0].name : "该学校编号不存在" }}
|
|
|
|
|
|
+ {{ orginfo.length ? orginfo[0].name : lang.schoolnotexist }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="fa_i_item">
|
|
<div class="fa_i_item">
|
|
- <span>账号</span>
|
|
|
|
|
|
+ <span>{{ lang.account }}</span>
|
|
<div>
|
|
<div>
|
|
<!-- @change="getOrgData" -->
|
|
<!-- @change="getOrgData" -->
|
|
<input
|
|
<input
|
|
type="text"
|
|
type="text"
|
|
- placeholder="请输入账号"
|
|
|
|
|
|
+ :placeholder="lang.enteraccount"
|
|
v-model.trim="account"
|
|
v-model.trim="account"
|
|
@keyup.enter="loginFn"
|
|
@keyup.enter="loginFn"
|
|
/>
|
|
/>
|
|
@@ -84,11 +84,11 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="fa_i_item">
|
|
<div class="fa_i_item">
|
|
- <span>密码</span>
|
|
|
|
|
|
+ <span>{{ lang.password }}</span>
|
|
<div>
|
|
<div>
|
|
<input
|
|
<input
|
|
type="password"
|
|
type="password"
|
|
- placeholder="请输入密码"
|
|
|
|
|
|
+ :placeholder="lang.enterpassword"
|
|
v-model="password"
|
|
v-model="password"
|
|
@keyup.enter="loginFn"
|
|
@keyup.enter="loginFn"
|
|
/>
|
|
/>
|
|
@@ -103,15 +103,15 @@
|
|
<!-- 随机码登录 -->
|
|
<!-- 随机码登录 -->
|
|
<div class="fa_input" v-if="['code'].includes(loginType)">
|
|
<div class="fa_input" v-if="['code'].includes(loginType)">
|
|
<div class="fa_i_item" style="position: relative">
|
|
<div class="fa_i_item" style="position: relative">
|
|
- <span v-if="prefixL == 'liyuan_'">选择校区</span>
|
|
|
|
- <span v-else>组织号</span>
|
|
|
|
|
|
+ <span v-if="prefixL == 'liyuan_'">{{ lang.SelectCampus }}</span>
|
|
|
|
+ <span v-else>{{ lang.OrganizationNumber }}</span>
|
|
<!-- v-if="prefixL == 'liyuan_'" -->
|
|
<!-- v-if="prefixL == 'liyuan_'" -->
|
|
<div v-if="prefixL == 'liyuan_'">
|
|
<div v-if="prefixL == 'liyuan_'">
|
|
<el-select
|
|
<el-select
|
|
v-loading="Codeloading"
|
|
v-loading="Codeloading"
|
|
@change="getSuffix"
|
|
@change="getSuffix"
|
|
v-model.trim="SuffixData"
|
|
v-model.trim="SuffixData"
|
|
- placeholder="请选择"
|
|
|
|
|
|
+ :placeholder="lang.Pleaseselect"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
v-for="item in CodeOptions"
|
|
v-for="item in CodeOptions"
|
|
@@ -125,7 +125,7 @@
|
|
<div v-else>
|
|
<div v-else>
|
|
<input
|
|
<input
|
|
type="text"
|
|
type="text"
|
|
- placeholder="请输入组织号"
|
|
|
|
|
|
+ :placeholder="lang.enterorgnumber"
|
|
v-model.trim="SuffixData"
|
|
v-model.trim="SuffixData"
|
|
@input="getSuffix"
|
|
@input="getSuffix"
|
|
/>
|
|
/>
|
|
@@ -140,16 +140,16 @@
|
|
"
|
|
"
|
|
v-if="SuffixData.trim() && prefixL != 'liyuan_'"
|
|
v-if="SuffixData.trim() && prefixL != 'liyuan_'"
|
|
>
|
|
>
|
|
- {{ orginfo.length ? orginfo[0].name : "该学校编号不存在" }}
|
|
|
|
|
|
+ {{ orginfo.length ? orginfo[0].name : lang.schoolnotexist }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="fa_i_item">
|
|
<div class="fa_i_item">
|
|
- <span>随机码</span>
|
|
|
|
|
|
+ <span>{{ lang.randomcode }}</span>
|
|
<div>
|
|
<div>
|
|
<input
|
|
<input
|
|
type="text"
|
|
type="text"
|
|
- placeholder="请输入"
|
|
|
|
|
|
+ :placeholder="lang.Pleaseenter"
|
|
v-model.trim="icode"
|
|
v-model.trim="icode"
|
|
@keyup.enter="nextSteps"
|
|
@keyup.enter="nextSteps"
|
|
/>
|
|
/>
|
|
@@ -165,7 +165,7 @@
|
|
@click="nextSteps"
|
|
@click="nextSteps"
|
|
v-loading="loading"
|
|
v-loading="loading"
|
|
>
|
|
>
|
|
- 确定
|
|
|
|
|
|
+ {{ lang.confirm }}
|
|
</div>
|
|
</div>
|
|
<div
|
|
<div
|
|
class="lp_r_b_btn"
|
|
class="lp_r_b_btn"
|
|
@@ -173,21 +173,21 @@
|
|
@click="loginFn"
|
|
@click="loginFn"
|
|
v-loading="loading"
|
|
v-loading="loading"
|
|
>
|
|
>
|
|
- 登录
|
|
|
|
|
|
+ {{ lang.login }}
|
|
</div>
|
|
</div>
|
|
<div
|
|
<div
|
|
class="lp_r_b_btn"
|
|
class="lp_r_b_btn"
|
|
v-if="loginType == 'weChat'"
|
|
v-if="loginType == 'weChat'"
|
|
style="opacity: 0; cursor: default"
|
|
style="opacity: 0; cursor: default"
|
|
>
|
|
>
|
|
- 账号密码登录
|
|
|
|
|
|
+ {{ lang.Accpaslogin }}
|
|
</div>
|
|
</div>
|
|
<div class="btn_box" v-if="loginType == 'bind'">
|
|
<div class="btn_box" v-if="loginType == 'bind'">
|
|
<div class="lp_r_b_btn" @click="loginFn" v-loading="loading">
|
|
<div class="lp_r_b_btn" @click="loginFn" v-loading="loading">
|
|
- 确认绑定
|
|
|
|
|
|
+ {{ lang.Confirmbinding }}
|
|
</div>
|
|
</div>
|
|
<div class="lp_r_b_btn" @click="loginType = 'default'">
|
|
<div class="lp_r_b_btn" @click="loginType = 'default'">
|
|
- 返回登录
|
|
|
|
|
|
+ {{ lang.Returnlogin }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="lp_r_b_line">
|
|
<div class="lp_r_b_line">
|
|
@@ -195,14 +195,14 @@
|
|
v-if="['default', 'weChat', 'orgL', 'code'].includes(loginType)"
|
|
v-if="['default', 'weChat', 'orgL', 'code'].includes(loginType)"
|
|
>
|
|
>
|
|
<div></div>
|
|
<div></div>
|
|
- <span>其他登录方式</span>
|
|
|
|
|
|
+ <span>{{ lang.Otherlogin }}</span>
|
|
<div></div>
|
|
<div></div>
|
|
</template>
|
|
</template>
|
|
</div>
|
|
</div>
|
|
<div class="lp_r_b_iconBtn">
|
|
<div class="lp_r_b_iconBtn">
|
|
<div v-if="['default', 'weChat', 'orgL', 'code'].includes(loginType)" @click="getData">
|
|
<div v-if="['default', 'weChat', 'orgL', 'code'].includes(loginType)" @click="getData">
|
|
<!-- v-if="['default', 'weChat', 'orgL', 'code'].includes(loginType)" -->
|
|
<!-- v-if="['default', 'weChat', 'orgL', 'code'].includes(loginType)" -->
|
|
- <el-tooltip effect="dark" content="随机码登录" placement="bottom">
|
|
|
|
|
|
+ <el-tooltip effect="dark" :content="lang.Rancodelogin" placement="bottom">
|
|
<img
|
|
<img
|
|
:src="
|
|
:src="
|
|
loginType == 'code'
|
|
loginType == 'code'
|
|
@@ -221,7 +221,7 @@
|
|
allowOrgList.findIndex((i) => i.area) == -1
|
|
allowOrgList.findIndex((i) => i.area) == -1
|
|
"
|
|
"
|
|
>
|
|
>
|
|
- <el-tooltip effect="dark" content="组织号登录" placement="bottom">
|
|
|
|
|
|
+ <el-tooltip effect="dark" :content="lang.OrgIDLogin" placement="bottom">
|
|
<img
|
|
<img
|
|
style="width: 32px; object-fit: cover"
|
|
style="width: 32px; object-fit: cover"
|
|
:src="
|
|
:src="
|
|
@@ -238,7 +238,7 @@
|
|
@click="wechatLogin"
|
|
@click="wechatLogin"
|
|
v-if="['default', 'weChat', 'orgL', 'code'].includes(loginType)"
|
|
v-if="['default', 'weChat', 'orgL', 'code'].includes(loginType)"
|
|
>
|
|
>
|
|
- <el-tooltip effect="dark" content="微信登录" placement="bottom">
|
|
|
|
|
|
+ <el-tooltip effect="dark" :content="lang.WeChatLogin" placement="bottom">
|
|
<img
|
|
<img
|
|
:src="
|
|
:src="
|
|
loginType == 'weChat'
|
|
loginType == 'weChat'
|
|
@@ -256,7 +256,7 @@
|
|
>
|
|
>
|
|
<el-tooltip
|
|
<el-tooltip
|
|
effect="dark"
|
|
effect="dark"
|
|
- content="账号密码登录"
|
|
|
|
|
|
+ :content="lang.Accpaslogin"
|
|
placement="bottom"
|
|
placement="bottom"
|
|
>
|
|
>
|
|
<img
|
|
<img
|
|
@@ -272,7 +272,7 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<div class="stuPage" v-if="steps == 2">
|
|
<div class="stuPage" v-if="steps == 2">
|
|
- <div>请选择您的姓名</div>
|
|
|
|
|
|
+ <div>{{ lang.choosename }}</div>
|
|
<div class="stuList">
|
|
<div class="stuList">
|
|
<!-- <span v-for="i in classJuri" :key="i.userid">{{ i.name }}</span> -->
|
|
<!-- <span v-for="i in classJuri" :key="i.userid">{{ i.name }}</span> -->
|
|
<!-- <div v-for="i in 10" :key="i" @click="selAcc(i)">yym</div> -->
|
|
<!-- <div v-for="i in 10" :key="i" @click="selAcc(i)">yym</div> -->
|
|
@@ -289,9 +289,9 @@
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div v-if="!classJuri.length" class="none">此班级暂无学生</div>
|
|
|
|
|
|
+ <div v-if="!classJuri.length" class="none">{{ lang.nostudents }}</div>
|
|
<div class="lp_r_b_btn" @click="loginCode" v-loading="loading">
|
|
<div class="lp_r_b_btn" @click="loginCode" v-loading="loading">
|
|
- 确定登录
|
|
|
|
|
|
+ {{ lang.Confirmlogin }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -448,7 +448,7 @@ export default {
|
|
if (this.loading) return;
|
|
if (this.loading) return;
|
|
// loginType == orgL为组织号登录
|
|
// loginType == orgL为组织号登录
|
|
if (this.loginType == "orgL" && !this.org)
|
|
if (this.loginType == "orgL" && !this.org)
|
|
- return this.$message.error("请输入组织号");
|
|
|
|
|
|
+ return this.$message.error(this.lang.enterorgnumber);
|
|
|
|
|
|
// if (this.loginType != 'orgL') {
|
|
// if (this.loginType != 'orgL') {
|
|
if ((await this.getOrgData()) == 2) return (this.loginType = "orgL");
|
|
if ((await this.getOrgData()) == 2) return (this.loginType = "orgL");
|
|
@@ -457,12 +457,12 @@ export default {
|
|
"^[A-Za-z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$"
|
|
"^[A-Za-z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$"
|
|
);
|
|
);
|
|
if (this.account.length <= 0) {
|
|
if (this.account.length <= 0) {
|
|
- this.$message.error("请输入账号");
|
|
|
|
|
|
+ this.$message.error(this.lang.enteraccount);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
if (this.password.length < 6 || /[\u4e00-\u9fa5]/.test(this.password)) {
|
|
if (this.password.length < 6 || /[\u4e00-\u9fa5]/.test(this.password)) {
|
|
- this.$message.error("密码长度不少于6位或者密码包含特殊字符、中文");
|
|
|
|
|
|
+ this.$message.error(this.lang.passwordlength);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -474,7 +474,7 @@ export default {
|
|
this.OrgOptions.find((i) => i.Uorg == this.org) &&
|
|
this.OrgOptions.find((i) => i.Uorg == this.org) &&
|
|
!_list.includes(this.OrgOptions.find((i) => i.Uorg == this.org).id)
|
|
!_list.includes(this.OrgOptions.find((i) => i.Uorg == this.org).id)
|
|
) {
|
|
) {
|
|
- return this.$message.error("账号不可登录,请使用您的专属网址");
|
|
|
|
|
|
+ return this.$message.error(this.lang.Accountcannot);
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
|
|
|
|
@@ -487,10 +487,10 @@ export default {
|
|
this.OrgOptions.find((i) => i.Uorg == this.org).id
|
|
this.OrgOptions.find((i) => i.Uorg == this.org).id
|
|
)
|
|
)
|
|
) {
|
|
) {
|
|
- return this.$message.error("账号不可登录,请使用您的专属网址");
|
|
|
|
|
|
+ return this.$message.error(this.lang.Accountcannot);
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- return this.$message.error("还未在此组织下创建账号,请先创建");
|
|
|
|
|
|
+ return this.$message.error(this.lang.accountnotcreated);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -502,10 +502,10 @@ export default {
|
|
|
|
|
|
if (this.allowOrgList.findIndex((i) => i.area) != -1) {
|
|
if (this.allowOrgList.findIndex((i) => i.area) != -1) {
|
|
this.$message.error(
|
|
this.$message.error(
|
|
- "请在账号后添加组织后缀(账号@组织号.com 如:123456@cocorobo.com)"
|
|
|
|
|
|
+ this.lang.addsuffix
|
|
);
|
|
);
|
|
} else {
|
|
} else {
|
|
- this.$message.error("该账号须使用“组织号登陆”");
|
|
|
|
|
|
+ this.$message.error(this.lang.accountmustOrg);
|
|
this.loginType = "orgL";
|
|
this.loginType = "orgL";
|
|
}
|
|
}
|
|
return;
|
|
return;
|
|
@@ -540,7 +540,7 @@ export default {
|
|
let userjson = await getUser({ userid: _data.userid });
|
|
let userjson = await getUser({ userid: _data.userid });
|
|
if (userjson.data[0][0].type == 2) {
|
|
if (userjson.data[0][0].type == 2) {
|
|
this.loading = false;
|
|
this.loading = false;
|
|
- this.$message.error("无登录权限");
|
|
|
|
|
|
+ this.$message.error(this.lang.Nologinpermission);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -553,7 +553,7 @@ export default {
|
|
? (window.topU.US.userInfo = _data)
|
|
? (window.topU.US.userInfo = _data)
|
|
: (window.parent.US.userInfo = _data);
|
|
: (window.parent.US.userInfo = _data);
|
|
await this.login();
|
|
await this.login();
|
|
- this.$message.success("登录成功");
|
|
|
|
|
|
+ this.$message.success(this.lang.Loginsuccessful);
|
|
if (
|
|
if (
|
|
userjson.data[0][0].type == 1 &&
|
|
userjson.data[0][0].type == 1 &&
|
|
userjson.data[0][0].role == 1 &&
|
|
userjson.data[0][0].role == 1 &&
|
|
@@ -572,15 +572,15 @@ export default {
|
|
_data.userid
|
|
_data.userid
|
|
);
|
|
);
|
|
} else {
|
|
} else {
|
|
- this.$message.error("登录失败");
|
|
|
|
|
|
+ this.$message.error(this.lang.Loginfailed);
|
|
}
|
|
}
|
|
this.loading = false;
|
|
this.loading = false;
|
|
})
|
|
})
|
|
.catch((e) => {
|
|
.catch((e) => {
|
|
if (e.response && e.response.data == "Wrong email or password") {
|
|
if (e.response && e.response.data == "Wrong email or password") {
|
|
- this.$message.error("账号或密码错误");
|
|
|
|
|
|
+ this.$message.error(this.lang.Accerror);
|
|
} else {
|
|
} else {
|
|
- this.$message.error("登录失败");
|
|
|
|
|
|
+ this.$message.error(this.lang.Loginfailed);
|
|
}
|
|
}
|
|
this.loading = false;
|
|
this.loading = false;
|
|
});
|
|
});
|
|
@@ -590,11 +590,11 @@ export default {
|
|
{ email: email },
|
|
{ email: email },
|
|
]);
|
|
]);
|
|
if (!data.data[0].length) {
|
|
if (!data.data[0].length) {
|
|
- this.$message.error("未查找到对应账号请重新输入");
|
|
|
|
|
|
+ this.$message.error(this.lang.Nocoracc);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if (data.data[0][0].thirdpartyid) {
|
|
if (data.data[0][0].thirdpartyid) {
|
|
- this.$message.error("该账号已绑定微信登录请重新输入");
|
|
|
|
|
|
+ this.$message.error(this.lang.hasbeenlinked);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -616,7 +616,7 @@ export default {
|
|
let userjson = await getUser({ userid: _data.userid });
|
|
let userjson = await getUser({ userid: _data.userid });
|
|
if (userjson.data[0][0].type == 2) {
|
|
if (userjson.data[0][0].type == 2) {
|
|
this.loading = false;
|
|
this.loading = false;
|
|
- this.$message.error("无登录权限");
|
|
|
|
|
|
+ this.$message.error(this.lang.Nologinpermission);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -626,7 +626,7 @@ export default {
|
|
{ userid: _data.userid, openid: this.openid },
|
|
{ userid: _data.userid, openid: this.openid },
|
|
]);
|
|
]);
|
|
window.localStorage["identity"] = JSON.stringify(_data.identity);
|
|
window.localStorage["identity"] = JSON.stringify(_data.identity);
|
|
- this.$message.success("绑定成功");
|
|
|
|
|
|
+ this.$message.success(this.lang.Bindingsuc);
|
|
window.topU.U.UF.Cookie.set("cocoroboLoginType=2");
|
|
window.topU.U.UF.Cookie.set("cocoroboLoginType=2");
|
|
window.topU
|
|
window.topU
|
|
? (window.topU.US.userInfo = _data)
|
|
? (window.topU.US.userInfo = _data)
|
|
@@ -643,16 +643,16 @@ export default {
|
|
this.$router.push({ path: this.redirect || "/" });
|
|
this.$router.push({ path: this.redirect || "/" });
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- this.$message.error("绑定失败");
|
|
|
|
|
|
+ this.$message.error(this.lang.Bindingfailed);
|
|
}
|
|
}
|
|
|
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
})
|
|
})
|
|
.catch((e) => {
|
|
.catch((e) => {
|
|
if (e.response && e.response.data == "Wrong email or password") {
|
|
if (e.response && e.response.data == "Wrong email or password") {
|
|
- this.$message.error("账号或密码错误");
|
|
|
|
|
|
+ this.$message.error(this.lang.Accerror);
|
|
} else {
|
|
} else {
|
|
- this.$message.error("绑定失败");
|
|
|
|
|
|
+ this.$message.error(this.lang.Bindingfailed);
|
|
}
|
|
}
|
|
this.loading = false;
|
|
this.loading = false;
|
|
});
|
|
});
|
|
@@ -706,7 +706,7 @@ export default {
|
|
this.OrgOptions = getList;
|
|
this.OrgOptions = getList;
|
|
if (this.OrgOptions.length == 0)
|
|
if (this.OrgOptions.length == 0)
|
|
return this.$message.error(
|
|
return this.$message.error(
|
|
- "未查询到账号,请检查是否填写错误或还未创建账号"
|
|
|
|
|
|
+ this.lang.Accnotfound
|
|
);
|
|
);
|
|
if (this.loginType == "orgL") return resolve(1);
|
|
if (this.loginType == "orgL") return resolve(1);
|
|
|
|
|
|
@@ -725,7 +725,7 @@ export default {
|
|
} catch (error) {
|
|
} catch (error) {
|
|
console.log(error);
|
|
console.log(error);
|
|
return this.$message.error(
|
|
return this.$message.error(
|
|
- "账号不可登录,请使用您的专属网址"
|
|
|
|
|
|
+ this.lang.Accountcannot
|
|
);
|
|
);
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
@@ -740,9 +740,9 @@ export default {
|
|
.length == 1
|
|
.length == 1
|
|
)
|
|
)
|
|
return this.$message.error(
|
|
return this.$message.error(
|
|
- "账号不可登录,请使用您的专属网址"
|
|
|
|
|
|
+ this.lang.Accountcannot
|
|
);
|
|
);
|
|
- this.$message.error("该账号须使用“组织号登陆”");
|
|
|
|
|
|
+ this.$message.error(this.lang.accountmustOrg);
|
|
this.loginType = "orgL";
|
|
this.loginType = "orgL";
|
|
return resolve(2);
|
|
return resolve(2);
|
|
|
|
|
|
@@ -846,7 +846,7 @@ export default {
|
|
this.OrgOptions.find((i) => i.Uorg == this.org).id
|
|
this.OrgOptions.find((i) => i.Uorg == this.org).id
|
|
)
|
|
)
|
|
) {
|
|
) {
|
|
- this.$message.error("账号不可登录,请使用您的专属网址");
|
|
|
|
|
|
+ this.$message.error(this.lang.Accountcannot);
|
|
this.wechatLogin();
|
|
this.wechatLogin();
|
|
await loginOut();
|
|
await loginOut();
|
|
await this.logout();
|
|
await this.logout();
|
|
@@ -861,7 +861,7 @@ export default {
|
|
this.OrgOptions.find((i) => i.Uorg == this.org).id
|
|
this.OrgOptions.find((i) => i.Uorg == this.org).id
|
|
)
|
|
)
|
|
) {
|
|
) {
|
|
- this.$message.error("账号不可登录,请使用您的专属网址");
|
|
|
|
|
|
+ this.$message.error(this.lang.Accountcannot);
|
|
this.wechatLogin();
|
|
this.wechatLogin();
|
|
await loginOut();
|
|
await loginOut();
|
|
await this.logout();
|
|
await this.logout();
|
|
@@ -870,7 +870,7 @@ export default {
|
|
}
|
|
}
|
|
let userjson = await getUser({ userid: _data.userid });
|
|
let userjson = await getUser({ userid: _data.userid });
|
|
if (userjson.data[0][0].type == 2) {
|
|
if (userjson.data[0][0].type == 2) {
|
|
- this.$message.error("无登录权限");
|
|
|
|
|
|
+ this.$message.error(this.lang.Nologinpermission);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -892,7 +892,7 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.$router.push({ path: this.redirect || "/" });
|
|
this.$router.push({ path: this.redirect || "/" });
|
|
}
|
|
}
|
|
- this.$message.success("登录成功");
|
|
|
|
|
|
+ this.$message.success(this.lang.Loginsuccessful);
|
|
|
|
|
|
this.addOp3(
|
|
this.addOp3(
|
|
"1",
|
|
"1",
|
|
@@ -902,7 +902,7 @@ export default {
|
|
_data.userid
|
|
_data.userid
|
|
);
|
|
);
|
|
} else {
|
|
} else {
|
|
- this.$message.error("登录失败");
|
|
|
|
|
|
+ this.$message.error(this.lang.Loginfailed);
|
|
}
|
|
}
|
|
|
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
@@ -925,12 +925,12 @@ export default {
|
|
// 随机码登录
|
|
// 随机码登录
|
|
nextSteps() {
|
|
nextSteps() {
|
|
if (!this.SuffixData) {
|
|
if (!this.SuffixData) {
|
|
- this.$message.error(this.prefixL == 'liyuan_' ? "请选择校区" : '请输入随机码');
|
|
|
|
|
|
+ this.$message.error(this.prefixL == 'liyuan_' ? this.lang.choosecampus : this.lang.enterrandomcode);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
let reg = /^\d+$/;
|
|
let reg = /^\d+$/;
|
|
if (!reg.test(this.icode)) {
|
|
if (!reg.test(this.icode)) {
|
|
- this.$message.error("请正确填写随机码");
|
|
|
|
|
|
+ this.$message.error(this.lang.codecorrectly);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -951,7 +951,7 @@ export default {
|
|
this.courseId = res.data[0][0].courseId;
|
|
this.courseId = res.data[0][0].courseId;
|
|
this.getClass(res.data[0][0].classid);
|
|
this.getClass(res.data[0][0].classid);
|
|
} else {
|
|
} else {
|
|
- this.$message.error("不存在此随机码");
|
|
|
|
|
|
+ this.$message.error(this.lang.codenotexist);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
@@ -995,11 +995,11 @@ export default {
|
|
// let courseid = this.courseId;
|
|
// let courseid = this.courseId;
|
|
try {
|
|
try {
|
|
await this.$confirm(
|
|
await this.$confirm(
|
|
- `确定登录${this.stuInfoCode.username}的账号吗?`,
|
|
|
|
- "提示",
|
|
|
|
|
|
+ this.lang.GroupName1.replace(/\*/g, this.stuInfoCode.username),
|
|
|
|
+ this.lang.tip,
|
|
{
|
|
{
|
|
- confirmButtonText: "确定",
|
|
|
|
- cancelButtonText: "取消",
|
|
|
|
|
|
+ confirmButtonText: this.lang.confirm,
|
|
|
|
+ cancelButtonText: this.lang.Cancel,
|
|
type: "warning",
|
|
type: "warning",
|
|
}
|
|
}
|
|
);
|
|
);
|
|
@@ -1034,7 +1034,7 @@ export default {
|
|
? (window.topU.US.userInfo = _data)
|
|
? (window.topU.US.userInfo = _data)
|
|
: (window.parent.US.userInfo = _data);
|
|
: (window.parent.US.userInfo = _data);
|
|
await this.login();
|
|
await this.login();
|
|
- this.$message.success("登录成功");
|
|
|
|
|
|
+ this.$message.success(this.lang.Loginsuccessful);
|
|
|
|
|
|
this.$router.push({ path: this.redirect || "/", query: { courseId: this.courseId } });
|
|
this.$router.push({ path: this.redirect || "/", query: { courseId: this.courseId } });
|
|
this.addOp3(
|
|
this.addOp3(
|
|
@@ -1045,7 +1045,7 @@ export default {
|
|
this.stuInfoCode.userid
|
|
this.stuInfoCode.userid
|
|
);
|
|
);
|
|
} else {
|
|
} else {
|
|
- this.$message.error("登录失败");
|
|
|
|
|
|
+ this.$message.error(this.lang.Loginfailed);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
@@ -1114,7 +1114,7 @@ export default {
|
|
if (e.data.code === 200) {
|
|
if (e.data.code === 200) {
|
|
_this.getOpenId(e.data.data.openid);
|
|
_this.getOpenId(e.data.data.openid);
|
|
} else {
|
|
} else {
|
|
- _this.$message.error("扫码登录失败请重新扫码");
|
|
|
|
|
|
+ _this.$message.error(this.lang.scancodeagain);
|
|
_this.wechatDialogVisible = false;
|
|
_this.wechatDialogVisible = false;
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
_this.wechatDialogVisible = true;
|
|
_this.wechatDialogVisible = true;
|