From aa82a9d8ac996245c45dc7ea47b3b820c6634ecb Mon Sep 17 00:00:00 2001 From: "jqtmviyu@gmail.com" Date: Wed, 13 Jan 2021 16:41:21 +0800 Subject: [PATCH] =?UTF-8?q?username=20=E6=94=B9=E4=B8=BAmobile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/index.vue | 42 +++++++++++++++++++++++++++------------ 1 file changed, 29 insertions(+), 13 deletions(-) diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 1db2464..cffd13c 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -3,17 +3,19 @@
-

Login Form

+

+ +

- + - Login + 登录 +
- username: admin - password: any + 账号: 13800000002 + 密码: 123456
@@ -74,11 +77,11 @@ export default { } return { loginForm: { - username: 'admin', - password: '111111' + mobile: '13800000002', + password: '123456' }, loginRules: { - username: [{ required: true, trigger: 'blur', validator: validateUsername }], + mobile: [{ required: true, trigger: 'blur', validator: validateUsername }], password: [{ required: true, trigger: 'blur', validator: validatePassword }] }, loading: false, @@ -130,7 +133,7 @@ export default { /* Detail see https://github.com/PanJiaChen/vue-element-admin/pull/927 */ $bg:#283443; -$light_gray:#fff; +$light_gray:#68b0fe; $cursor: #fff; @supports (-webkit-mask: none) and (not (cater-color: $cursor)) { @@ -165,10 +168,21 @@ $cursor: #fff; .el-form-item { border: 1px solid rgba(255, 255, 255, 0.1); - background: rgba(0, 0, 0, 0.1); + background: rgba(255, 255, 255, 0.7); // 输入登录表单的背景色 border-radius: 5px; color: #454545; } + + .loginBtn { + background: #407ffe; + height: 64px; + line-height: 32px; + font-size: 24px; + } + + .el-form-item__error { + color: #fff + } } @@ -178,6 +192,8 @@ $dark_gray:#889aa4; $light_gray:#eee; .login-container { + background-image: url('~@/assets/common/login.jpg'); + background-position: center; min-height: 100%; width: 100%; background-color: $bg;