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

@@ -4,14 +4,12 @@
} }
/*公共CSS*/ /*公共CSS*/
.box { .box {
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
background-color: rgb(29, 67, 89); background-color: rgb(29, 67, 89);
.content { .content {
box-shadow: 0px 1px 6px #3B4859; box-shadow: 0px 1px 6px #3b4859;
.login-wrapper { .login-wrapper {
h1 { h1 {
text-align: center; text-align: center;
} }
@@ -89,7 +87,7 @@
/*一般大于手机的尺寸CSS*/ /*一般大于手机的尺寸CSS*/
@media (min-width: 767px) { @media (min-width: 767px) {
.box { .box {
background-color: #F0F2F5; background-color: #f0f2f5;
.content { .content {
width: 85vw; width: 85vw;
height: 90vh; height: 90vh;

View File

@@ -75,7 +75,7 @@
</el-form-item> </el-form-item>
<el-form-item label="手机号" class="title-item"></el-form-item> <el-form-item label="手机号" class="title-item"></el-form-item>
<div class="flex-between"> <div class="flex-between">
<el-col :span="18"> <div class="item">
<el-form-item prop="phone"> <el-form-item prop="phone">
<el-input <el-input
type="text" type="text"
@@ -83,7 +83,7 @@
placeholder="请输入手机号" placeholder="请输入手机号"
/> />
</el-form-item> </el-form-item>
</el-col> </div>
<el-button <el-button
type="primary" type="primary"
@click="captcha" @click="captcha"
@@ -394,6 +394,7 @@ const handleContact = () => {
align-items: center; align-items: center;
.text { .text {
cursor: pointer; cursor: pointer;
color: #2282fe;
} }
} }
.visitor { .visitor {
@@ -460,6 +461,38 @@ const handleContact = () => {
.flex-between { .flex-between {
display: flex; display: flex;
justify-content: space-between; 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> </style>