TakeOutShop/pages/classify/style.scss

351 lines
7.2 KiB
SCSS

page{
background-color: #F6F6F6;
}
.mian{
background: linear-gradient(180deg, #FCF0F1 0%, #f6f6f6 60%);
// 头部样式
.head{
position: fixed;
z-index: 88;
width: 100%;
top: 0;
left: 0;
background:#FCF0F1;
.head_search{
width: 517rpx;
margin:0rpx 0px 0rpx 10px;;
display: flex;
align-items: center;
background-color: #FFFFFF;
height: 38px;
border-radius: 50rpx;
font-size: 28rpx;
color: #000000;
justify-content: space-between;
.head_search_img{
width: 20px;
height: 20px;
margin-right: 13rpx;
margin-left: 23rpx;
}
.head_search_input{
width: 500rpx;
height: 100%;
font-size: 27rpx;
display: flex;
align-items: center;
}
}
.head_class{
white-space: nowrap;
padding-left: 5px;
height: 50px;
line-height: 50px;
position: relative;
.head_class_scroll{
overflow: hidden;
height: 50px;
width: 90%;
.head_class_item{
padding: 0rpx 10px 0rpx 10px;
height: 50px;
display: inline-block;
.head_class_title{
font-size: 28rpx;
color: #666666;
text-align: center;
height: 24px;
line-height: 24px;
}
.head_class_active{
margin: 0 auto;
width: 32px;
height: 8px;
display: block;
}
}
.head_class_item_active{
.head_class_title{
font-size: 32rpx;
color: #333333;
font-weight: 500;
}
.head_class_active_img{
background: url(../../static/act.png);
background-repeat: no-repeat;
background-size: 100% 100%;
width: 32px;
height: 8px;
}
}
}
.head_class_btn{
position: absolute;
top: 0;
right: 0px;
width: 50px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(252, 240, 241, 0.3);
backdrop-filter: blur(2px);
.head_class_arrow_box{
width: 30px;
height: 30px;
border-radius: 50%;
background-color: #FFFFFF;
position: relative;
display: flex;
align-items: center;
justify-content: center;
.head_class_arrow_box_img{
width: 50rpx;
height: 50rpx;
}
}
}
}
}
// 商品区域样式
.cont_view{
height: 100vh;
.head_fixed{
background-color: #f6f6f6;
color: #999999;
font-size: 26rpx;
display: flex;
align-items: flex-end;
justify-content: center;
padding-bottom: 10px;
}
.shop_view{
padding: 13rpx 20rpx 0rpx 20rpx;
display: flex;
justify-content: space-between;
.shop_view_ul{
width: 346rpx;
.shop_view_li{
background-color: #FFFFFF;
border-radius: 20rpx;
width: 100%;
box-shadow: 0 4rpx 8rpx rgba(0,0,0,.05);
margin-bottom: 20rpx;
.shop_view_li_swiper{
width: 100%;
height: 504rpx;
.shop_view_li_swiper_item{
width: 100%;
.shop_view_li_swiper_img_url{
width: 100%;
height: 504rpx;
display: block;
border-radius: 20rpx;
}
}
}
.shop_view_img{
// width: 100%;
position: relative;
padding: 10rpx 10rpx 0rpx 10rpx;
.shop_view_tag{
width: 66rpx;
height: 42rpx;
position: absolute;
z-index: 2;
right: -15rpx;
top: 20rpx;
background: url(../../static/tag_img.png);
background-repeat: no-repeat;
background-size: 100% 100%;
.shop_view_tag_text{
font-size: 20rpx;
color: #FFFFFF;
height: 30rpx;
display: flex;
align-items: center;
justify-content: center;
}
}
.shop_view_img_u{
width: 100%;
.shop_view_img_url{
width: 100%;
height: 300rpx;
display: block;
border-radius: 20rpx;
}
}
}
.shop_view_cont{
padding: 20rpx;
.shop_view_cont_title{
font-size: 28rpx;
font-weight: 500;
color: #000000;
min-height: 80rpx;
}
.shop_view_cont_title text{
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
word-break: break-all;
}
.shop_view_cont_desc{
color: #666666;
font-size: 24rpx;
}
.shop_view_cont_desc text{
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
word-break: break-all;
}
.shop_view_cont_tag{
display: flex;
flex-wrap: wrap;
.shop_view_cont_tag_text{
border-radius: 6rpx;
border: 1px solid #FF6868;
padding: 0rpx 10rpx;
border-radius: 10rpx;
color: #ff6868;
font-size: 18rpx;
margin-top: 10rpx;
margin-right: 10rpx;
}
}
}
.shop_view_cont_bottom{
display: flex;
align-items: center;
justify-content: space-between;
.shop_view_cont_price{
font-size: 32rpx;
color: red;
font-weight: 500;
}
.shop_view_cont_cart{
width: 65rpx;
height: 65rpx;
display: flex;
align-items: center;
justify-content: flex-end;
.shop_view_cont_cart_img{
width: 40rpx;
height: 40rpx;
display: block;
}
}
}
}
.shop_view_bcg{
background-color: inherit;
}
}
}
.load_desc{
font-size: 28rpx;
color: #aaa;
text-align: center;
padding-top: 30rpx;
padding-bottom: 30rpx;
}
}
.price::before {
content: '¥';
font-size: 24rpx;
margin-right: 5rpx;
}
.prices::before {
content: '¥';
font-size: 20rpx;
margin-right: 5rpx;
margin-left: 5rpx;
}
.market_name{
color: #999999;
font-size: 23rpx;
text-decoration: line-through;
margin-left: 5rpx;
font-weight: 400;
}
.nav_popup{
padding-bottom:5px;
width: 100%;
position: fixed;
top:0;
z-index:99;
.nav_head{
border-bottom-left-radius: 20px;
border-bottom-right-radius: 20px;
background: linear-gradient(180deg,#FCF0F1 0%,#FFFFFF 60%);
.nav_head_class{
margin: 0 10px 0 10px;
height: 50px;
display: flex;
align-items: center;
justify-content: space-between;
.nav_head_name{
font-size: 28rpx;
color: #333333;
font-weight: 500;
}
.nav_head_class_arrow_box{
width: 30px;
height: 30px;
border-radius: 50%;
background-color: #EFEFEF;
position: relative;
display: flex;
align-items: center;
justify-content: center;
.nav_head_class_arrow_box_img{
width: 50rpx;
height: 50rpx;
}
}
}
.nav_popup_list{
display: flex;
flex-wrap: wrap;
.nav_popup_item{
background-color: #F0EFF4;
border:1px solid #F0EFF4;
width: 162rpx;
height: 58rpx;
border-radius: 6rpx;
color: #333333;
font-size: 24rpx;
margin-left: 10px;
font-weight: 500;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 15px;
}
.nav_popup_selected{
border:1px solid #FF6868;
color: #FF6868;
}
}
}
}
.bcg_popup{
background-color: rgba(0,0,0,0.4);
width: 100%;
height: 100vh;
position: fixed;
top:0;
z-index:30;
}
}