272 lines
4.4 KiB
Plaintext
272 lines
4.4 KiB
Plaintext
page {
|
|
background-color: #f6f6f6;
|
|
}
|
|
|
|
/* 商城搜索 */
|
|
.mallSearch {
|
|
position: fixed;
|
|
width: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
height: 120rpx;
|
|
box-sizing: border-box;
|
|
padding: 20rpx 30rpx;
|
|
background-color: #fff;
|
|
z-index: 9;
|
|
}
|
|
|
|
.mallSearch-cont {
|
|
background-color: #f7f7f7;
|
|
border-radius: 100rpx;
|
|
padding: 18rpx 30rpx;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
color: #999999;
|
|
height: 80rpx;
|
|
width: 100%;
|
|
}
|
|
|
|
.mallSearch-cont-icon {
|
|
width: 34rpx;
|
|
height: 34rpx;
|
|
margin-right: 30rpx;
|
|
margin-top: 6rpx;
|
|
}
|
|
|
|
.mallSearch-cont input {
|
|
width: calc(100% - 120px);
|
|
height: 48rpx;
|
|
line-height: 48rpx;
|
|
color: #000000;
|
|
}
|
|
|
|
.mallSearch-btn {
|
|
line-height: 48rpx;
|
|
font-size: 28rpx;
|
|
background: transparent;
|
|
color: #4c4c4c;
|
|
width: 150rpx !important;
|
|
padding: 0 !important;
|
|
border-radius: 0;
|
|
text-align: right;
|
|
}
|
|
|
|
.mallTag {
|
|
position: fixed;
|
|
left: 0;
|
|
top: 110rpx;
|
|
width: 100%;
|
|
background-color: #fff;
|
|
padding: 40rpx;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
z-index: 99;
|
|
}
|
|
|
|
.mallTag-one {
|
|
width: 46rpx;
|
|
height: 46rpx;
|
|
position: absolute;
|
|
right: 30rpx;
|
|
}
|
|
|
|
.mallTag-name {
|
|
display: flex;
|
|
line-height: 46rpx;
|
|
width: 150rpx;
|
|
}
|
|
|
|
.mallTag-name image {
|
|
width: 30rpx;
|
|
height: 30rpx;
|
|
margin: 7rpx 10rpx;
|
|
}
|
|
|
|
.mallTag-name.active,
|
|
.mallTag-one.active {
|
|
color: #d32300;
|
|
}
|
|
|
|
/* 列表 */
|
|
.goodsList {
|
|
margin: 260rpx 10rpx 30rpx;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.goodsItem {
|
|
margin: 0 15rpx 20rpx;
|
|
width: calc(50% - 30rpx);
|
|
display: inline-block;
|
|
background-color: white;
|
|
border-radius: 30rpx;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.goodsItem-img {
|
|
width: 100%;
|
|
position: relative;
|
|
padding-top: 100%;
|
|
}
|
|
|
|
.goodsItem-img image {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.goodsItem-cont {
|
|
padding: 30rpx 20rpx;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.goodsItem-text {
|
|
color: #ff9b26;
|
|
font-size: 26rpx;
|
|
line-height: 54rpx;
|
|
}
|
|
|
|
.goodsItem-tips {
|
|
margin-top: 20rpx;
|
|
display: flex;
|
|
line-height: 40rpx;
|
|
}
|
|
|
|
.goodsItem-price {
|
|
flex: 1;
|
|
color: #ff1122;
|
|
font-size: 32rpx;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.goodsItem-sales {
|
|
font-size: 26rpx;
|
|
color: #999999;
|
|
}
|
|
|
|
/* 分类弹出 */
|
|
.sortBack {
|
|
position: fixed;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, .5);
|
|
left: 0;
|
|
top: 0;
|
|
z-index: 998;
|
|
display: none;
|
|
}
|
|
|
|
.sortBack.active {
|
|
display: block;
|
|
}
|
|
|
|
.sortCont {
|
|
position: fixed;
|
|
right: -100%;
|
|
bottom: 0;
|
|
width: 70%;
|
|
background-color: #fff;
|
|
height: 100vh;
|
|
z-index: 999;
|
|
transition: .2s;
|
|
}
|
|
|
|
.sortCont.active {
|
|
right: 0;
|
|
}
|
|
|
|
/* 一级分类 */
|
|
.stair-nav{
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
background: #f7f7f7;
|
|
height: 100%;
|
|
width: 160rpx;
|
|
text-align: center;
|
|
z-index: 9;
|
|
}
|
|
|
|
::-webkit-scrollbar{
|
|
width: 0;
|
|
height: 0;
|
|
color: transparent;
|
|
display:none;
|
|
}
|
|
|
|
.stair-nav-li{
|
|
line-height: 100rpx;
|
|
border-top: solid 1rpx #ffffff;
|
|
}
|
|
|
|
.stair-nav-li.active{
|
|
background: white;
|
|
color: #e92344;
|
|
font-weight: bold;
|
|
position: relative;
|
|
}
|
|
|
|
.stair-nav-li.active::before{
|
|
position: absolute;
|
|
content: "";
|
|
left: 0;
|
|
top: 30rpx;
|
|
height: 40rpx;
|
|
background: #e92344;
|
|
width: 6rpx;
|
|
}
|
|
|
|
/* 二级分类 */
|
|
|
|
.level-content{
|
|
position: absolute;
|
|
left: 160rpx;
|
|
width: calc(100% - 160rpx);
|
|
width: -webkit-calc(100% - 160rpx);
|
|
height: 100%;
|
|
padding: 10rpx;
|
|
background: white;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.levelList-title {
|
|
color: #2c2c2c;
|
|
padding: 20rpx 20rpx 0;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.level-nav{
|
|
display: flex;
|
|
flex-wrap:wrap;
|
|
}
|
|
|
|
.level-nav-li{
|
|
width: 50%;
|
|
text-align: center;
|
|
padding: 10rpx;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.level-nav-cover{
|
|
width: 100%;
|
|
padding-top: 100%;
|
|
position: relative;
|
|
border-radius: 10rpx;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.level-nav-cover image {
|
|
position: absolute;
|
|
border-radius: 4rpx;
|
|
width: 80%;
|
|
height: 80%;
|
|
left: 10%;
|
|
top: 10%;
|
|
}
|
|
|
|
.level-nav-title{
|
|
font-size: 28rpx;
|
|
color: #464854;
|
|
} |