|
@@ -1,7 +1,12 @@
|
|
<template>
|
|
<template>
|
|
- <div class="login">
|
|
|
|
|
|
+ <div class="login" >
|
|
|
|
+ <div class="bg"><img :src="bg" alt=""></div>
|
|
|
|
+ <div class="logo">
|
|
|
|
+ <img :src="logo" alt="">
|
|
|
|
+ <span class="logo_txt">充值管理平台</span>
|
|
|
|
+ </div>
|
|
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
|
|
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
|
|
- <h3 class="title">永天后台管理系统</h3>
|
|
|
|
|
|
+ <h3 class="title">后台管理系统</h3>
|
|
<el-form-item prop="username">
|
|
<el-form-item prop="username">
|
|
<el-input v-model="loginForm.username" type="text" auto-complete="off" placeholder="账号">
|
|
<el-input v-model="loginForm.username" type="text" auto-complete="off" placeholder="账号">
|
|
<svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
|
|
<svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
|
|
@@ -57,6 +62,8 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import bgImg from "@/assets/images/bg.png";
|
|
|
|
+import logoImg from "@/assets/logo/logo-b.png";
|
|
import { getCodeImg } from "@/api/login";
|
|
import { getCodeImg } from "@/api/login";
|
|
import Cookies from "js-cookie";
|
|
import Cookies from "js-cookie";
|
|
import { encrypt, decrypt } from '@/utils/jsencrypt'
|
|
import { encrypt, decrypt } from '@/utils/jsencrypt'
|
|
@@ -65,6 +72,8 @@ export default {
|
|
name: "Login",
|
|
name: "Login",
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ bg:bgImg,
|
|
|
|
+ logo:logoImg,
|
|
codeUrl: "",
|
|
codeUrl: "",
|
|
cookiePassword: "",
|
|
cookiePassword: "",
|
|
loginForm: {
|
|
loginForm: {
|
|
@@ -108,6 +117,7 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
getCode() {
|
|
getCode() {
|
|
getCodeImg().then(res => {
|
|
getCodeImg().then(res => {
|
|
|
|
+ console.log(res)
|
|
this.captchaOnOff = res.captchaOnOff === undefined ? true : res.captchaOnOff;
|
|
this.captchaOnOff = res.captchaOnOff === undefined ? true : res.captchaOnOff;
|
|
if (this.captchaOnOff) {
|
|
if (this.captchaOnOff) {
|
|
this.codeUrl = "data:image/gif;base64," + res.img;
|
|
this.codeUrl = "data:image/gif;base64," + res.img;
|
|
@@ -155,6 +165,38 @@ export default {
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style rel="stylesheet/scss" lang="scss">
|
|
<style rel="stylesheet/scss" lang="scss">
|
|
|
|
+.bg{
|
|
|
|
+ width:100%;
|
|
|
|
+ height:100%;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ position: fixed;
|
|
|
|
+ top:0;
|
|
|
|
+ left:0;
|
|
|
|
+ z-index: -1;
|
|
|
|
+ .bgimg{
|
|
|
|
+ width:100%;
|
|
|
|
+ height:100%;
|
|
|
|
+ position: absolute;
|
|
|
|
+ top:0;
|
|
|
|
+ left:0;
|
|
|
|
+ z-index: -1;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+.logo{
|
|
|
|
+ width:100%;
|
|
|
|
+ position: fixed;
|
|
|
|
+ top:0;
|
|
|
|
+ img{
|
|
|
|
+ width:6%;
|
|
|
|
+ margin:10px 2rem 0 20px;
|
|
|
|
+ vertical-align: middle;
|
|
|
|
+ }
|
|
|
|
+ .logo_txt{
|
|
|
|
+ font-size: 1.6rem;
|
|
|
|
+ color:#fff;
|
|
|
|
+ vertical-align: middle;
|
|
|
|
+ }
|
|
|
|
+}
|
|
.login {
|
|
.login {
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: center;
|
|
justify-content: center;
|