/* pages/category/category.wxss */ page { height: 100%; } .container { /* display: flex; */ flex-direction: row; height: 100%; } .main { /* position: fixed; */ display: flex; overflow: hidden; /* margin-top: 78rpx; */ height: calc(100% - 270rpx); } /* 搜索栏 */ .top-search-input { margin-left: 20rpx; margin-top: -10rpx; display: flex; align-items: center; width: 500rpx; border: 2rpx solid #FF941A; border-radius: 40rpx; height: 60rpx; } .top-search-swiper { width: 440rpx; height: 60rpx; line-height: 60rpx; margin-top: 0; font-weight: normal; font-size: 24rpx; color: #AAAAAA; margin-left: 28rpx; } .top-search-line { color: #DEDEDE; margin-right: 16rpx; } .top-search-text { width: 100rpx; font-weight: bold; font-size: 28rpx; color: #FF941A; } /* 顶部分类 */ .top-content{ position: relative; } .top-box{ white-space: nowrap; align-items: center; margin-top: 100rpx; width: 100%; padding-left: 24rpx; box-sizing: border-box; } .top-content .all{ position: absolute; top: 0; right: 0; width: 64rpx; height: 144rpx; display: flex; justify-content: center; align-items: center; letter-spacing: 10rpx; background: linear-gradient( 180deg, #FFFFFF 0%, #F8F8F8 100%); writing-mode: vertical-rl; font-weight: bold; font-size: 24rpx; color: #222222; } .top-content .all .icon{ width: 20rpx; height: 20rpx; margin-left: 2rpx; } .top-all-box { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; padding: 0 32rpx 150rpx; box-sizing: border-box; max-height: 750rpx; overflow-y: auto; overflow-x: hidden; } .top-all-box .type-item{ margin-bottom: 24rpx; } .top-box .type-item{ display: inline-block; } .top-box .type-item .icon{ width: 100rpx; height: 100rpx; background: #F6F6F6; margin-left: 8rpx; border-radius: 50%; } .top-box .type-item .name{ font-size: 24rpx; color: #222222; width: 116rpx; height: 36rpx; line-height: 36rpx; text-align: center; margin-top: 12rpx; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; } .top-box .type-item .name.active{ background: #FFDF00; border-radius: 18rpx 18rpx 18rpx 18rpx; } .popup-box{ position: relative; } .close-box{ position: absolute; bottom: 0; left: 0; z-index: 999; font-size: 24rpx; color: #AAAAAA; width: 100%; text-align: center; line-height: 82rpx; border-top: 1rpx solid #F0F0F0; background: #fff; } .close-box .icon{ width: 20rpx; height: 20rpx; transform: rotateZ(180deg); } /* 左侧菜单栏 */ .leftmenu { width: 200rpx; height: 100%; box-sizing: border-box; background-color: #f5f6f7; overflow: scroll; z-index: 2; } scroll-view ::-webkit-scrollbar { width: 0; height: 0; color: transparent; display: none; } .menu-item { line-height: 94rpx; height: 94rpx; text-align: center; border-bottom: 2rpx silid #e3e3e3; position: relative; color: #666; font-size: 24rpx; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .menu-item.active { color: #333; font-size: 28rpx; font-weight: bold; position: relative; background: #fff; } .menu-item.active:before { position: absolute; left: 0; content: ""; width: 8rpx; height: 60rpx; top: 20rpx; background: #FF941A; } .menu-item text.tips-num { position: absolute; top: 20rpx; right: 15rpx; border-radius: 15rpx; width: 30rpx; height: 30rpx; background: red; color: #fff; font-size: 25rpx; line-height: 30rpx; } /* 右侧商品栏 */ .loading{ width: 550rpx; height: 70vh; display: flex; justify-content: center; align-items: center; flex-shrink: 0; position: fixed; z-index: 99999; background: #fff; } @keyframes rotato{ from { transform: rotate(0deg); } to { transform: rotate(360deg); } } .loading .icon{ animation: rotato .5s linear infinite; width: 48rpx; height: 48rpx; } .rightcontent { width: 550rpx; height: 100%; box-sizing: border-box; background-color: #fff; z-index: 1; position: relative; } .rightcontent .right-top-box{ position: fixed; z-index: 9999; background-color: #fff; } .rightcontent .filter-box{ display: flex; justify-content: flex-end; width: 550rpx; } .rightcontent .filter-box .filter-item{ font-size: 24rpx; color: #222222; margin-left: 40rpx; display: flex; } .rightcontent .filter-box .filter-item.active{ color: #FF941A; } .rightcontent .filter-box .filter-item .icon-box{ display: flex; flex-direction: column; } .rightcontent .filter-box .filter-item .icon-box .down{ transform: rotateZ(270deg); margin-bottom: -6rpx; } .rightcontent .filter-box .filter-item .icon-box .up{ transform: rotateZ(90deg); margin-left: -4rpx; } .rightcontent .thrid-type-box{ display: flex; flex-wrap: nowrap; padding: 10rpx 20rpx 10rpx 0; width: 530rpx; overflow: auto; margin-left: 20rpx; background: #fff; } .rightcontent .thrid-type-box .thrid-type-item{ height: 36rpx; line-height: 36rpx; background: #F0F0F0; padding: 2rpx 16rpx; border-radius: 22rpx; font-size: 24rpx; color: #222222; flex-shrink: 0; margin-right: 20rpx; } .rightcontent .thrid-type-box .thrid-type-item.active{ background: #FF941A; color: #FFFFFF; } .rightcontent .right-box{ /* padding-bottom: 300rpx; */ /* padding-bottom: 500rpx; */ padding-top: 98rpx; } .rightcontent .product-item{ display: flex; padding: 0 20rpx; } .rightcontent .product-item .pic{ width: 200rpx; height: 200rpx; background: #F6F6F6; border-radius: 16rpx; flex-shrink: 0; margin: 20rpx 0; } .rightcontent .product-item .info{ display: flex; flex-direction: column; justify-content: space-between; border-bottom: 1rpx solid #F0F0F0; padding: 20rpx 0 20rpx 20rpx; } .rightcontent .product-item .info .title{ font-weight: bold; font-size: 28rpx; color: #222222; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; /* 限制显示的行数 */ -webkit-box-orient: vertical; } .rightcontent .product-item .info .price-box{ display: flex; justify-content: space-between; align-items: center; } .rightcontent .product-item .info .price{ font-weight: 800; font-size: 28rpx; color: #FF4D3A; } .rightcontent .product-item .info .salesVolume{ font-size: 22rpx; color: #AAAAAA; } .rightcontent .adver-map { width: auto; box-sizing: border-box; overflow: hidden; position: relative; margin: 30rpx 20rpx 0; } .rightcontent .adver-map .item-a { display: block; font-size: 0; width: 100%; height: 160rpx; } .rightcontent .adver-map .item-a image { width: 100%; height: 100%; border-radius: 16rpx; } /* .rightcontent .sub-category { display: flex; flex-wrap: wrap; } */ /* 二级分类 */ .sub-category-con { margin: 20rpx; } .sub-cate-title { display: flex; align-items: center; font-weight: 800; } .view-all { color: #999; font-weight: normal; font-size: 24rpx; } .sub-cate-text { flex: 1; } .th-cate-con { display: flex; flex-wrap: wrap; } .sub-category-item { width: 33.33%; display: flex; flex-direction: column; padding: 30rpx; box-sizing: border-box; align-items: center; } .sub-category-item .sub-category-item-pic { width: 120rpx !important; height: 120rpx !important; border-radius: 16rpx; } .sub-category-item text { margin-top: 10rpx; font-size: 25rpx; } .not-category-data{ padding: 20rpx; } .not-data-list{ width: 100%; } .reset-localization{ text-align: center; font-size: 26rpx; color: #AAAAAA; } /* 购物车 */ .car-box{ padding: 28rpx 24rpx 123rpx; max-height: 700rpx; overflow: auto; } .car-box .item{ display: flex; align-items: center; padding-bottom: 30rpx; /* border-bottom: 2rpx solid #F0F0F0; */ } .car-box .item .img{ width: 200rpx; height: 200rpx; border-radius: 16rpx; background: chartreuse; } .car-box .item .info{ flex: 1; padding-left: 20rpx; display: flex; flex-direction: column; justify-content: space-between; height: 200rpx; } .car-box .item .info .title{ font-weight: 800; font-size: 32rpx; color: #222222; } .car-box .item .info .desc{ font-size: 24rpx; color: #AAAAAA; } .car-box .item .info .price-box{ display: flex; justify-content: space-between; align-items: center; } .car-box .item .info .price-box .price{ display: flex; align-items: flex-end; color: #FF4D3A; } .car-box .item .info .price-box .price .unit{ font-size: 20rpx; } .car-box .item .info .price-box .price .num{ font-size: 48rpx; } /* .car-box .item .info .price-box .num-box{ */ .num-box{ display: flex; align-items: center; } /* .car-box .item .info .price-box .num-box .btn{ */ .num-box .btn{ color: #AAAAAA; font-size: 20rpx; width: 40rpx; height: 40rpx; text-align: center; line-height: 40rpx; background: #F0F0F0; } /* .car-box .item .info .price-box .num-box .num{ */ .num-box .num{ width: 80rpx; height: 40rpx; background: #F0F0F0; text-align: center; line-height: 40rpx; margin: 0 4rpx; font-size: 24rpx ; color: #222222; } .bottom-box{ position: fixed; bottom: 0; left: 0; z-index: 999999; box-sizing: border-box; width: 100%; display: flex; justify-content: space-between; padding: 20rpx 24rpx; background: #FFFFFF; box-shadow: 0rpx -6rpx 12rpx 2rpx rgba(0,0,0,0.05); border-radius: 32rpx 32rpx 0rpx 0rpx; } .bottom-box .num{ position: absolute; top: 20rpx; left: 80rpx; border-radius: 30rpx; font-size: 24rpx; color: #fff; background: #FF4D3A; padding: 2rpx 6rpx; } .bottom-box .left{ display: flex; } .bottom-box .icon{ width: 80rpx; height: 80rpx; margin-right: 20rpx; } .bottom-box .price-box .top{ display: flex; align-items: center; } .bottom-box .price-box .top .price{ font-weight: 800; font-size: 32rpx; color: #FF4D3A; } .bottom-box .price-box .top .reduce-price{ font-size: 24rpx; color: #AAAAAA } .bottom-box .price-box .shipping-fee{ font-size: 24rpx; color: #AAAAAA; } .bottom-box .btn{ width: 342rpx; height: 80rpx; background: #FF941A; border-radius: 40rpx; text-align: center; line-height: 80rpx; font-weight: bold; font-size: 28rpx; color: #FFFFFF; } /* 购物车为空 */ .empty { margin-top: 100rpx; text-align: cneter; } .empty-icon { display: block; width: 100rpx; height: 100rpx; margin: 0 auto; margin-bottom: 20rpx; } .empty-icon > image { width: 100%; height: 100%; } .empty-text { font-size: 28rpx; text-align: center; color: #999; line-height: 2em; }