Files
peko-h5/view/peko/homeCheck/css/index.scss
2023-04-27 18:29:13 +08:00

494 lines
9.2 KiB
SCSS

@function px2rem($px, $rem: 75) {
@return $px / $rem+rem;
}
body,
html {
width: 100%;
height: 100%;
font-family: "Heiti SC", "Microsoft Sans Serif";
//overflow: hidden;
}
.container {
position: relative;
}
// pc端
// @media screen and (min-width:769px) {
// .m-bg {
// display: none;
// img {
// display: block;
// }
// }
// }
.homePc {
width: 100%;
height: 10.8rem;
background: url(../images/homePc.png) no-repeat;
background-size: 100% 100%;
position: relative;
overflow: hidden;
.logo {
width: 2.35rem;
height: 0.8rem;
position: absolute;
top: 0.36rem;
left: 2.4rem;
}
.name {
font-size: 0.3rem;
color: #282828;
font-weight: 600;
position: absolute;
top: 0.55rem;
left: 3.22rem;
}
.charge {
font-size: 0.32rem;
color: #282828;
font-weight: 600;
position: absolute;
right: 4.24rem;
top: 0.5rem;
}
p {
font-size: 0.32rem;
color: #282828;
font-weight: 600;
position: absolute;
right: 3.95rem;
top: 0.5rem;
}
.zhichi {
font-size: 0.3rem;
color: #282828;
font-weight: 600;
position: absolute;
right: 2.4rem;
top: 0.5rem;
}
.swiper {
width: 12.6rem;
height: 9.55rem;
margin: 1.25rem 0 0 4.1rem;
position: relative;
// top: 0.81rem;
// left: 50%;
// transform: translateX(-50%);
// overflow: hidden;
overflow-y: hidden;
.swiper-wrapper {
width: 10.8rem;
height: 100%;
.swiper-slide {
// width: 100%;
// height: 100%;
img {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
}
}
/*先去掉前进后退按钮默认样式*/
--swiper-navigation-size:0;
}
.swiper-pagination {
width: 0.63rem;
height: 2.07rem;
background-color: rgba(0, 0, 0, 0.4);
border-radius: 0.4rem;
position: absolute;
top: 3.5rem;
right: 0rem;
.swiper-pagination-bullet {
width: 0.22rem !important;
height: 0.22rem !important;
background: none !important;
background-image: url(../images/li.png) !important;
background-size: 100% 100% !important;
opacity: 1 !important;
margin: 0.35rem auto;
}
.swiper-pagination-bullet-active {
// width: 30px !important;
// height: 30px !important;
background: none !important;
background-image: url(../images/li_active.png) !important;
background-size: 100% 100% !important;
opacity: 1 !important;
}
}
}
}
.eori {
// height: 1.2rem;
width: 100%;
background: #30312C;
color: rgb(255, 255, 255);
padding: 0.2rem 0;
vertical-align: top;
.recordfoot {
color: #fff;
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 0.1rem;
.record {
display: inline-block;
padding-right: px2rem(4);
height: 0.16rem;
width: 0.15rem;
// background: url(../images/icon_police.png) no-repeat;
}
a {
font-size: 0.2rem;
color: #fff;
}
}
.gongsi {
display: flex;
justify-content: center;
text-align: center;
p {
font-size: 0.2rem;
&:nth-child(2) {
margin: 0 0.2rem;
}
}
}
}
.service {
position: fixed;
left: 0;
bottom: 0;
top: 0;
right: 0;
background: rgba(0, 0, 0, .8);
z-index: 9999;
display: none;
.service_in {
width: 8.23rem;
height: 4.9rem;
background: #FFFFFF;
border-radius: 0.5rem;
position: relative;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
overflow: hidden;
.close {
width: 0.5rem;
height: 0.5rem;
position: absolute;
top: 0.35rem;
right: 0.4rem;
}
.title {
width: 100%;
font-size: 0.48rem;
color: #2D2727;
font-weight: 600;
text-align: center;
margin: 0.35rem 0;
}
.subhead {
width: 100%;
font-size: 0.24rem;
color: #2D2727;
font-weight: 600;
text-align: center;
margin-bottom: 0.5rem;
}
.con {
width: 100%;
height: 2.6rem;
display: flex;
justify-content: space-evenly;
align-items: center;
div {
flex: 1;
font-size: 0.2rem;
text-align: center;
}
.left {
border-right: 1px solid #F0F0F0;
p {
e {
display: inline-block;
width: 0.25rem;
height: 0.25rem;
line-height: 0.25rem;
text-align: center;
border-radius: 50%;
background-color: #ffe710;
}
}
img {
width: 3rem;
height: 1.7rem;
margin-top: 0.38rem;
}
}
.right {
p {
e {
display: inline-block;
width: 0.25rem;
height: 0.25rem;
line-height: 0.25rem;
text-align: center;
border-radius: 50%;
background-color: #ffe710;
}
}
img {
width: 1.68rem;
height: 1.68rem;
margin-top: 0.38rem;
}
}
}
}
}
// 移动端
// @media screen and (max-width:768px) {
// .pc-bg {
// display: none;
// }
// .m-bg {
// display: block;
// }
// .homeM {
// width: 100%;
// height: 14.3rem;
// background: url(../images/homeM.png) no-repeat;
// background-size: 100% 100%;
// position: relative;
// .logo {
// height: 0.5rem;
// padding: 0.1rem 0 0 0.34rem;
// display: flex;
// align-items: center;
// img {
// width: 0.5rem;
// height: 0.5rem;
// margin-right: 0.08rem;
// }
// p {
// font-size: 0.26rem;
// font-weight: 600;
// }
// }
// .charge {
// width: 0.6rem;
// height: 0.4rem;
// line-height: 0.4rem;
// text-align: center;
// border-radius: 0.1rem;
// font-size: 0.26rem;
// font-weight: 600;
// position: absolute;
// right: 0.34rem;
// top: 0.2rem;
// background-color: rgba(0, 0, 0, 0.2);
// }
// .download {
// width: 100%;
// height: 0.84rem;
// display: flex;
// justify-content: space-evenly;
// position: absolute;
// left: 0;
// bottom: 0.8rem;
// .iphone,
// .android {
// width: 2.78rem;
// height: 0.84rem;
// }
// }
// .swiper2 {
// width: 100%;
// height: 7.76rem;
// position: absolute;
// top: 4.5rem;
// overflow-x: hidden;
// .swiper-wrapper {
// width: 100%;
// height: 8rem;
// .swiper-slide {
// img {
// width: 100%;
// height: 100%;
// }
// }
// }
// .swiper-pagination {
// // width: 20%;
// // height: 50%;
// // transform: rotate(90deg);
// position: absolute;
// top: 6.8rem;
// left: 0;
// .swiper-pagination-bullet {
// width: 0.25rem !important;
// height: 0.25rem !important;
// background: none !important;
// background-image: url(../images/li.png) !important;
// background-size: 100% 100% !important;
// opacity: 1 !important;
// margin-right: 0.3rem;
// }
// .swiper-pagination-bullet-active {
// // width: 30px !important;
// // height: 30px !important;
// background: none !important;
// background-image: url(../images/li_active.png) !important;
// background-size: 100% 100% !important;
// opacity: 1 !important;
// }
// }
// }
// }
// .eori {
// // height: 1.2rem;
// width: 100%;
// background: #30312C;
// color: rgb(255, 255, 255);
// padding: 0.2rem 0;
// .recordfoot {
// color: #fff;
// display: flex;
// justify-content: center;
// align-items: center;
// .record {
// display: inline-block;
// padding-right: px2rem(4);
// height: 0.3rem;
// width: 0.3rem;
// background: url(../images/icon_police.png) no-repeat;
// }
// }
// .gongsi {
// display: block;
// text-align: center;
// p {
// line-height: 1.3;
// font-size: 0.2rem;
// &:nth-child(2) {
// margin: 0;
// }
// }
// }
// // div {
// // // height: 30px;
// // width: 100%;
// // text-align: center;
// // // line-height: 30px;
// // font-size: 14px;
// // }
// .tit {
// height: px2rem(120);
// line-height: px2rem(120);
// text-align: center;
// font-size: 20px;
// }
// }
// }
.toast {
background: rgba(0, 0, 0, 0.9);
border-radius: 10px;
width: 100px;
font-size: 16px;
position: fixed;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
color: #fff;
height: 40px;
line-height: 40px;
text-align: center;
display: none;
z-index: 9;
}
.tips {
display: none;
position: fixed;
top: 0;
right: px2rem(20);
width: px2rem(460);
z-index: 9;
}