Browse Source

美化登陆页面

main
pixel 5 years ago
parent
commit
285c8456c2
  1. BIN
      QMPlusVuePage/src/assets/logo.jpg
  2. BIN
      QMPlusVuePage/src/assets/logo.png
  3. 1
      QMPlusVuePage/src/style/base.scss
  4. 10
      QMPlusVuePage/src/view/login/login.vue
  5. 10
      QMPlusVuePage/src/view/login/regist.vue

BIN
QMPlusVuePage/src/assets/logo.jpg

After

Width: 300  |  Height: 300  |  Size: 27 KiB

BIN
QMPlusVuePage/src/assets/logo.png

Before

Width: 300  |  Height: 300  |  Size: 11 KiB

After

Width: 300  |  Height: 300  |  Size: 7.9 KiB

1
QMPlusVuePage/src/style/base.scss

@ -53,7 +53,6 @@
.title-1 {
text-align: center;
font-size: 32px;
margin-bottom: 32px;
}
.title-3 {

10
QMPlusVuePage/src/view/login/login.vue

@ -2,7 +2,9 @@
<el-container class="login-regist-box">
<vue-particle-line></vue-particle-line>
<el-main class="login-box">
<h1 class="title-1">GIN-VUE-ADMIN</h1>
<h1 class="title-1">
<img class="logo" :src="require('@/assets/logo.png')" alt="" srcset="">
</h1>
<el-form :model="loginForm" :rules="rules" ref="loginForm">
<el-form-item prop="username">
<el-input placeholder="请输入用户名" v-model="loginForm.username"></el-input>
@ -117,7 +119,11 @@ export default {
position: absolute;
left: 50%;
margin-left: -22vw;
top: 25vh;
top:5vh;
.logo{
height: 35vh;
width: 35vh;
}
}
.vPic{
position: absolute;

10
QMPlusVuePage/src/view/login/regist.vue

@ -2,7 +2,9 @@
<el-container class="login-regist-box">
<vue-particle-line></vue-particle-line>
<el-main class="login-box">
<h1 class="title-1">GIN-VUE-ADMIN</h1>
<h1 class="title-1">
<img class="logo" :src="require('@/assets/logo.png')">
</h1>
<el-form :model="registForm" :rules="rules" ref="registForm">
<el-form-item prop="username">
<el-input placeholder="请输入用户名" v-model="registForm.username"></el-input>
@ -115,7 +117,11 @@ export default {
position: absolute;
left: 50%;
margin-left: -22vw;
top: 25vh;
top:5vh;
.logo{
height: 35vh;
width: 35vh;
}
}
}
</style>
Loading…
Cancel
Save