@charset "UTF-8";
|
/* 页面左右间距 */
|
/* 文字尺寸 */
|
/*文字颜色*/
|
/* 边框颜色 */
|
/* 图片加载中颜色 */
|
/* 行为相关颜色 */
|
page,
|
.content {
|
background: #f8f8f8;
|
}
|
.content {
|
padding-top: 96rpx;
|
}
|
.navbar {
|
position: fixed;
|
left: 0;
|
top: 0px;
|
display: flex;
|
width: 100%;
|
height: 80rpx;
|
background: #fff;
|
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.06);
|
z-index: 10;
|
}
|
.navbar .nav-item {
|
flex: 1;
|
display: flex;
|
justify-content: center;
|
align-items: center;
|
height: 100%;
|
font-size: 30rpx;
|
color: #303133;
|
position: relative;
|
}
|
.navbar .nav-item.current {
|
color: #fa436a;
|
}
|
.navbar .nav-item.current:after {
|
content: '';
|
position: absolute;
|
left: 50%;
|
bottom: 0;
|
-webkit-transform: translateX(-50%);
|
transform: translateX(-50%);
|
width: 120rpx;
|
height: 0;
|
border-bottom: 4rpx solid #fa436a;
|
}
|
.navbar .p-box {
|
display: flex;
|
flex-direction: column;
|
}
|
.navbar .p-box .yticon {
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
width: 30rpx;
|
height: 14rpx;
|
line-height: 1;
|
margin-left: 4rpx;
|
font-size: 26rpx;
|
color: #888;
|
}
|
.navbar .p-box .yticon.active {
|
color: #fa436a;
|
}
|
.navbar .p-box .xia {
|
-webkit-transform: scaleY(-1);
|
transform: scaleY(-1);
|
}
|
.navbar .cate-item {
|
display: flex;
|
justify-content: center;
|
align-items: center;
|
height: 100%;
|
width: 80rpx;
|
position: relative;
|
font-size: 44rpx;
|
}
|
.navbar .cate-item:after {
|
content: '';
|
position: absolute;
|
left: 0;
|
top: 50%;
|
-webkit-transform: translateY(-50%);
|
transform: translateY(-50%);
|
border-left: 1px solid #ddd;
|
width: 0;
|
height: 36rpx;
|
}
|
/* 分类 */
|
.cate-mask {
|
position: fixed;
|
left: 0;
|
top: 0px;
|
bottom: 0;
|
width: 100%;
|
background: rgba(0, 0, 0, 0);
|
z-index: 95;
|
transition: .3s;
|
}
|
.cate-mask .cate-content {
|
width: 630rpx;
|
height: 100%;
|
background: #fff;
|
float: right;
|
-webkit-transform: translateX(100%);
|
transform: translateX(100%);
|
transition: .3s;
|
}
|
.cate-mask.none {
|
display: none;
|
}
|
.cate-mask.show {
|
background: rgba(0, 0, 0, 0.4);
|
}
|
.cate-mask.show .cate-content {
|
-webkit-transform: translateX(0);
|
transform: translateX(0);
|
}
|
.cate-list {
|
display: flex;
|
flex-direction: column;
|
height: 100%;
|
}
|
.cate-list .cate-item {
|
display: flex;
|
align-items: center;
|
height: 90rpx;
|
padding-left: 30rpx;
|
font-size: 28rpx;
|
color: #555;
|
position: relative;
|
}
|
.cate-list .two {
|
height: 64rpx;
|
color: #303133;
|
font-size: 30rpx;
|
background: #f8f8f8;
|
}
|
.cate-list .active {
|
color: #fa436a;
|
}
|
/* 商品列表 */
|
.goods-list {
|
display: flex;
|
flex-wrap: wrap;
|
padding: 0 30rpx;
|
background: #fff;
|
}
|
.goods-list .goods-item {
|
display: flex;
|
flex-direction: column;
|
width: 48%;
|
padding-bottom: 40rpx;
|
}
|
.goods-list .goods-item:nth-child(2n+1) {
|
margin-right: 4%;
|
}
|
.goods-list .image-wrapper {
|
width: 100%;
|
height: 330rpx;
|
border-radius: 3px;
|
overflow: hidden;
|
}
|
.goods-list .image-wrapper image {
|
width: 100%;
|
height: 100%;
|
opacity: 1;
|
}
|
.goods-list .title {
|
font-size: 32rpx;
|
color: #303133;
|
line-height: 80rpx;
|
}
|
.goods-list .price-box {
|
display: flex;
|
align-items: center;
|
justify-content: space-between;
|
padding-right: 10rpx;
|
font-size: 24rpx;
|
color: #909399;
|
}
|
.goods-list .price {
|
font-size: 32rpx;
|
color: #fa436a;
|
line-height: 1;
|
}
|
.goods-list .price:before {
|
content: '¥';
|
font-size: 26rpx;
|
}
|