bk-shop/src/pages/recommend/list.scss

294 lines
6.2 KiB
SCSS
Executable File

@import '../../style/imports';
.sp-loading {
margin-top: 70px;
}
.page-recommend-list {
.recommend-content {
width: 100%;
.top-txt {
margin-top: 46px;
margin-bottom: 40px;
&-title {
text-align: center;
font-size: 30px;
margin-bottom: 24px;
font-weight: bold;
}
&-dec {
white-space: pre-wrap;
word-wrap: break-word;
text-align: center;
margin-bottom: 30px;
&-item {
text-align: center;
font-size: 20px;
line-height: 1.5;
margin: 0 auto;
}
}
.line {
margin: 0 auto;
width: 50px;
height: 6px;
background: #000;
border-radius: 4px;
}
}
.content-item {
margin-bottom: 50px;
}
}
.active-content {
position: relative;
.swiper {
--height: calc(var(--status-bar-height) + #{$tabbar-height} + var(--area-bottom-height));
width: 100%;
height: calc(100vh - var(--height));
transition: height 0.3s ease-in-out;
position: relative;
}
.spot-pagination {
animation: fadeInAnimation 0.35s ease-in;
position: absolute;
left: 50%;
transform: translateX(-50%);
// bottom: 10%;
bottom: 100px;
display: flex;
justify-content: center;
width: 80%;
border-radius: 10%;
.spot-pagination-bullet {
height: 4px;
width: 30px;
background: #ddd;
transition: all 0.3s ease-in-out 0s;
}
// 当前指示点样式
.spot-pagination-bullet-active {
background: #fff;
}
}
.item-btns {
display: flex;
flex-direction: column;
align-items: flex-start;
position: absolute;
left: 66px;
bottom: 170px;
z-index: 10;
// justify-content: flex-start;
.item-tit {
font-size: 42px;
font-weight: bold;
margin-bottom: 36px;
color: #fff;
}
.item-btn {
// width: 180px;
// height: 56px;
padding: 30px 70px 30px 90px;
color: #fff;
font-size: 28px;
border-radius: 10px;
background-color: #00000085;
border-width: 2px;
border-style: solid;
border-color: #fff;
display: flex;
justify-content: center;
align-items: center;
font-size: 22px;
line-height: 1;
.icon-my {
font-size: 28px;
font-weight: bold;
margin-left: 16px;
}
}
}
}
/* #ifdef alipay */
.filter-bar {
position: absolute;
width: 100%;
z-index: 9999;
top: 90px;
}
/* #endif */
.recommend-list {
&__toolbar {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: $z-index-level-4;
background: #fff;
box-shadow: $box-shadow;
padding-top: 10px;
.icon-periscope {
color: #ccc;
display: inline-block;
}
.at-search-bar {
padding: 0px 30px !important;
}
.search-input {
box-shadow: none;
/* #ifdef alipay */
padding: 20px 0;
/* #endif */
&__focus {
.at-search-bar {
padding-right: 30px !important;
}
}
}
.at-search-bar__input {
height: $searchbar-height !important;
}
.at-search-bar__input-cnt {
flex: none;
border-radius: $searchbar-height;
}
.at-search-bar__clear {
height: $searchbar-height;
}
.at-search-bar__action {
display: none;
}
.filter-icon {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100px;
font-size: 20px;
.icon-list {
font-size: 55px;
line-height: 0.8;
}
}
}
&__tabs {
display: flex;
.filter-bar__item {
flex: 1;
justify-content: center;
text-align: center;
color: #666666;
font-size: 26px;
.icon-menu,
.icon-periscope {
color: #ccc;
display: inline-block;
font-size: 28px;
}
&.region-picker {
display: flex;
line-height: 75rpx;
}
.icon-close {
line-height: 75px;
}
}
.filter-bar__item-active {
color: $color-brand-primary;
}
}
&__scroll {
@include page-scroll(
$tabs-height + $searchbar-height + $navigate-height + 10,
$tabbar-height + floor($edge-margin / 2)
);
top: 155px;
}
&__type-grid {
display: flex;
flex-wrap: wrap;
.recommend-list__item {
width: 50%;
padding: 10px;
box-sizing: border-box;
}
}
}
&__search {
position: relative;
&.on-search {
.at-search-bar {
padding-right: 0 !important;
}
}
}
.drawer-item {
padding: 10px 22px 10px 12px;
margin-bottom: 30px;
&__title {
display: flex;
justify-content: space-between;
font-size: 24px;
color: #555555;
margin-bottom: 25px;
}
&__options {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
&__item {
width: 172px;
height: 250px;
line-height: 88px;
text-align: center;
color: #555555;
background-color: #f6f6f6;
margin-bottom: 12px;
font-size: 26px;
}
&__checked {
background-color: $color-brand-primary;
color: #ffffff;
}
&__none {
width: 172px;
height: 0;
}
}
}
.drawer-footer {
position: fixed;
bottom: 0;
right: 0;
width: 100%;
&__btn {
width: 50%;
display: inline-block;
height: 87px;
line-height: 87px;
text-align: center;
background-color: #fafafa;
&_active {
background: $color-brand-primary;
color: #ffffff;
}
}
}
.region-picker {
display: flex;
justify-content: center;
align-items: center;
line-height: 75rpx;
.icon-close {
margin-left: 10px;
line-height: 75px;
}
}
.sp-float-layout {
.icon-guanbi {
line-height: 1;
}
}
}