From 10562a6dac1492fe3dda566a800a4fec1f6e3bca Mon Sep 17 00:00:00 2001 From: gaosp <gaosp> Date: 星期日, 14 一月 2024 15:09:34 +0800 Subject: [PATCH] Merge branch 'master' of http://www.beijingsoft.cn:9090/r/mdc-front --- src/views/login/index.vue | 16 +++++++--------- 1 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/views/login/index.vue b/src/views/login/index.vue index aef1598..6a7938d 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -1,5 +1,5 @@ <template> - <Home class="home"> + <Home> <template slot="test"><span style="color: red">123</span></template> <template slot="content"> <el-form class="login-form" autoComplete="on" :model="loginForm" :rules="loginRules" ref="loginForm" label-position="left"> @@ -7,13 +7,13 @@ <span class="svg-container svg-container_login"> <svg-icon icon-class="user" /> </span> - <el-input name="username" type="text" v-model="loginForm.username" autoComplete="on" placeholder="璇疯緭鍏ョ敤鎴峰悕" /> + <el-input class="home-input" name="username" type="text" v-model="loginForm.username" autoComplete="on" placeholder="璇疯緭鍏ョ敤鎴峰悕" /> </el-form-item> <el-form-item prop="password" class="username"> <span class="svg-container"> <svg-icon icon-class="password"></svg-icon> </span> - <el-input name="password" :type="pwdType" @keyup.enter.native="handleLogin" v-model="loginForm.password" autoComplete="off" + <el-input class="home-input" name="password" :type="pwdType" @keyup.enter.native="handleLogin" v-model="loginForm.password" autoComplete="off" placeholder="璇疯緭鍏ュ瘑鐮�"></el-input> <span class="show-pwd" @click="showPwd"><svg-icon icon-class="eye" v-show="pwdType==='password'"/><svg-icon icon-class="eyeopen" v-show="pwdType!=='password'"/></span> </el-form-item> @@ -168,8 +168,7 @@ $light_gray:#eee; /* reset element-ui css */ -// .home { - .el-input { + .login-form .el-input { display: inline-block; // height: 47px; width: calc(100% - 40px); @@ -178,7 +177,7 @@ border: 0px; -webkit-appearance: none; border-radius: 0px; - padding: 12px 5px 12px 15px; + // padding: 12px 5px 12px 15px; color: $light_gray; // height: 47px; &:-webkit-autofill { @@ -187,7 +186,6 @@ } } } -// } </style> @@ -208,8 +206,8 @@ padding-left: 30px; height: 94px; flex: 0 0 auto; - background-image: url('~@/assets/img/login/top.png'); - background-size: contain; + background: url('~@/assets/img/login/top.png') 100% 100% no-repeat; + // background-size: cover; img { display: inline-block; width: 500px; -- Gitblit v1.9.3