|
@@ -63,7 +63,7 @@
|
|
|
>
|
|
|
</el-form-item>
|
|
|
</el-form> -->
|
|
|
- <div class="login-box" id="login-container">
|
|
|
+ <div class="login-box" id="login-container" v-if="activeModel!=='forgetPassModel'">
|
|
|
<span class="login-title">ETA — 让投研领先市场半步</span>
|
|
|
<el-tabs v-model="activeModel" @tab-click="handleClick">
|
|
|
<el-tab-pane label="账号登录" name="ordinaryModel">
|
|
@@ -71,6 +71,7 @@
|
|
|
:loginCheck="loginCheck"
|
|
|
:accountCheck="accountCheck"
|
|
|
@clearnHint="clearnHint"
|
|
|
+ @changeModel="activeModel = 'forgetPassModel'"
|
|
|
/>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="手机号登录" name="mobileModel">
|
|
@@ -88,6 +89,10 @@
|
|
|
class="submit_btn"
|
|
|
>登录</el-button>
|
|
|
</div>
|
|
|
+ <div class="login-box" v-else>
|
|
|
+ <ForgetPassModel
|
|
|
+ @changeModel="activeModel = 'ordinaryModel'"/>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -97,10 +102,11 @@ import { userLogin, departInterence } from "@/api/api.js";
|
|
|
import http from "@/api/http.js";
|
|
|
import md5 from "@/utils/md5.js";
|
|
|
import EmailModel from "./login_manage/EmailModel.vue";
|
|
|
+import ForgetPassModel from "./login_manage/ForgetPassModel.vue";
|
|
|
import MobileModel from "./login_manage/MobileModel.vue";
|
|
|
import OrdinaryModel from "./login_manage/OrdinaryModel.vue";
|
|
|
export default {
|
|
|
- components: { OrdinaryModel, MobileModel, EmailModel },
|
|
|
+ components: { OrdinaryModel, MobileModel, EmailModel, ForgetPassModel },
|
|
|
data() {
|
|
|
return {
|
|
|
b: new http.Base64(),
|
|
@@ -129,12 +135,13 @@ export default {
|
|
|
visible: true,
|
|
|
|
|
|
activeModel: 'ordinaryModel',
|
|
|
- /* form check */
|
|
|
+ /* form check 错误提示标识*/
|
|
|
loginCheck:false, //账号或密码错误
|
|
|
accountCheck:false,//账号异常:多次输错密码、长时间未登录
|
|
|
accountForbidden:false,//账号被禁用
|
|
|
mobileCheck:false,//手机号未绑定
|
|
|
emailCheck:false,//邮箱未绑定
|
|
|
+
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -316,11 +323,11 @@ export default {
|
|
|
margin-bottom: 60px;
|
|
|
}
|
|
|
|
|
|
- #login-container {
|
|
|
+ #login-container ,.login-box{
|
|
|
box-sizing: border-box;
|
|
|
border-radius: 10px;
|
|
|
position: absolute;
|
|
|
- top: 31%;
|
|
|
+ top: 27%;
|
|
|
right: 12%;
|
|
|
z-index: 100;
|
|
|
input::-webkit-input-placeholder {
|
|
@@ -384,7 +391,7 @@ export default {
|
|
|
.login-bg{
|
|
|
display: block;
|
|
|
}
|
|
|
- #login-container {
|
|
|
+ #login-container ,.login-box{
|
|
|
width: 31%;
|
|
|
}
|
|
|
}
|
|
@@ -392,7 +399,7 @@ export default {
|
|
|
.login-bg{
|
|
|
display: none;
|
|
|
}
|
|
|
- #login-container {
|
|
|
+ #login-container ,.login-box{
|
|
|
width: 70%;
|
|
|
}
|
|
|
}
|