|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div id="login">
|
|
|
- <div id="login_wrapper">
|
|
|
+ <div id="login_wrapper" v-if="!isMobile">
|
|
|
<img class="login-bg" src="https://hzstatic.hzinsights.com/static/hz_crm_web/imgs/login_bg.png" alt />
|
|
|
<img class="login-icon" src="https://hzstatic.hzinsights.com/static/hz_crm_web/imgs/login_logo.png" alt />
|
|
|
<!-- <el-form
|
|
@@ -105,49 +105,59 @@
|
|
|
<div class="login-box" v-else>
|
|
|
<ForgetPassModel
|
|
|
ref="forgetPassModel"
|
|
|
- :autoAccount="$refs[ordinaryModelForm]?$refs[ordinaryModelForm].form.account:''"
|
|
|
+ :autoAccount="$refs.ordinaryModel?$refs.ordinaryModel.form.account:''"
|
|
|
@changeModel="changeModel('ordinaryModel')"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <!-- 移动端的登录页面 单独整一份 -->
|
|
|
- <div id="login_wrapper_mobile" >
|
|
|
- <div class="login-logo">
|
|
|
- <img src="https://hzstatic.hzinsights.com/static/hz_crm_web/imgs/login_logo.png" >
|
|
|
- </div>
|
|
|
- <div class="login-title">sign in to continue</div>
|
|
|
- <OrdinaryModel ref="ordinaryModelMobile"
|
|
|
- :loginCheck="loginCheck"
|
|
|
- :accountCheck="accountCheck"
|
|
|
- :isMobile="isMobile"
|
|
|
- @clearnHint="clearnHint"
|
|
|
- @changeModel="changeModel('forgetPassModel')"
|
|
|
- v-show="activeModel=='ordinaryModel'"
|
|
|
- />
|
|
|
- <MobileModel ref="mobileModelMobile"
|
|
|
- :areaCode="areaCode" :isMobile="isMobile"
|
|
|
- v-show="activeModel=='mobileModel'"
|
|
|
- />
|
|
|
- <EmailModel ref="emailModelMobile" :isMobile="isMobile" v-show="activeModel=='emailModel'" />
|
|
|
-
|
|
|
- <el-button type="primary" @click.native="handleLogin"
|
|
|
- :loading="logining" class="submit_btn_mobile">登录</el-button>
|
|
|
- <div class="login-type-box">
|
|
|
- <div class="login-type-item" @click="activeModel='ordinaryModel';handleClick({name:'ordinaryModelMobile'})"
|
|
|
- v-show="activeModel!=='ordinaryModel'">
|
|
|
- <img src="~@/assets/img/icons/account-login-type.png">
|
|
|
- <span>账号密码登录</span>
|
|
|
- </div>
|
|
|
- <div class="login-type-item" @click="activeModel='mobileModel';handleClick({name:'mobileModelMobile'})"
|
|
|
- v-show="activeModel!=='mobileModel'">
|
|
|
- <img src="~@/assets/img/icons/phone-login-type.png">
|
|
|
- <span>手机号登录</span>
|
|
|
+ <!-- 移动端的登录页面跟移动ETA的一模一样 单独整一份 -->
|
|
|
+ <div id="login_wrapper_mobile" v-else>
|
|
|
+ <template v-if="activeModel!=='forgetPassModel'">
|
|
|
+ <div class="login-logo">
|
|
|
+ <img src="https://hzstatic.hzinsights.com/static/hz_crm_web/imgs/login_logo.png" >
|
|
|
</div>
|
|
|
- <div class="login-type-item" v-show="activeModel!=='emailModel'"
|
|
|
- @click="activeModel='emailModel';handleClick({name:'emailModelMobile'})">
|
|
|
- <img src="~@/assets/img/icons/email-login-type.png">
|
|
|
- <span>邮箱登录</span>
|
|
|
+ <div class="login-title">sign in to continue</div>
|
|
|
+ <OrdinaryModel ref="ordinaryModelMobile"
|
|
|
+ :loginCheck="loginCheck"
|
|
|
+ :accountCheck="accountCheck"
|
|
|
+ :isMobile="isMobile"
|
|
|
+ @clearnHint="clearnHint"
|
|
|
+ @changeModel="changeModel('forgetPassModel')"
|
|
|
+ v-show="activeModel=='ordinaryModel'"
|
|
|
+ />
|
|
|
+ <MobileModel ref="mobileModelMobile"
|
|
|
+ :areaCode="areaCode" :isMobile="isMobile"
|
|
|
+ v-show="activeModel=='mobileModel'"
|
|
|
+ />
|
|
|
+ <EmailModel ref="emailModelMobile" :isMobile="isMobile" v-show="activeModel=='emailModel'" />
|
|
|
+
|
|
|
+ <el-button type="primary" @click.native="handleLogin"
|
|
|
+ :loading="logining" class="submit_btn_mobile">登录</el-button>
|
|
|
+ <div class="login-type-box">
|
|
|
+ <div class="login-type-item" @click="activeModel='ordinaryModel';handleClick({name:'ordinaryModelMobile'})"
|
|
|
+ v-show="activeModel!=='ordinaryModel'">
|
|
|
+ <img src="~@/assets/img/icons/account-login-type.png">
|
|
|
+ <span>账号密码登录</span>
|
|
|
+ </div>
|
|
|
+ <div class="login-type-item" @click="activeModel='mobileModel';handleClick({name:'mobileModelMobile'})"
|
|
|
+ v-show="activeModel!=='mobileModel'">
|
|
|
+ <img src="~@/assets/img/icons/phone-login-type.png">
|
|
|
+ <span>手机号登录</span>
|
|
|
+ </div>
|
|
|
+ <div class="login-type-item" v-show="activeModel!=='emailModel'"
|
|
|
+ @click="activeModel='emailModel';handleClick({name:'emailModelMobile'})">
|
|
|
+ <img src="~@/assets/img/icons/email-login-type.png">
|
|
|
+ <span>邮箱登录</span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+ </template>
|
|
|
+ <div class="login-box" v-else>
|
|
|
+ <!-- 忘记密码就不重新搞了,太麻烦了,就写一起吧 -->
|
|
|
+ <ForgetPassModel
|
|
|
+ ref="forgetPassModelMobile"
|
|
|
+ :isMobile="isMobile"
|
|
|
+ :autoAccount="$refs.ordinaryModelMobile?$refs.ordinaryModelMobile.form.account:''"
|
|
|
+ @changeModel="changeModel('ordinaryModel')"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -217,7 +227,7 @@ export default {
|
|
|
checked: false, //是否保持登录状态
|
|
|
visible: true, //密码输入类型
|
|
|
|
|
|
- activeModel: 'emailModel',
|
|
|
+ activeModel: 'ordinaryModel',
|
|
|
/* form check 错误提示标识*/
|
|
|
loginCheck:false, //账号或密码错误
|
|
|
accountCheck:false,//账号异常:多次输错密码、长时间未登录
|
|
@@ -687,15 +697,9 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- #login_wrapper_mobile{
|
|
|
- display: none;
|
|
|
- }
|
|
|
@media screen and (max-width:650px) {
|
|
|
- #login_wrapper{
|
|
|
- display: none;
|
|
|
- }
|
|
|
#login_wrapper_mobile{
|
|
|
- display: block;
|
|
|
+ // display: block;
|
|
|
padding: 15% 40px 20px;
|
|
|
.login-logo{
|
|
|
margin-bottom: 30px;
|