|
@@ -2,12 +2,12 @@
|
|
|
<div class="login-wrap">
|
|
<div class="login-wrap">
|
|
|
<div class="ms-title">后台管理系统</div>
|
|
<div class="ms-title">后台管理系统</div>
|
|
|
<div class="ms-login">
|
|
<div class="ms-login">
|
|
|
- <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
|
|
|
|
|
- <el-form-item label="username" prop="username">
|
|
|
|
|
- <el-input v-model="ruleForm.username"></el-input>
|
|
|
|
|
|
|
+ <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="0px" class="demo-ruleForm">
|
|
|
|
|
+ <el-form-item prop="username">
|
|
|
|
|
+ <el-input v-model="ruleForm.username" placeholder="username"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item label="password" prop="password">
|
|
|
|
|
- <el-input type="password" v-model="ruleForm.password" @keyup.enter.native="submitForm('ruleForm')"></el-input>
|
|
|
|
|
|
|
+ <el-form-item prop="password">
|
|
|
|
|
+ <el-input type="password" placeholder="password" v-model="ruleForm.password" @keyup.enter.native="submitForm('ruleForm')"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<div class="login-btn">
|
|
<div class="login-btn">
|
|
|
<el-button type="primary" @click="submitForm('ruleForm')">登录</el-button>
|
|
<el-button type="primary" @click="submitForm('ruleForm')">登录</el-button>
|
|
@@ -58,7 +58,6 @@
|
|
|
position: relative;
|
|
position: relative;
|
|
|
width:100%;
|
|
width:100%;
|
|
|
height:100%;
|
|
height:100%;
|
|
|
- background: #324157;
|
|
|
|
|
}
|
|
}
|
|
|
.ms-title{
|
|
.ms-title{
|
|
|
position: absolute;
|
|
position: absolute;
|
|
@@ -74,10 +73,10 @@
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
left:50%;
|
|
left:50%;
|
|
|
top:50%;
|
|
top:50%;
|
|
|
- width:350px;
|
|
|
|
|
|
|
+ width:300px;
|
|
|
height:160px;
|
|
height:160px;
|
|
|
margin:-150px 0 0 -190px;
|
|
margin:-150px 0 0 -190px;
|
|
|
- padding:40px 20px 40px 10px;
|
|
|
|
|
|
|
+ padding:40px;
|
|
|
border-radius: 5px;
|
|
border-radius: 5px;
|
|
|
background: #fff;
|
|
background: #fff;
|
|
|
}
|
|
}
|
|
@@ -85,7 +84,7 @@
|
|
|
text-align: center;
|
|
text-align: center;
|
|
|
}
|
|
}
|
|
|
.login-btn button{
|
|
.login-btn button{
|
|
|
- width:43%;
|
|
|
|
|
- height:40px;
|
|
|
|
|
|
|
+ width:100%;
|
|
|
|
|
+ height:36px;
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|