秦佳浩 2 months ago
commit 3bc455aa1f

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

Loading…
Cancel
Save