mrr.sj.front/unpackage/dist/dev/mp-weixin/pages/home/home.wxss

494 lines
9.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@charset "UTF-8";
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.home-page {
padding-bottom: 30rpx;
min-height: 100vh;
background: var(--bgCloor);
}
.positon {
top: 0;
left: 0;
right: 0;
z-index: 9999;
padding-bottom: 12rpx;
background-position: 0 0;
background-size: 100%;
}
.positon .more_address {
width: 10rpx;
height: 18rpx;
}
.positonFixed {
position: fixed;
}
.header {
width: 700rpx;
height: 68rpx;
display: flex;
flex-flow: row nowrap;
justify-content: flex-start;
align-items: center;
margin: 13rpx 24rpx 0rpx;
background-color: #fff;
border-radius: 34rpx;
padding: 0 4rpx 0 30rpx;
box-sizing: border-box;
position: relative;
z-index: 99;
}
.location-cont {
margin: 0 24rpx;
margin-top: 12rpx;
display: flex;
flex-flow: row nowrap;
justify-content: flex-start;
align-items: center;
position: relative;
z-index: 9;
}
.location-logo {
font-size: 36rpx;
font-weight: 400;
color: #000000;
margin-right: 16rpx;
}
.position-icon {
width: 23rpx;
height: 26rpx;
margin-right: 6rpx;
}
.location-text {
font-family: PingFangSC, PingFang SC;
font-weight: 500;
font-size: 28rpx;
margin-right: 10rpx;
color: #ffffff;
line-height: 34rpx;
text-align: left;
font-style: normal;
/* 1. 强制文本不换行 */
white-space: nowrap;
/* 2. 隐藏超出容器的内容 */
overflow: hidden;
/* 3. 超出部分显示省略号 */
text-overflow: ellipsis;
/* 可选:设置容器宽度(根据需求调整) */
max-width: 400rpx;
/* 例如固定宽度,或使用 max-width 自适应 */
}
.search-input {
flex: 1;
color: #333333;
height: 68rpx;
line-height: 68rpx;
font-size: 26rpx;
border: none;
}
.search-icon {
width: 30rpx;
height: 32rpx;
margin-left: 30rpx;
}
.banner {
height: 256rpx;
border-radius: 20rpx;
margin: 0 24rpx;
border-radius: 20rpx;
overflow: hidden;
box-shadow: 0 8rpx 16rpx 0 rgba(0, 0, 0, 0.05);
}
.swiper {
height: 256rpx;
width: 702rpx;
}
.banner-image {
height: 256rpx;
width: 702rpx;
background-color: #fff;
}
.appointment-buttons {
margin-top: 20rpx;
gap: 14rpx;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.appointment-buttons .more_icon {
width: 10rpx;
height: 18rpx;
}
.button-item {
box-sizing: border-box;
padding: 0 24rpx 0 30rpx;
width: 338rpx;
height: 118rpx;
text-align: center;
background-color: #fff;
border-radius: 20rpx;
display: flex;
justify-content: center;
align-items: center;
box-sizing: border-box;
box-shadow: 0 8rpx 16rpx 0 rgba(0, 0, 0, 0.05);
}
.button-icon {
width: 70rpx;
height: 70rpx;
}
.button-right {
flex: 1;
padding-left: 20rpx;
}
.button-text {
width: 100%;
display: block;
color: #333333;
font-weight: 500;
font-size: 30rpx;
margin-bottom: 2rpx;
text-align: left;
}
.button-desc {
width: 100%;
display: block;
font-size: 22rpx;
color: #8c8c8c;
text-align: left;
}
.recruitment {
margin: 32rpx 24rpx 0;
border-radius: 20rpx;
overflow: hidden;
width: 700rpx;
height: 240rpx;
background-color: #fff;
}
.recruitment-img {
width: 700rpx;
height: 240rpx;
background-color: #fff;
}
.recommend {
height: 300rpx;
border-radius: 20rpx;
background-color: #fff;
display: flex;
flex-flow: row nowrap;
justify-content: space-between;
align-items: center;
padding: 24rpx 16rpx;
box-sizing: border-box;
margin: 0 24rpx 32rpx;
}
.recommend-item {
width: 316rpx;
}
.recommend-tit {
display: flex;
flex-flow: row nowrap;
justify-content: space-between;
align-items: flex-end;
margin-bottom: 12rpx;
}
.recommend-img {
width: 316rpx;
height: 188rpx;
background-color: #000;
border-radius: 30rpx;
}
.recommend-text {
font-size: 36rpx;
color: #1d2129;
display: block;
margin-top: 5px;
color: #333;
}
.recommend-desc {
font-size: 24rpx;
color: #808080;
}
.hot-cont {
background-color: #ffe8ee;
border-radius: 20rpx;
margin: 32rpx 24rpx 0;
}
.hot-item {
padding: 24rpx;
box-sizing: border-box;
}
.section-title {
font-size: 36rpx;
color: #1d2129;
margin-bottom: 16rpx;
}
.section-cont {
display: flex;
flex-flow: row nowrap;
justify-content: flex-start;
align-items: center;
}
.product-item {
display: flex;
flex-flow: column nowrap;
justify-content: space-between;
align-items: flex-start;
width: 200rpx;
border-radius: 10rpx;
margin-right: 26rpx;
}
.product-item:last-child {
margin-right: 0;
}
.product-img {
width: 200rpx;
height: 200rpx;
background-color: #fff;
margin-bottom: 16rpx;
}
.product-title {
font-size: 24rpx;
color: #000000;
margin-bottom: 18rpx;
padding: 0 16rpx;
height: 72rpx;
}
.product-price {
font-size: 24rpx;
color: #e8101e;
padding: 0 16rpx;
}
.nav-list {
position: relative;
display: flex;
justify-content: space-between;
align-items: center;
padding: 40rpx 80rpx 38rpx;
}
.nav-item {
position: relative;
text-align: center;
}
.nav-tit {
font-weight: 500;
font-size: 32rpx;
height: 32rpx;
line-height: 32rpx;
color: var(--noCheckCloor);
position: relative;
z-index: 9;
}
.nav-color {
color: var(--checkCloor);
}
.nav_split {
position: relative;
}
.nav_split::after {
content: "";
position: absolute;
width: 1rpx;
height: 32rpx;
background: #d8d8d8;
border-radius: 1rpx;
left: -44rpx;
top: 50%;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
}
.nav_split::before {
content: "";
position: absolute;
width: 1rpx;
height: 32rpx;
background: #d8d8d8;
border-radius: 1rpx;
right: -44rpx;
top: 50%;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
}
.nav-active {
width: 76rpx;
height: 8rpx;
background: var(--checkCloor);
border-radius: 4rpx;
position: absolute;
bottom: -18rpx;
left: 50%;
-webkit-transform: translate(-50%);
transform: translate(-50%);
}
.pro-list {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
}
.loading {
text-align: center;
margin-top: 40rpx;
font-size: 24rpx;
color: #cecece;
}
/* APP适配 */
/* 小程序适配 */
.positon {
padding-top: calc(25px + constant(safe-area-inset-top));
padding-top: calc(25px + env(safe-area-inset-top));
}
.positon {
height: calc(25px + constant(safe-area-inset-top) + 150rpx);
height: calc(25px + env(safe-area-inset-top) + 150rpx);
}
.bgImage {
background-position: 0 0;
background-size: 100%;
position: relative;
}
.bgImage::after {
content: "";
position: absolute;
width: 100%;
height: 40rpx;
background: var(--bgCloor);
bottom: 0;
}
.bgImage .bgText {
margin-top: 12rpx;
margin-bottom: 6 rpx;
width: 484rpx;
height: 55rpx;
margin-left: 30rpx;
}
.bgImage .classList {
height: 100%;
background-color: #fff;
border-radius: 20rpx;
overflow: hidden;
position: relative;
z-index: 100;
}
.bgImage .service-icons {
display: flex;
flex-wrap: wrap;
gap: 30rpx 44rpx;
padding-top: 20rpx;
padding-bottom: 30rpx;
padding-left: 40rpx;
padding-right: 40rpx;
background-position: 0 0;
background-size: 100%;
background-repeat: no-repeat;
}
.bgImage .icon-item {
text-align: center;
display: flex;
flex-flow: column nowrap;
justify-content: space-between;
align-items: center;
min-width: 98rpx;
}
.bgImage .icon {
width: 60rpx;
height: 60rpx;
margin-bottom: 14rpx;
}
.bgImage .bigIcon {
width: 98rpx;
height: 98rpx;
margin-bottom: 10rpx;
}
.bgImage .icon2 {
width: 80rpx;
height: 80rpx;
margin-bottom: 12rpx;
}
.bgImage .icon-text {
display: block;
font-size: 24rpx;
color: #333333;
}
.bgImage .qiehuan {
height: 8rpx;
border-radius: 4rpx;
display: flex;
flex-flow: row nowrap;
justify-content: center;
align-items: center;
margin-bottom: 32rpx;
}
.bgImage .qiehuan-item {
width: 34rpx;
height: 8rpx;
border-radius: 4rpx;
background-color: #e9e9e9;
}
.bgImage .qiehuanA {
background-color: #d3b8ff;
}
.btn_search {
width: 100rpx;
height: 58rpx;
border-radius: 28rpx;
display: flex;
justify-content: center;
align-items: center;
background-image: url("https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/9d4a7b6f-6729-49f0-9bd1-ac08e75fd5a7");
background-size: cover;
color: #fff;
font-size: 26rpx;
}
.reserve-card {
margin: 20rpx 20rpx;
}
.reserve-card .reserve-card-img1 {
width: 345rpx;
height: 261rpx;
}
.reserve-card .reserve-card-right {
flex: 1;
display: flex;
flex-wrap: wrap;
align-content: space-between;
justify-content: flex-end;
}
.reserve-card .reserve-card-img2 {
width: 345rpx;
height: 125rpx;
margin-bottom: 10rpx;
}
.reserve-card .reserve-card-img3 {
width: 345rpx;
height: 125rpx;
}
.home-Lottery {
width: 710rpx;
height: 206rpx;
padding: 0 20rpx;
}