perf:登录兼容移动端

This commit is contained in:
Xwen
2023-12-24 20:44:40 +08:00
parent 5d40397fa3
commit 149ebc0cf3
2 changed files with 221 additions and 190 deletions

View File

@@ -75,7 +75,7 @@
</el-form-item>
<el-form-item label="手机号" class="title-item"></el-form-item>
<div class="flex-between">
<el-col :span="18">
<div class="item">
<el-form-item prop="phone">
<el-input
type="text"
@@ -83,7 +83,7 @@
placeholder="请输入手机号"
/>
</el-form-item>
</el-col>
</div>
<el-button
type="primary"
@click="captcha"
@@ -394,6 +394,7 @@ const handleContact = () => {
align-items: center;
.text {
cursor: pointer;
color: #2282fe;
}
}
.visitor {
@@ -460,6 +461,38 @@ const handleContact = () => {
.flex-between {
display: flex;
justify-content: space-between;
.item {
flex: 1;
}
}
}
/*手机端CSS*/
@media (max-width: 768px) {
.login {
background: url("@/assets/login_images/phone_login_bg.jpg") no-repeat;
&-box {
.left {
display: none;
}
.right {
flex: 1;
.top {
.title {
font-size: 20px;
}
.text {
margin-top: 10px;
}
}
}
.flex-between {
display: flex;
justify-content: space-between;
.item {
flex: 1;
}
}
}
}
}
</style>