diff --git a/src/assets/images/loginleft.png b/src/assets/images/loginleft.png new file mode 100644 index 0000000..47399bc Binary files /dev/null and b/src/assets/images/loginleft.png differ diff --git a/src/assets/images/x.png b/src/assets/images/x.png new file mode 100644 index 0000000..78b1c36 Binary files /dev/null and b/src/assets/images/x.png differ diff --git a/src/views/login.vue b/src/views/login.vue index 6e2d936..2fde86b 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -1,63 +1,71 @@ @@ -72,8 +80,8 @@ export default { return { codeUrl: "", loginForm: { - username: "admin", - password: "admin123", + username: "", + password: "", rememberMe: false, code: "", uuid: "" @@ -107,6 +115,9 @@ export default { this.getCode(); this.getCookie(); }, + + + methods: { getCode() { getCodeImg().then(res => { @@ -161,7 +172,8 @@ export default { justify-content: center; align-items: center; height: 100%; - background-image: url("../assets/images/login-background.jpg"); + //background-image: url("../assets/images/login-background.jpg"); + background-image: url("../assets/images/x.png"); background-size: cover; } .title { @@ -204,9 +216,9 @@ export default { .el-login-footer { height: 40px; line-height: 40px; - position: fixed; - bottom: 0; - width: 100%; + //position: fixed; + //bottom: 0; + //width: 100%; text-align: center; color: #fff; font-family: Arial; @@ -216,4 +228,33 @@ export default { .login-code-img { height: 38px; } +.centen-box{ + height: 700px; + background: white; + border-radius:20px; + box-shadow: 0px 7px 27px 0px rgba(133,169,231,0.51); + width: 70%; + top: 50%; + position: fixed; + left: 50%; + transform: translate(-50%,-50%); + display: flex; + align-items: center; + justify-content: space-between; +} +.left-box{ + width: 50%; + height: 100%; + img{ + width: 100%; + height: 100%; + } +} +.right-box{ + width: 50%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; +} diff --git a/src/views/register.vue b/src/views/register.vue index 60d8bca..be9be3b 100644 --- a/src/views/register.vue +++ b/src/views/register.vue @@ -1,7 +1,7 @@