|
@@ -11,7 +11,7 @@
|
|
|
|
|
|
<div class="content">
|
|
|
<div style="display:flex;">
|
|
|
- <a :class="['qm-big-text', 'login-type', loginType === 'STUDENT_CODE' && 'active-type']" @click="loginType='STUDENT_CODE'" style="border-top-left-radius: 6px">学号登录</a>
|
|
|
+ <a v-if="this.$route.params.domain !== 'cugr.ecs.qmth.com.cn'" :class="['qm-big-text', 'login-type', loginType === 'STUDENT_CODE' && 'active-type']" @click="loginType='STUDENT_CODE'" style="border-top-left-radius: 6px">学号登录</a>
|
|
|
<a :class="['qm-big-text', 'login-type', loginType !== 'STUDENT_CODE' && 'active-type']" @click="loginType='STUDENT_IDENTITY_NUMBER'" style="border-top-right-radius: 6px">身份证号登录</a>
|
|
|
</div>
|
|
|
|
|
@@ -22,12 +22,12 @@
|
|
|
<div style="margin: 0 40px 40px 40px">
|
|
|
<i-form ref="loginForm" :model="loginForm" :rules="loginFormRule">
|
|
|
<i-form-item prop="accountValue" style='margin-bottom:35px;height:42px'>
|
|
|
- <i-input type="text" size="large" v-model="loginForm.accountValue" placeholder="登录账号">
|
|
|
+ <i-input type="text" size="large" v-model="loginForm.accountValue" :placeholder="usernameInputPlaceholder">
|
|
|
<i-icon type="ios-person" slot="prepend"></i-icon>
|
|
|
</i-input>
|
|
|
</i-form-item>
|
|
|
<i-form-item prop="password" style='margin-bottom:35px;height:42px'>
|
|
|
- <i-input type="password" size="large" v-model="loginForm.password" placeholder="密码" @on-enter="login('loginForm')">
|
|
|
+ <i-input type="password" size="large" v-model="loginForm.password" :placeholder="passwordInputPlaceholder" @on-enter="login('loginForm')">
|
|
|
<i-icon type="ios-lock" slot="prepend"></i-icon>
|
|
|
</i-input>
|
|
|
</i-form-item>
|
|
@@ -87,6 +87,9 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
async created() {
|
|
|
+ if (this.$route.params.domain === "cugr.ecs.qmth.com.cn") {
|
|
|
+ this.loginType = "STUDENT_IDENTITY_NUMBER";
|
|
|
+ }
|
|
|
this.$Message.config({
|
|
|
duration: 10
|
|
|
});
|
|
@@ -197,6 +200,22 @@ export default {
|
|
|
closeApp() {
|
|
|
window.close();
|
|
|
}
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ usernameInputPlaceholder() {
|
|
|
+ if (this.loginType === "STUDENT_CODE") {
|
|
|
+ return "请输入学号";
|
|
|
+ } else {
|
|
|
+ return "请输入身份证号";
|
|
|
+ }
|
|
|
+ },
|
|
|
+ passwordInputPlaceholder() {
|
|
|
+ if (this.loginType === "STUDENT_CODE") {
|
|
|
+ return "初始密码为学号后6位";
|
|
|
+ } else {
|
|
|
+ return "初始密码为身份证号后6位";
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
</script>
|