/* pages/category/category.wxss */ @import "./category.skeleton.wxss"; page { /* height: auto !important; */ background-color: #F8F8F8; } .page { /* background-color: rgba(0, 0, 0, 0); */ /* background-color: #F8F8F8; */ } .custom { position: sticky; width: 100%; top: 0; left: 0; z-index: 999; height: 80rpx; display: flex; align-items: center; justify-content: center; background-color: rgba(0, 0, 0, 0); /* padding-left: 40rpx; */ background: #FFFFFF; text-align: center; } .customBg { background: #FFFFFF; transition: all .5s; } .search { height: 68rpx; background: #FFFFFF; margin: 24rpx 20rpx 24rpx 20rpx; position: relative; } .search input { width: 100%; height: 100%; font-weight: 500; font-size: 28rpx; padding: 20rpx; padding-right: 60rpx; box-sizing: border-box; } .search icon { position: absolute; right: 15rpx; top: 14rpx; font-size: 28rpx; } .menu { padding: 10rpx 24rpx; background: #FFFFFF; overflow: hidden; overflow-x: auto; white-space: nowrap; } .menu-item { display: inline-block; width: 108rpx; margin: 0 22rpx; box-sizing: border-box; text-align: center; padding: 20rpx 0; } .menu-item image { width: 64rpx; height: 64rpx; } .menu-item .text { font-size: 24rpx; color: #0D0D0D; } .menu-item.active { /* background: #F8F8F8; */ border-bottom: 10rpx solid #00BC8A; } .categoryMain { /* position: sticky; */ /* top: 0; */ height: calc(100vh - 130rpx); } .floorTitle { height: 80rpx; line-height: 80rpx; font-weight: 600; font-size: 28rpx; color: #000000; text-align: center; } .categotyPanel { display: flex; flex-flow: row; flex-wrap: nowrap; background: #FFFFFF; justify-content: space-between; height: calc(100% - 80rpx); } .category { flex: none; width: 161rpx; background: #F8F8F8; } .categoryItem { width: 161rpx; height: 101rpx; padding: 18rpx 0; box-sizing: border-box; background: #F8F8F8; } .categoryItem.active { background: #FFFFFF; } .categoryText { line-height: 65rpx; font-size: 24rpx; color: #000000; text-align: center; border-left: 10rpx solid #F8F8F8; } .categoryItem.active .categoryText { background: #FFFFFF; border-left: 10rpx solid #00BC8A; } .categoryBody { flex: 1; height: 100%; overflow: hidden; display: flex; flex-flow: column; } .goodsQuery { /* position: sticky; */ /* top: 116rpx; */ height: 58rpx; background: #FFFFFF; text-align: right; padding: 0 24rpx; } .queryItem { display: inline-block; font-size: 24rpx; line-height: 58rpx; margin-right: 30rpx; } .queryItem:nth-child(2) { content: "\e617"; } .queryItem:last-child { /* float: right; */ margin-right: 0; vertical-align: middle; top: 0; } .queryItem icon { vertical-align: middle; /* height: 62rpx; */ } .zonghe { color: #A2A2A2; } .zonghe::after { content: '' !important; } .xiaoliang { vertical-align: middle; color: #A2A2A2; } .xiaoliang::after { vertical-align: middle; padding-left: 5rpx; color: #D9D9D9; content: "\e625"; } .xiaoliang.ups::after { content: "\e623" !important; } .xiaoliang.downs::after { content: "\e624" !important; } .jiage { vertical-align: middle; } .jiage::after { vertical-align: middle; padding-left: 5rpx; content: "\e625"; } .shaixuan { vertical-align: middle; position: relative; color: #A2A2A2; /* padding-right: 36rpx; */ } .shaixuan::after { vertical-align: middle; padding-left: 10rpx; content: "\e61e"; } .zonghe.ups, .shaixuan.ups, .xiaoliang.ups, .xiaoliang.downs { color: #000000; } .categoryItemTool { height: 84rpx; overflow: hidden; overflow-x: auto; white-space: nowrap; padding: 24rpx; box-sizing: border-box; padding-bottom: 12rpx; } .categoryItemToolItem { font-weight: 500; font-size: 22rpx; background: #F2F2F2; color: #0D0D0D; line-height: 48rpx; display: inline-block; margin-right: 16rpx; padding: 0 25rpx; box-sizing: border-box; border-radius: 47rpx; } .categoryItemToolItem:last-child { margin-right: 0 !important; } .categoryItemToolItem.active { color: #FFFFFF; background: #4F4F4F; } .goodsList { flex: 1; overflow: auto; /* display: flex; */ /* flex-flow: row; */ /* justify-content: space-between; */ } .goodsScroll { overflow-y: auto; } .goods { height: 228rpx; padding: 24rpx; box-sizing: border-box; display: flex; flex-wrap: nowrap; flex-flow: row; justify-content: space-between; } .goods image { width: 180rpx; height: 180rpx; } .goodsInfo { flex: 1; display: flex; flex-flow: row; flex-wrap: wrap; flex-direction: column; padding-left: 16rpx; box-sizing: border-box; align-content: baseline; } .goodsInfo .name { font-weight: 500; font-size: 24rpx; color: #0D0D0D; line-height: 36rpx; height: 75rpx; } .goodsInfo .brief { flex: 1; font-weight: 400; font-size: 18rpx; color: #A2A2A2; line-height: 25rpx; } .goodsInfo .bar { width: 100%; height: 34rpx; display: flex; flex-flow: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; } .goodsInfo .bar .price { flex: 1; font-weight: bold; font-size: 24rpx; line-height: 34rpx; color: #202020; float: left; } .goodsInfo .bar .icon { font-size: 34rpx; color: #00BC8A; } .goods:last-child { width: 100%; height: auto; display: inline-block; text-align: center; } .listEmpty { width: 208rpx; height: 208rpx; } .loadMore { text-align: center; font-size: 18rpx; color: #000000; line-height: 25rpx; /* background: #F8F8F8; */ } .noMore { text-align: center; font-size: 18rpx; color: #A2A2A2; line-height: 25rpx; } .icon-shouye { position: absolute; left: 40rpx; } .shaixuanBox { padding: 0 24rpx; } .shaixuanBoxTitle { font-weight: 600; font-size: 32rpx; color: #000000; } .shaixuanBoxBrand { padding: 40rpx 0; display: flex; justify-content: space-between; flex-wrap: wrap; } .shaixuanBoxBrand::after { min-width: 214rpx; content: ""; } .shaixuanBoxBrand view { width: 214rpx; height: 68rpx; font-weight: 400; font-size: 28rpx; text-align: center; color: #000000; line-height: 68rpx; background: #F8F8F8; border-radius: 8rpx 8rpx 8rpx 8rpx; margin-bottom: 16rpx; padding: 0 10rpx; box-sizing: border-box; } .shaixuanBoxBrand view.active { color: #FFFFFF; background: linear-gradient(180deg, #0D0D0D 0%, #4F4F4F 100%); } .shaixuanBoxPrice { padding: 40rpx 0; display: flex; justify-content: space-between; flex-wrap: nowrap; } .shaixuanBoxPrice input { width: 324rpx; height: 68rpx; border-radius: 8rpx 8rpx 8rpx 8rpx; border: 1rpx solid #A2A2A2; padding: 0 20rpx; box-sizing: border-box; text-align: center; } .shaixuanBoxBtn { display: flex; justify-content: space-between; flex-wrap: nowrap; margin-bottom: 70rpx; } .shaixuanBoxBtn button { width: 264rpx; height: 92rpx; background: #EEEEEE; border-radius: 8rpx 8rpx 8rpx 8rpx; text-align: center; line-height: 92rpx; font-weight: 500; font-size: 32rpx; padding: 0; margin: 0; } .shaixuanBoxBtn button:last-child { /* width: 407rpx; */ color: white !important; background: #00BC8A !important; border-radius: 8rpx 8rpx 8rpx 8rpx; } .icon-guanbi { position: absolute; top: 22rpx; right: 42rpx; color: #D9D9D9; }