624 lines
13 KiB
SCSS
624 lines
13 KiB
SCSS
page{
|
|
background-color: #F6F6F6;
|
|
}
|
|
.main{
|
|
background: url('https://zhkj1.oss-cn-shanghai.aliyuncs.com/zhscMerchant/bcges.png');
|
|
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: 5px;
|
|
z-index: 88;
|
|
.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 1px 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: 1.5px;
|
|
margin-top: 0.8px;
|
|
}
|
|
.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: 27rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.head_search_btn{
|
|
width: 120rpx;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: 500;
|
|
}
|
|
.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_top{
|
|
.head_fixed{
|
|
background-color: #f6f6f6;
|
|
color: #999999;
|
|
font-size: 26rpx;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: center;
|
|
padding-bottom: 10px;
|
|
}
|
|
.grid_wrap{
|
|
padding: 10rpx 20rpx 20rpx 20rpx;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
|
|
.grid_wrap_l{
|
|
width: 338rpx;
|
|
height: 338rpx;
|
|
background-color: #999999;
|
|
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;
|
|
-webkit-animation: 3s scaleDr ease-in-out infinite;
|
|
animation: 3s scaleDr ease-in-out infinite;
|
|
}
|
|
}
|
|
.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;
|
|
display: inline-block;
|
|
margin-left: 20rpx;
|
|
height: 900rpx;
|
|
.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: 1px 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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.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;
|
|
-webkit-animation: 3s scaleDr ease-in-out infinite;
|
|
animation: 3s scaleDr ease-in-out infinite;
|
|
}
|
|
.footer_cont_img{
|
|
position: absolute;
|
|
z-index: 1;
|
|
width: 80rpx;
|
|
height: 80rpx;
|
|
left: 0;
|
|
top: 0;
|
|
-webkit-animation: 3s scaleDr ease-in-out infinite;
|
|
animation: 3s scaleDr ease-in-out infinite;
|
|
}
|
|
}
|
|
.footer_cont_m{
|
|
margin-left: 25rpx;
|
|
.footer_cont_m_price{
|
|
font-size: 40rpx;
|
|
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: 28rpx;
|
|
color: #FFFFFF;
|
|
font-weight: 500;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
.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;
|
|
}
|
|
@keyframes scaleDr{
|
|
0% {
|
|
transform: scale(0.98);
|
|
}
|
|
25% {
|
|
transform: scale(1.05);
|
|
}
|
|
50% {
|
|
transform: scale(1);
|
|
}
|
|
75% {
|
|
transform: scale(1.05);
|
|
}
|
|
}
|
|
// 结束
|
|
|
|
|
|
//多规格
|
|
.multiPopup{
|
|
background-color: #FFFFFF;
|
|
border-top-left-radius: 25rpx;
|
|
border-top-right-radius: 25rpx;
|
|
max-height: 800rpx;
|
|
overflow-y: auto;
|
|
position: relative;
|
|
.shop_open_close{
|
|
width: 80rpx;
|
|
height: 80rpx;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.shop_open_close image{
|
|
width: 45rpx;
|
|
height: 45rpx;
|
|
}
|
|
.multishop{
|
|
display: flex;
|
|
padding: 25rpx 25rpx 0rpx 25rpx;
|
|
.multishop_img{
|
|
width: 180rpx;
|
|
height: 180rpx;
|
|
border-radius: 10rpx;
|
|
}
|
|
.multishop_text{
|
|
width: 460rpx;
|
|
margin-left: 20rpx;
|
|
.multishop_title{
|
|
font-size: 28rpx;
|
|
color: #333;
|
|
font-weight: 500;
|
|
margin-top: 5rpx;
|
|
min-height: 115rpx;
|
|
}
|
|
.multishop_title text{
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 2;
|
|
}
|
|
.multishop_price{
|
|
font-size: 32rpx;
|
|
color: #FD3F3F;
|
|
font-weight: 500;
|
|
.multishop_name{
|
|
color: #999;
|
|
font-size: 23rpx;
|
|
text-decoration: line-through;
|
|
margin-left: 5rpx;
|
|
font-weight: 400;
|
|
}
|
|
.multishop_name::before{
|
|
content: "¥";
|
|
font-size: 20rpx;
|
|
margin-right: 5rpx;
|
|
}
|
|
}
|
|
.multishop_price::before{
|
|
content: "¥";
|
|
font-size: 24rpx;
|
|
margin-right: 5rpx;
|
|
}
|
|
|
|
}
|
|
}
|
|
.multishop_list{
|
|
padding: 25rpx 25rpx 0rpx 25rpx;
|
|
.multishop_list_title{
|
|
font-size: 28rpx;
|
|
color: #333;
|
|
font-weight: 500;
|
|
margin-bottom: 25rpx;
|
|
}
|
|
.multishop_list_item{
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
.multishop_list_name{
|
|
padding: 12rpx 35rpx 12rpx 35rpx;
|
|
border-radius: 10rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 24rpx;
|
|
color: #333333;
|
|
background-color: #f6f6f6;
|
|
margin-right: 25rpx;
|
|
margin-bottom: 25rpx;
|
|
border:1px solid #f6f6f6;
|
|
}
|
|
.multishop_list_arver{
|
|
background-color: #FFD7D7;
|
|
border:1px solid #fd3f3f;
|
|
color: #fd3f3f;
|
|
}
|
|
|
|
}
|
|
}
|
|
.footer_multi{
|
|
position: fixed;
|
|
bottom: 0rpx;
|
|
width: 100%;
|
|
background-color: #FFFFFF;
|
|
border-top-left-radius: 20rpx;
|
|
border-top-right-radius: 20rpx;
|
|
.multishop_amount{
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding-left: 25rpx;
|
|
padding-right: 25rpx;
|
|
margin-top: 15rpx;
|
|
margin-bottom: 40rpx;
|
|
.multishop_name_amount{
|
|
font-size: 28rpx;
|
|
color: #333;
|
|
font-weight: 500;
|
|
}
|
|
.multishop_data_edit{
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
.multishop_data_edit_img{
|
|
width: 55rpx;
|
|
height: 50rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-top: 1px solid #E9E9E9;
|
|
border-bottom: 1px solid #E9E9E9;
|
|
.multishop_data_edit_imgurl{
|
|
width: 25rpx;
|
|
height: 25rpx;
|
|
display: block;
|
|
}
|
|
}
|
|
.border_l{
|
|
border-left: 1px solid #E9E9E9;
|
|
border-top-left-radius: 50rpx;
|
|
border-bottom-left-radius: 50rpx;
|
|
}
|
|
.border_r{
|
|
border-right: 1px solid #E9E9E9;
|
|
border-top-right-radius: 50rpx;
|
|
border-bottom-right-radius: 50rpx;
|
|
}
|
|
}
|
|
.multishop_data_number{
|
|
width: 60rpx;
|
|
height: 50rpx;
|
|
font-size: 28rpx;
|
|
color: #333;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: 1px solid #E9E9E9;
|
|
}
|
|
}
|
|
.footer_multi_btn{
|
|
margin: 0 28rpx 0 28rpx;
|
|
height:84rpx;
|
|
background-color: #FD3F3F;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 32rpx;
|
|
color: #FFFFFF;
|
|
border-radius: 50rpx;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
} |