秦佳浩 2 months ago
commit 3bc455aa1f

@ -1,14 +1,31 @@
/*
.container
*/
.container {
display: flex;
flex-direction: row;
height: 100%;
}
/*
.main
使便
*/
.main {
position: fixed;
display: flex;
overflow: hidden;
height: 100%;
}
/*
.search-bar
宽度占满父元素一般是所在的布局区域设置为固定定位使其固定在页面顶部top: 0; left: 0;
#777#fffz-index3
padding
*/
.search-bar {
width: 100%;
position: fixed;
@ -19,6 +36,11 @@
box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.07);
z-index: 3;
padding: 20rpx 0;
/*
.arrow search-bar
border-bottom border-left 45
同时设置了绝对定位指定了在父元素search-bar中的具体位置left: 30rpx; top: 41rpx;
*/
.arrow {
width: 20rpx;
height: 20rpx;
@ -29,6 +51,11 @@
left: 30rpx;
top: 41rpx;
}
/*
.search-box 使便
60rpx#f7f7f7z-index 999
92%border-radius使 margin: auto 使search-bar
*/
.search-box {
display: flex;
justify-content: center;
@ -40,12 +67,18 @@
border-radius: 50rpx;
text-align: center;
margin: auto;
/*
.search-img search-box
*/
.search-img {
width: 32rpx;
height: 32rpx;
margin-right: 10rpx;
}
}
/*
.search-hint search-barright: 30rpx; top: 32rpx;
*/
.search-hint {
font-size: 28rpx;
position: absolute;
@ -53,9 +86,18 @@
top: 32rpx;
}
}
/*
.sear-input
*/
.sear-input {
font-size: 28rpx;
}
/*
.leftmenu box-sizing#f5f6f7
overflow: scrollz-index 2使
*/
.leftmenu {
width: 200rpx;
height: 100%;
@ -63,6 +105,9 @@
background-color: #f5f6f7;
overflow: scroll;
z-index: 2;
/*
.ca-empty leftmenu
*/
.ca-empty {
padding-top: 400rpx;
text-align: center;
@ -70,6 +115,11 @@
font-size: 24rpx;
}
}
/*
.menu-item
.tips-num
*/
.menu-item {
line-height: 90rpx;
height: 90rpx;
@ -78,6 +128,7 @@
position: relative;
color: #777;
font-size: 28rpx;
text.tips-num {
position: absolute;
top: 20rpx;
@ -91,12 +142,18 @@
line-height: 30rpx;
}
}
/*
.menu-item.active #eb2444#fff
::before
*/
.menu-item.active {
color: #eb2444;
font-size: 28rpx;
font-weight: bold;
position: relative;
background: #fff;
&:before {
position: absolute;
left: 0;
@ -107,30 +164,48 @@
background: #eb2444;
}
}
/*
.rightcontent box-sizingz-index 1
*/
.rightcontent {
width: 550rpx;
height: 100%;
box-sizing: border-box;
background-color: #fff;
z-index: 1;
/*
.adver-map 广auto便
.item-a 100%
*/
.adver-map {
width: auto;
box-sizing: border-box;
overflow: hidden;
position: relative;
margin: 30rpx 20rpx 0;
.item-a {
display: block;
font-size: 0;
width: 100%;
image {
max-width: 100%;
}
}
}
/*
.cont-item 94rpx
*/
.cont-item {
padding: 0 20rpx 20rpx 20rpx;
padding-bottom: 94rpx;
/*
.show-item ::after 线线
*/
.show-item {
.more-prod-pic {
text-align: center;
@ -138,6 +213,7 @@
height: 150rpx;
line-height: 150rpx;
font-size: 0;
.more-pic {
max-width: 100%;
max-height: 100%;
@ -145,10 +221,12 @@
vertical-align: middle;
}
}
position: relative;
display: flex;
justify-content: flex-start;
padding: 20rpx 0;
&::after {
content: '';
background-color: #f4f4f4;
@ -161,9 +239,13 @@
width: 510rpx;
padding-left: 20rpx;
}
.prod-text-right {
margin-left: 20rpx;
width: 75%;
/*
.cate-prod-info -webkit-box
*/
.cate-prod-info {
font-size: 22rpx;
color: #999;
@ -173,6 +255,9 @@
-webkit-line-clamp: 1;
overflow: hidden;
}
/*
.prod-text.more -webkit-box #000
*/
.prod-text.more {
margin: 0;
font-size: 28rpx;
@ -185,6 +270,9 @@
-webkit-box-orient: vertical;
color: #000;
}
/*
.prod-price.more #eb2444arial
*/
.prod-price.more {
font-size: 28rpx;
color: #eb2444;
@ -194,10 +282,19 @@
}
}
}
/*
.th-cate-con 使
*/
.th-cate-con {
display: flex;
flex-wrap: wrap;
}
/*
.sub-category 33.33%使
flex-direction: column
*/
.sub-category {
width: 33.33%;
display: flex;
@ -206,17 +303,27 @@
box-sizing: border-box;
align-items: center;
}
/*
.sub-category-item .more-pic
textword-break: break-word
*/
.sub-category-item {
>.more-pic {
> .more-pic {
width: 120rpx;
height: 120rpx;
padding-bottom: 10rpx;
}
text {
font-size: 25rpx;
word-break: break-word;
}
}
/*
.cont-item.empty display: block
*/
.cont-item.empty {
display: block;
font-size: 24rpx;

Loading…
Cancel
Save