/**index.wxss**/ page { background: #F6F6F6; height: auto; position: relative; } scroll-view::-webkit-scrollbar{ display: none; width: 0; height: 0; color: transparent; } .bg-box{ position: absolute; z-index: -1; top: 0; left: 0; width: 100%; height: 524rpx; } .bg{ position: relative; /* z-index: -1; top: 0; left: 0; */ width: 100%; height: 524rpx; vertical-align: bottom; } .bg-box .white-block{ position: absolute; left: 0; bottom: 0; width: 100%; height: 70rpx; background: linear-gradient( 180deg, rgba(255,255,255,0) 0%, rgba(248,248,248,0.52) 39%, #F6F6F6 100%); } .swiper-box{ width: 704rpx!important; height: 180rpx; border-radius: 16rpx; position: absolute; left: 24rpx; bottom: 38rpx; } .swiper-box swiper-item{ width: 704rpx!important; } .swiper-box swiper-item .block{ height: 180rpx; width: 704rpx; vertical-align: bottom; } /* 轮播图及搜索框 */ swiper { width: 100%; /* height: 400rpx; */ overflow: hidden; } swiper.pic-swiper { margin-top: 101rpx; padding: 10rpx 0; background: #fff; height: 400rpx; } swiper-item { font-size: 26rpx; font-weight: bold; } swiper.pic-swiper .img-box { font-size: 0; } .wx-swiper-dots { margin-bottom: 15rpx; } .banner-item { box-sizing: border-box; } .banner-item .img-box { width: 100%; height: 100%; box-sizing: border-box; padding: 20rpx 10rpx; } .banner-item .img-box image { border-radius: 8rpx; box-shadow: 0 4px 10px 0 rgba(83, 83, 83, 0.288); } swiper.pic-swiper .banner { position: absolute; width: 690rpx; margin: 0 10rpx; height: 388rpx; border-radius: 8rpx; display: inline-block; box-shadow: 0 4px 10px 0 rgba(83, 83, 83, 0.288); } .top-navbar-box { display: flex; align-items: center; margin-left: 20rpx; color: #fff; } .top-navbar-box .shop-title { font-weight: bold; font-size: 36rpx; } .top-navbar-box .shop-info{ color: #fff; } .shop-info { margin-left: 12rpx; display: flex; font-weight: bold; font-size: 24rpx; } .search-box { display: flex; padding-bottom: 20rpx; margin-top: 20rpx; } .top-search-input { margin-left: 20rpx; margin-top: -10rpx; display: flex; align-items: center; width: 500rpx; border: 2rpx solid #04358D; border-radius: 40rpx; height: 60rpx; background: #fff; } .top-search-swiper { height: 60rpx; line-height: 60rpx; margin-top: 0; 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: 24rpx; color: #04358D; } .search-input { display: flex; align-items: center; width: 642rpx; /* border: 2rpx solid #04358D; */ border-radius: 40rpx; height: 60rpx; background: #fff; } .search-swiper { height: 60rpx; line-height: 60rpx; margin-top: 0; font-weight: normal; font-size: 24rpx; color: #AAAAAA; margin-left: 28rpx; } .search-line { color: #DEDEDE; margin-right: 16rpx; } .search-text { width: 100rpx; line-height: 50rpx; text-align: center; border-radius: 25rpx; font-weight: bold; font-size: 28rpx; color: #FFF; background: #04358D; margin-right: 10rpx; } .top-share { position: relative; text-align: center; margin-left: 16rpx; } .share-btn { position: absolute; top: 0; left: 0; height: 90rpx; text-align: center; background-color: transparent; /*按钮透明*/ border: none; } .share-btn::after { border: none; } .share-text { font-weight: normal; font-size: 22rpx; color: #fff; white-space: nowrap; } .recommended-box { /* height: 80rpx; */ margin-bottom: 20rpx; position: absolute; left: 24rpx; top: 254rpx; width: 726rpx; } .recommended-swiper { /* height: 80rpx; */ white-space: nowrap; } .recommended-text { margin-left: 20rpx; display: inline-block; padding: 6rpx 12rpx; background: rgba(255, 255, 255, .5); text-align: center; border-radius: 22rpx 22rpx 22rpx 22rpx; font-size: 24rpx; color: #222222; } .container{ padding-left:24rpx; padding-right: 24rpx; } .container .bg-sear { position: fixed; z-index: 999; width: 100%; line-height: 56rpx; background: #fff; padding: 20rpx 0; text-align: center; top: 0; } .bg-sear .section { display: flex; justify-content: center; align-items: center; height: 60rpx; background: #fff; z-index: 1; border-radius: 50rpx; width: 92%; margin: auto; left: 4%; background: #eeeeee; } .bg-sear .section .placeholder { display: block; font-size: 28rpx; color: #999; } .bg-sear .section .search-img { width: 32rpx; height: 32rpx; margin-right: 10rpx; } /* 分类栏目 */ .swiper-grid-box { /* padding: 16rpx 0; */ margin-bottom: 20rpx; border-radius: 16rpx; background: #fff; margin-top: 213rpx; /* margin-top: 300rpx; */ } .swiper-grid-box .grid-box .van-grid{ border-radius: 16rpx; } .grid-box,.swiper-grid{ padding-top: 20rpx; } .swiper-grid { margin-top: -10rpx; border-radius: 16rpx; background-color: #fff; height: 220rpx; } .my-grid-item .van-grid-item__content { padding: 0rpx; /* margin-top: 20rpx; */ } .swiper-grid-image{ width:100rpx; height:100rpx; border-radius: 32rpx; } .swiper-grid .swiper-grid-image{ width:72rpx; height:72rpx; border-radius: 50%; } .swiper-grid-text { font-weight: normal; font-size: 24rpx; color: #222222; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; width: 120rpx; text-align: center; line-height:2.4; letter-spacing: normal; } .notice{ display: flex; align-items: center; font-weight: bold; font-size: 24rpx; color: #E70C11; background: #fff; border-radius: 16rpx; padding: 16rpx 24rpx; margin-bottom: 20rpx; } .notice .icon{ width: 40rpx; height: 40rpx; } .adv{ width: 100%; vertical-align: bottom; margin-bottom: 20rpx; } .adv1{ height: 392rpx; } .adv2{ height: 473rpx; } .bonus-box { display: flex; } .content-bonus { display: flex; align-items: center; justify-content: center; width: 192rpx; height: 64rpx; background: #FFFFFF; border-radius: 16rpx 16rpx 16rpx 16rpx; } .content-bonus+.content-bonus{ margin-left: 20rpx; } .bonus-text { margin-left: 10rpx; font-size: 24rpx; } /*秒杀*/ .seckill-box { margin: 20rpx; padding: 20rpx; background: linear-gradient(91deg, #FFEEEE 0%, #FFFFFF 18%, #FFFFFF 100%); display: flex; position: relative; overflow: hidden; } .seckill-time { width: 160rpx; text-align: center; } .seckill-title { font-weight: 800; font-size: 28rpx; } .more-icon { position: absolute; display: flex; align-items: center; height: 100%; top: 0; right: 0; width: 40rpx; background-color: #fff; } .times { margin-top: 8rpx; margin-bottom: 8rpx; font-size: 20rpx; color: #AAAAAA; } .seckill-content { display: flex; } .seckill-product-box { margin-left: 30rpx; } .seckill-Price { position: relative; font-weight: bold; font-size: 24rpx; color: #FF4A39; } .price-bg { position: absolute; } .price-num { position: absolute; left: 10rpx; } .custom-class { background-color: #FFFFFF; } .recommended-card { position: relative; margin: 20rpx 0; padding: 20rpx; background-color: #FFFFFF; display: flex; width: 670rpx; overflow: hidden; } .new-text { text-align: center; } .new-text-two { width: 120rpx; } .recommended-Price { text-align: center; height: 32rpx; background: #FFEEEC; border-radius: 16rpx; font-weight: bold; font-size: 24rpx; color: #FF4A39; } /* 分页分类 */ .tab-box{ white-space: nowrap; margin-bottom: 20rpx; } .tab-box .tab{ display: inline-block; font-size: 32rpx; color: #222222; margin-right: 44rpx; } .tab-box .tab .icon{ width: 105rpx; height: 29rpx; } .tab-box .tab.active{ font-weight: 800; font-size: 36rpx; } /* 每日上新 */ .content { text-align: justify; display: flex; justify-content: space-between; } .reset-localization{ text-align: center; font-size: 26rpx; color: #AAAAAA; } .swiper-card-box { margin-bottom: 20rpx; height: 470rpx; /* margin-left: 3%; */ /* width: 96%; */ width: 344rpx; } .wx-swiper-dots-horizontal .wx-swiper-dot { width: 24rpx; height: 8rpx; border-radius: 4rpx; } .swiper-card { /* margin-top: 10rpx; */ height: 462rpx; background: #FFFFFF; border-radius: 16rpx; } .swiper-card-img { height: 462rpx; width: 344rpx; border-radius: 16rpx; vertical-align: bottom; } .item { background-color: #fff; /* margin-top: 20rpx; */ margin-bottom: 20rpx; display: inline-block; width: 344rpx; border-radius: 16rpx; overflow: hidden; } .item-ava { width: 40rpx; height: 40rpx; border-radius: 16rpx; } .heart { display: flex; align-items: center; justify-content: space-between; margin-right: 8rpx; margin-top: 20rpx; } .name-price { display: flex; align-items: center; font-weight: 800; font-size: 36rpx; color: #FF4D3A; } .item-img { width: 100%; vertical-align: bottom; } .item-title { font-weight: bold; font-size: 28rpx; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-family: 'PingFang SC-Medium'; color: #1e1e1e; margin: 10rpx; height: 40rpx; line-height: 40rpx; /* background-color: turquoise; */ } .item .name { padding: 0 15rpx; margin-top: 20rpx; padding-bottom: 10rpx; align-items: center; font-size: 22rpx; font-family: 'PingFang SC-Medium'; } .name image { flex: 0 0 auto; } .item-title-box { display: flex; position: relative; z-index: 2; } .name-title { font-weight: normal; font-size: 22rpx; color: #AAAAAA; } .name text:last-child { color: #c4c4c4; text-decoration: underline; line-height: 10rpx; } .left, .right { display: inline-block; vertical-align: top; width: 344rpx; } .stepper-box { display: flex; align-items: center; } .stepper-minus { width: 40rpx; height: 40rpx; background-color: #F0F0F0; font-size: 40rpx; text-align: center; line-height: 40rpx; } .stepper-num { width: 80rpx; height: 40rpx; background-color: #F0F0F0; text-align: center; line-height: 40rpx; margin-left: 4rpx; } .stepper-add { margin-left: 4rpx; width: 40rpx; height: 40rpx; background-color: #F0F0F0; font-size: 40rpx; text-align: center; line-height: 40rpx; } .tips { height: 60rpx; line-height: 60rpx; text-align: center; font-size: 24rpx; color: #AAAAAA; } .loading-box{ text-align: center; line-height: 80rpx; height: 80rpx; } .popup-box { padding: 20rpx; } .popup-detail { display: flex; align-items: center; } .shop-price { font-family: PingFang SC, PingFang SC; font-weight: 800; font-size: 48rpx; color: #FF4D3A; } .shop-detail { margin-top: 24rpx; display: flex; align-items: center; } .shop-isselect { font-weight: normal; font-size: 24rpx; color: #AAAAAA; } .shop-info { font-family: PingFang SC, PingFang SC; font-weight: 800; font-size: 24rpx; color: #222222; } .shop-address-info { width: 500rpx; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: flex; align-items: center; font-size: 32rpx; } .position-icon{ width: 36rpx; height: 36rpx; vertical-align: bottom; } .popup-line { border: 2rpx solid #F0F0F0; } .shop-color { margin-top: 28rpx; } .color-text { font-family: PingFang SC, PingFang SC; font-weight: 800; font-size: 28rpx; } .color-btn-box { display: flex; align-items: centers; margin-top: 10rpx; } .color-btn { width: 136rpx; height: 64rpx; background: #04358D; border-radius: 32rpx; font-weight: normal; font-size: 28rpx; color: #FFFFFF; display: flex; align-items: center; justify-content: center; margin-right: 20rpx; } .popup-num-box { margin-top: 40rpx; display: flex; align-items: center; justify-content: space-between; } .bottom-button-box { background: #FFFFFF; box-shadow: 0rpx -6rpx 12rpx 2rpx rgba(0, 0, 0, 0.09); border-radius: 32rpx 32rpx 0rpx 0rpx; display: flex; justify-content: center; } .bottom-button { width: 702rpx; height: 80rpx; background: #04358D; border-radius: 40rpx; margin-top: 30rpx; font-family: PingFang SC, PingFang SC; font-weight: bold; font-size: 28rpx; color: #FFFFFF; text-align: center; line-height: 80rpx; }