TakeOutShop/pages/index/style.scss

522 lines
11 KiB
SCSS

page{
background-color: #F6F6F6;
}
.main{
background: url('https://zhkj1.oss-cn-shanghai.aliyuncs.com/zhscMerchant/bcges.jpg');
background-repeat: no-repeat; /* 防止重复 */
background-size:100%;
// 头部样式
.head{
position: fixed;
z-index: 100;
width: 100%;
top: 0;
left: 0;
background: url('https://zhkj1.oss-cn-shanghai.aliyuncs.com/zhscMerchant/bcges.jpg');
background-repeat: no-repeat; /* 防止重复 */
background-size:100%;
padding-bottom: 10px;
.head_location{
display: flex;
align-items: center;
height: 45px;
position: relative;
.location_title{
vertical-align: middle;
display: inline-block;
font-size: 28rpx;
color: #FFFFFF;
font-weight: 500;
}
}
.head_location::before{
content: "";
vertical-align: middle;
display: inline-block;
width: 21px;
height: 21px;
background-image: url('../../static/location.png');
background-size: cover;
margin: 0px 2px 0px 10px;
}
.head_location::after{
vertical-align: middle;
display: inline-block;
content: "";
width: 0;
height: 0;
border-left: 10rpx solid transparent;
border-right: 10rpx solid transparent;
border-top: 11rpx solid #FFFFFF;
margin-left: 3px;
margin-top: 1.5px;
}
.head_location_active{
.location_title{
color: #000000;
}
}
.head_location_active::before{
background-image: url('../../static/location_active.png');
}
.head_location_active::after{
border-top: 11rpx solid #000000;
}
.head_search{
margin:0rpx 10px 0rpx 10px;;
display: flex;
align-items: center;
background-color: #FFFFFF;
height: 40px;
border-radius: 50rpx;
font-size: 28rpx;
color: #000000;
justify-content: space-between;
.head_search_img{
width: 20px;
height: 20px;
margin-right: 13rpx;
display: block;
margin-left: 23rpx;
}
.head_search_input{
width: 560rpx;
height: 100%;
font-size: 28rpx;
display: flex;
align-items: center;
}
.head_search_btn{
width: 120rpx;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.head_search_btn::before{
content: "";
width: 1rpx;
height: 60%;
background-color:#D9D9D9;
margin-right: 20rpx;
}
.head_search_btn::after{
content: "";
width: 1rpx;
height: 60%;
margin-left: 20rpx;
}
}
}
// 推荐区域样式
.grid_wrap{
padding: 20rpx 20rpx 20rpx 20rpx;
display: flex;
justify-content: space-between;
.grid_wrap_l{
width: 338rpx;
height: 338rpx;
background-color: #000000;
border-radius: 20rpx;
overflow: hidden;
position: relative;
.grid_wrap_live{
width: 338rpx;
height: 338rpx;
position: absolute;
top: 0;
z-index: 1;
}
.grid_wrap_live_title{
font-size: 30rpx;
color: #FFFFFF;
display: flex;
z-index: 2;
top: 20rpx;
left: 20rpx;
font-weight: 500;
position: absolute;
display: flex;
align-items: center;
.grid_wrap_live_img{
width: 28rpx;
height: 28rpx;
margin-right: 10rpx;
display: block;
margin-top: 1rpx;
}
}
}
.grid_wrap_r{
width: 355rpx;
.grid_wrap_li{
padding: 20rpx;
width: 315rpx;
height: 119rpx;
background: #FFFFFF;
border-radius: 17rpx 17rpx 17rpx 17rpx;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0rpx 4rpx 8rpx 0rpx rgba(0, 0, 0, 0.05);
.grid_wrap_li_l{
.grid_wrap_li_title{
font-size: 30rpx;
color: #333333;
font-weight: 500;
display: flex;
align-items: center;
}
.grid_wrap_li_title text{
vertical-align: middle;
display: inline-block;
}
.grid_wrap_li_title::after{
vertical-align: middle;
content: "";
display: inline-block;
width: 24rpx;
height: 24rpx;
margin-left: 10rpx;
background-image: url('../../static/index/arrow.png');
background-size: cover;
}
.grid_wrap_li_desc{
color: #999999;
font-size: 24rpx;
margin-top: 5rpx;
}
}
.grid_wrap_li_r{
width: 140rpx;
height: 140rpx;
}
}
.grid_wrap_top{
margin-top: 21rpx;
}
}
}
// 滚动区域样式
.scroll_view{
width: 100%;
display: flex;
overflow: hidden;
white-space: nowrap;
.typescoll{
.scroll_view_li{
width: 620rpx;
background-color: #FFFFFF;
border-radius: 20rpx;
overflow: hidden;
padding-bottom: 30rpx;
display: inline-block;
margin-left: 20rpx;
box-shadow: 0rpx 4rpx 8rpx 0rpx rgba(0, 0, 0, 0.05);
.scroll_view_banner{
width: 100%;
height: 340rpx;
.scroll_view_bannerimg{
width: 100%;
height: 340rpx;
display: block;
}
}
.scroll_view_shop{
padding: 30rpx 30rpx 0rpx 30rpx;
display: flex;
align-items: center;
justify-content: space-between;
.scroll_view_shop_l{
width:150rpx;
height:150rpx;
position: relative;
.scroll_view_shop_no{
width: 32rpx;
height: 45rpx;
position: absolute;
z-index: 2;
top: 0;
left: 0;
border-top-left-radius: 10rpx;
}
.scroll_view_shop_img{
width:150rpx;
height:150rpx;
position: absolute;
z-index: 1;
top: 0;
border-radius: 10rpx;
}
}
.scroll_view_shop_r{
width: 385rpx;
.scroll_view_shop_title{
font-size: 28rpx;
color: #000000;
font-weight: 500;
.scroll_view_shop_desc{
color: #666666;
font-size: 22rpx;
font-weight: 400;
}
}
.scroll_view_shop_tag{
display: flex;
flex-wrap: wrap;
.scroll_view_shop_li{
border-radius: 6rpx 6rpx 6rpx 6rpx;
border: 1rpx solid #FF6868;
padding: 0rpx 10rpx 0rpx 10rpx;
border-radius: 10rpx;
color: #FF6868;
font-size: 18rpx;
margin-top: 10rpx;
margin-right: 10rpx;
}
}
.scroll_view_shop_bottom{
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 12rpx;
.scroll_view_shop_price{
font-size: 32rpx;
color: #FF0000;
font-weight: 500;
}
.scroll_view_shop_cart{
width: 65rpx;
height: 65rpx;
display: flex;
align-items: center;
justify-content: flex-end;
.scroll_view_shop_cart_img{
width: 50rpx;
height: 50rpx;
}
}
}
}
}
}
}
}
// 商品区域样式
.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;
height: 320rpx;
.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: 300rpx;
position: absolute;
z-index: 1;
left: 20rpx;
top: 20rpx;
.shop_view_img_url{
width: 100%;
height: 300rpx;
display: block;
}
}
}
.shop_view_cont{
padding: 20rpx;
.shop_view_cont_title{
font-size: 28rpx;
font-weight: 500;
color: #000000;
min-height: 80rpx;
}
.shop_view_cont_desc{
color: #666666;
font-size: 24rpx;
}
.shop_view_cont_tag{
display: flex;
flex-wrap: wrap;
.shop_view_cont_tag_text{
border-radius: 6rpx;
border: 1rpx 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;
}
}
}
.footer{
position: fixed;
z-index: 888;
left: 0;
-webkit-transform: translate3d(0, -100%, 0);
transform: translate3d(0, -100%, 0);
width: 100%;
top: 100%;
background: #FFFFFF;
border-top: 1rpx solid #F6F6F6;
border-bottom: 1rpx solid #F6F6F6;
.footer_cont{
display: flex;
align-items: center;
justify-content: space-between;
padding: 20rpx 17rpx 20rpx 40rpx;
.footer_cont_l{
display: flex;
align-items: center;
.footer_cont_cart{
width: 80rpx;
height: 80rpx;
position: relative;
.footer_cont_num{
width: 30rpx;
height: 30rpx;
position: absolute;
z-index: 2;
right: -5rpx;
top: 10rpx;
font-size: 20rpx;
display: flex;
align-items: center;
justify-content: center;
background-color: #FF0000;
border-radius: 50rpx;
color: #FFFFFF;
}
.footer_cont_img{
position: absolute;
z-index: 1;
width: 80rpx;
height: 80rpx;
left: 0;
top: 0;
}
}
.footer_cont_m{
margin-left: 25rpx;
.footer_cont_m_price{
font-size: 38rpx;
color: #FF0000;
font-weight: 500;
}
.footer_cont_m_price::before {
content: '¥';
font-size: 30rpx;
margin-right: 5rpx;
}
.footer_cont_m_desc{
font-size: 26rpx;
color: #666666;
}
}
}
.footer_cont_btn{
width: 205rpx;
height: 77rpx;
background: linear-gradient( 90deg, #FD4955 0%, #FD343C 100%);
border-radius: 40rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 30rpx;
color: #FFFFFF;
}
}
}
}
.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;
}