|
@@ -8,8 +8,8 @@
|
|
</div>
|
|
</div>
|
|
<div class="header-left-line"></div>
|
|
<div class="header-left-line"></div>
|
|
<div class="header-left-text">
|
|
<div class="header-left-text">
|
|
- <p style="font-size: 24px">CZO智能分析管理系统</p>
|
|
|
|
- <p style="font-size: 12px">Enterprise management integration platform</p>
|
|
|
|
|
|
+ <div style="font-size: 24px">CZO智能分析管理系统</div>
|
|
|
|
+ <div style="font-size: 12px"> Enterprise management integration platform </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="header-right">
|
|
<div class="header-right">
|
|
@@ -22,9 +22,9 @@
|
|
</div>
|
|
</div>
|
|
<div class="main">
|
|
<div class="main">
|
|
<div class="inner">
|
|
<div class="inner">
|
|
- <div class="mian-info">
|
|
|
|
- <p>企业智能信息化 高效管理 节能降耗</p>
|
|
|
|
- <p style="margin-top: 20px">实现 标准化、机制化、流程化、责任化、市场化、人性化</p>
|
|
|
|
|
|
+ <div class="main-info">
|
|
|
|
+ <div class="main-info-text">企业智能信息化 高效管理 节能降耗</div>
|
|
|
|
+ <div class="main-info-text" style="margin-top: 20px"> 实现 标准化、机制化、流程化、责任化、市场化、人性化 </div>
|
|
<div class="main-info-link">
|
|
<div class="main-info-link">
|
|
<a href="javascript:void(0);">产品视频</a>
|
|
<a href="javascript:void(0);">产品视频</a>
|
|
<a href="javascript:void(0);">企业诊断</a>
|
|
<a href="javascript:void(0);">企业诊断</a>
|
|
@@ -36,13 +36,20 @@
|
|
<div class="main-login-from-user">
|
|
<div class="main-login-from-user">
|
|
<label>
|
|
<label>
|
|
<span>账号</span>
|
|
<span>账号</span>
|
|
- <input type="text" auto-complete="off" v-model="formData.username" />
|
|
|
|
|
|
+ <input type="text" auto-complete="off" v-model="formData.username" @keyup.enter="handleLogin" />
|
|
</label>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div class="main-login-from-pass">
|
|
<div class="main-login-from-pass">
|
|
<label>
|
|
<label>
|
|
<span>密码</span>
|
|
<span>密码</span>
|
|
- <input type="password" auto-complete="off" v-model="formData.password" />
|
|
|
|
|
|
+ <input type="password" auto-complete="off" v-model="formData.password" @keyup.enter="handleLogin" />
|
|
|
|
+ </label>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="main-login-from-pass">
|
|
|
|
+ <label>
|
|
|
|
+ <span>验证码</span>
|
|
|
|
+ <input type="text" auto-complete="off" v-model="formData.code" style="width: 110px" @keyup.enter="handleLogin" />
|
|
|
|
+ <img :src="codeUrl" @click="getCode" class="login-code-img" />
|
|
</label>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div class="main-login-from-btn">
|
|
<div class="main-login-from-btn">
|
|
@@ -66,13 +73,19 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+ import { getCodeImg } from '@/api/login'
|
|
|
|
+ import Cookies from 'js-cookie'
|
|
|
|
+ import { encrypt, decrypt } from '@/utils/jsencrypt'
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ codeUrl: '',
|
|
loading: false,
|
|
loading: false,
|
|
formData: {
|
|
formData: {
|
|
username: 'admin',
|
|
username: 'admin',
|
|
- password: '15645766666'
|
|
|
|
|
|
+ password: 'admin123',
|
|
|
|
+ code: '',
|
|
|
|
+ uuid: ''
|
|
},
|
|
},
|
|
redirect: undefined
|
|
redirect: undefined
|
|
}
|
|
}
|
|
@@ -85,7 +98,20 @@
|
|
immediate: true
|
|
immediate: true
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ created() {
|
|
|
|
+ this.getCode()
|
|
|
|
+ //this.getCookie();
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
|
|
+ getCode() {
|
|
|
|
+ getCodeImg().then((res) => {
|
|
|
|
+ this.captchaOnOff = res.captchaOnOff === undefined ? true : res.captchaOnOff
|
|
|
|
+ if (this.captchaOnOff) {
|
|
|
|
+ this.codeUrl = 'data:image/gif;base64,' + res.img
|
|
|
|
+ this.formData.uuid = res.uuid
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
handleLogin() {
|
|
handleLogin() {
|
|
if (this.formData.username.trim() == '') {
|
|
if (this.formData.username.trim() == '') {
|
|
this.$msg({ type: 'error', message: '账号不能为空' })
|
|
this.$msg({ type: 'error', message: '账号不能为空' })
|
|
@@ -95,6 +121,10 @@
|
|
this.$msg({ type: 'error', message: '密码不能为空' })
|
|
this.$msg({ type: 'error', message: '密码不能为空' })
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ if (this.formData.code.trim() == '') {
|
|
|
|
+ this.$msg({ type: 'error', message: '未输入验证码' })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
this.loading = true
|
|
this.loading = true
|
|
this.$store
|
|
this.$store
|
|
.dispatch('Login', this.formData)
|
|
.dispatch('Login', this.formData)
|
|
@@ -113,6 +143,10 @@
|
|
.login {
|
|
.login {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100vh;
|
|
height: 100vh;
|
|
|
|
+ .login-code-img {
|
|
|
|
+ width: 120px;
|
|
|
|
+ height: 50px;
|
|
|
|
+ }
|
|
.header,
|
|
.header,
|
|
.footer {
|
|
.footer {
|
|
width: 100%;
|
|
width: 100%;
|
|
@@ -196,8 +230,8 @@
|
|
height: 100%;
|
|
height: 100%;
|
|
align-items: center;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
- .mian-info {
|
|
|
|
- p {
|
|
|
|
|
|
+ .main-info {
|
|
|
|
+ .main-info-text {
|
|
color: #fff;
|
|
color: #fff;
|
|
font-size: 28px;
|
|
font-size: 28px;
|
|
font-weight: bolder;
|
|
font-weight: bolder;
|
|
@@ -229,7 +263,7 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.main-login {
|
|
.main-login {
|
|
- width: 300px;
|
|
|
|
|
|
+ width: 360px;
|
|
.main-login-title {
|
|
.main-login-title {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 45px;
|
|
height: 45px;
|
|
@@ -248,9 +282,9 @@
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
.main-login-from-user,
|
|
.main-login-from-user,
|
|
.main-login-from-pass {
|
|
.main-login-from-pass {
|
|
- width: 240px;
|
|
|
|
|
|
+ width: 300px;
|
|
border: 1px solid #000;
|
|
border: 1px solid #000;
|
|
- height: 30px;
|
|
|
|
|
|
+ height: 50px;
|
|
border-radius: 5px;
|
|
border-radius: 5px;
|
|
margin-bottom: 20px;
|
|
margin-bottom: 20px;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
@@ -259,15 +293,15 @@
|
|
span {
|
|
span {
|
|
display: inline-block;
|
|
display: inline-block;
|
|
width: 70px;
|
|
width: 70px;
|
|
- height: 30px;
|
|
|
|
|
|
+ height: 50px;
|
|
background-color: #a6a6a6;
|
|
background-color: #a6a6a6;
|
|
text-align: center;
|
|
text-align: center;
|
|
- line-height: 30px;
|
|
|
|
|
|
+ line-height: 50px;
|
|
}
|
|
}
|
|
input {
|
|
input {
|
|
display: block;
|
|
display: block;
|
|
- width: 170px;
|
|
|
|
- height: 30px;
|
|
|
|
|
|
+ width: 230px;
|
|
|
|
+ height: 50px;
|
|
padding: 0;
|
|
padding: 0;
|
|
margin: 0;
|
|
margin: 0;
|
|
border: none;
|
|
border: none;
|
|
@@ -283,7 +317,7 @@
|
|
width: 100%;
|
|
width: 100%;
|
|
color: #fff;
|
|
color: #fff;
|
|
background-color: #07276a;
|
|
background-color: #07276a;
|
|
- height: 35px;
|
|
|
|
|
|
+ height: 50px;
|
|
border-radius: 5px;
|
|
border-radius: 5px;
|
|
outline: none;
|
|
outline: none;
|
|
}
|
|
}
|