parent
38bc28dbe6
commit
edeefef119
|
@ -6,7 +6,13 @@
|
|||
</div>
|
||||
<div class="outside-shadow">
|
||||
<div class="inside-shadow">
|
||||
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" autocomplete="on" label-position="left">
|
||||
<el-form
|
||||
ref="loginForm"
|
||||
:model="loginForm"
|
||||
:rules="loginRules"
|
||||
class="login-form"
|
||||
autocomplete="on"
|
||||
label-position="left">
|
||||
|
||||
<div class="title-container">
|
||||
<h3 class="title">企业用户登录</h3>
|
||||
|
@ -14,37 +20,60 @@
|
|||
|
||||
<el-form-item prop="username">
|
||||
<span class="svg-container">
|
||||
<svg-icon icon-class="user" />
|
||||
<svg-icon icon-class="user"/>
|
||||
</span>
|
||||
<el-input ref="username" v-model="loginForm.username" placeholder="用户名" type="text" tabindex="1" autocomplete="on" />
|
||||
<el-input
|
||||
ref="username"
|
||||
v-model="loginForm.username"
|
||||
placeholder="用户名"
|
||||
type="text"
|
||||
tabindex="1"
|
||||
autocomplete="on"/>
|
||||
</el-form-item>
|
||||
|
||||
<el-tooltip v-model="capsTooltip" content="Caps lock is On" placement="right" manual>
|
||||
<el-form-item prop="password">
|
||||
<span class="svg-container">
|
||||
<svg-icon icon-class="password" />
|
||||
<svg-icon icon-class="password"/>
|
||||
</span>
|
||||
|
||||
<el-input ref="password" :key="passwordType" v-model="loginForm.password" :type="passwordType" auto-complete="off" placeholder="密码" tabindex="2" autocomplete="on" @keyup.native="checkCapslock" @blur="capsTooltip = false" />
|
||||
<el-input
|
||||
ref="password"
|
||||
:key="passwordType"
|
||||
v-model="loginForm.password"
|
||||
:type="passwordType"
|
||||
auto-complete="off"
|
||||
placeholder="密码"
|
||||
tabindex="2"
|
||||
autocomplete="on"
|
||||
@keyup.native="checkCapslock"
|
||||
@blur="capsTooltip = false"/>
|
||||
|
||||
</el-form-item>
|
||||
</el-tooltip>
|
||||
<div v-show="loginCount >= 3">
|
||||
<el-form-item>
|
||||
<span class="svg-container">
|
||||
<svg-icon icon-class="s-code" />
|
||||
<svg-icon icon-class="s-code"/>
|
||||
</span>
|
||||
<el-input v-model="code" placeholder="验证码" type="text" tabindex="3" autocomplete="on" />
|
||||
<el-input v-model="code" placeholder="验证码" type="text" tabindex="3" autocomplete="on"/>
|
||||
</el-form-item>
|
||||
<div class="login-code" style="display: flex;margin-top: -15px;margin-bottom: 10px;" @click="refreshCode">
|
||||
<!--验证码组件-->
|
||||
<s-identify :identify-code="identifyCode" />
|
||||
<s-identify :identify-code="identifyCode"/>
|
||||
<el-button type="text" style="margin-left: 50px" @click="refreshCode">看不清,换一张</el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<validation ref="validation" />
|
||||
<el-button :loading="loading" :disabled="flag" type="primary" size="medium" style="width:100%;margin:30px 0;" @click.native.prevent="handleLogin">登录</el-button>
|
||||
<validation ref="validation"/>
|
||||
<el-button
|
||||
:loading="loading"
|
||||
:disabled="flag"
|
||||
type="primary"
|
||||
size="medium"
|
||||
style="width:100%;margin:30px 0;"
|
||||
@click.native.prevent="handleLogin">登录
|
||||
</el-button>
|
||||
<div v-if="false" style="margin-top: -25px; margin-bottom: 30px; color: red">{{ failMsg }}</div>
|
||||
<div style="position:relative">
|
||||
<div class="tips">
|
||||
|
@ -57,7 +86,7 @@
|
|||
</div>
|
||||
<el-dialog :visible.sync="dialogFormQrcode" title="秦港-双基双控APP下载" width="340px">
|
||||
<el-form ref="form" label-width="110px" style="width: 300px;">
|
||||
<vue-qr :text="qrcodeStr" :margin="0" :size="300" color-dark="#000" color-light="#fff" />
|
||||
<vue-qr :text="qrcodeStr" :margin="0" :size="300" color-dark="#000" color-light="#fff"/>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="dialogFormQrcode = false">取 消</el-button>
|
||||
|
@ -79,6 +108,7 @@ import validation from './components/validation'
|
|||
import vueQr from 'vue-qr'
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
import axios from 'axios'
|
||||
|
||||
export default {
|
||||
name: 'Login',
|
||||
components: { vueQr, validation, SIdentify },
|
||||
|
@ -251,6 +281,7 @@ export default {
|
|||
this.$router.push({ path: '/index' })
|
||||
this.loading = false
|
||||
this.flag = false
|
||||
this.getWorkTask(data.USER_ID)
|
||||
} else {
|
||||
if (data.msg) {
|
||||
this.$message.error(data.msg)
|
||||
|
@ -283,6 +314,24 @@ export default {
|
|||
}
|
||||
})
|
||||
},
|
||||
getWorkTask(id) {
|
||||
requestFN(
|
||||
'/xgf/user/getWorkTask', { USER_ID: id }
|
||||
).then((data) => {
|
||||
if (data.list && data.list.length > 0) {
|
||||
setTimeout(() => {
|
||||
console.log(data)
|
||||
console.log('???????--sparrow')
|
||||
this.$notify.info({
|
||||
title: '消息',
|
||||
message: '您有【' + data.list.length + '】条相关方人员数据待审核'
|
||||
})
|
||||
}, 3000)
|
||||
}
|
||||
}).catch((e) => {
|
||||
console.log(e)
|
||||
})
|
||||
},
|
||||
getOtherQuery(query) {
|
||||
return Object.keys(query).reduce((acc, cur) => {
|
||||
if (cur !== 'redirect') {
|
||||
|
@ -335,12 +384,14 @@ export default {
|
|||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
/* reset element-ui css */
|
||||
.login-container .el-input {
|
||||
display: inline-block;
|
||||
height: 42px;
|
||||
width: 85%;
|
||||
}
|
||||
|
||||
.login-container .el-input input {
|
||||
background: transparent;
|
||||
border: 0px;
|
||||
|
@ -351,10 +402,12 @@ export default {
|
|||
line-height: 42px;
|
||||
/* caret-color: #fff; */
|
||||
}
|
||||
|
||||
.login-container .el-input input:-webkit-autofill {
|
||||
box-shadow: 0 0 0px 1000px #fff inset !important;
|
||||
-webkit-text-fill-color: #000 !important;
|
||||
}
|
||||
|
||||
.login-container .el-form-item {
|
||||
border: 1px solid #aad5ff;
|
||||
/* background: rgba(0, 0, 0, 0.1); */
|
||||
|
@ -363,17 +416,19 @@ export default {
|
|||
}
|
||||
</style>
|
||||
|
||||
<style >
|
||||
<style>
|
||||
.login-logo {
|
||||
position: absolute;
|
||||
top: 50px;
|
||||
left: 50px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.login-logo img {
|
||||
width: 836px;
|
||||
height: 93px;
|
||||
}
|
||||
|
||||
.login-container {
|
||||
height: 100vh;
|
||||
width: 100%;
|
||||
|
@ -384,6 +439,7 @@ export default {
|
|||
background-repeat: no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
.login-foot {
|
||||
font-size: 14px;
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
|
@ -394,26 +450,29 @@ export default {
|
|||
transform: translateX(-50%);
|
||||
z-index: 99;
|
||||
}
|
||||
.outside-shadow{
|
||||
|
||||
.outside-shadow {
|
||||
position: absolute;
|
||||
right: 10%;
|
||||
top: 24%;
|
||||
width: 460px;
|
||||
height: 400px;
|
||||
border-radius: 10px;
|
||||
background-color: rgba(255,255,255,0.3);
|
||||
background-color: rgba(255, 255, 255, 0.3);
|
||||
z-index: 97;
|
||||
}
|
||||
.inside-shadow{
|
||||
|
||||
.inside-shadow {
|
||||
position: absolute;
|
||||
top: -22.5px;
|
||||
left: 15px;
|
||||
width: 430px;
|
||||
height: 445px;
|
||||
border-radius: 10px;
|
||||
background-color: rgba(255,255,255,0.5);
|
||||
background-color: rgba(255, 255, 255, 0.5);
|
||||
z-index: 98;
|
||||
}
|
||||
|
||||
.login-container .login-form {
|
||||
position: absolute;
|
||||
width: 400px;
|
||||
|
@ -428,15 +487,18 @@ export default {
|
|||
left: 15px;
|
||||
z-index: 99;
|
||||
}
|
||||
|
||||
.login-name {
|
||||
position: absolute;
|
||||
right: 9.5%;
|
||||
top: 15%;
|
||||
}
|
||||
|
||||
.login-name img {
|
||||
width: 422px;
|
||||
height: 53px;
|
||||
}
|
||||
|
||||
.login-container .tips {
|
||||
font-size: 14px;
|
||||
color: #464646;
|
||||
|
@ -452,15 +514,18 @@ export default {
|
|||
width: 30px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.login-container .title-container {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.login-container .title-container .title {
|
||||
font-size: 20px;
|
||||
color: #000;
|
||||
font-weight: normal;
|
||||
font-family: "微软雅黑", "宋体", "Arial Narrow", Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
.login-container .show-pwd {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
|
@ -470,11 +535,13 @@ export default {
|
|||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.login-container .thirdparty-button {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 6px;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 470px) {
|
||||
.login-container .thirdparty-button {
|
||||
display: none;
|
||||
|
|
Loading…
Reference in New Issue