.index { background-color: #f9f9f9; min-height: 100vh; padding-bottom: 40px; box-sizing: border-box; .header { width: 100%; position: relative; &::before { content: ''; position: absolute; top: 0; left: 0; right: 0; width: 100%; height: 100%; background: linear-gradient(360deg, #FEF653 0%, #FDF766 100%), linear-gradient(179deg, #FEF653 0%, #F4F11B 100%); clip-path: ellipse(100% 97% at 50% 0); z-index: 0; // 改为0 } .header-content { width: 100%; display: flex; justify-content: center; position: relative; z-index: 1; .header-img { width: 100px; height: 50px; object-fit: cover; } } // 轮播图 .banner-wrap { margin-top: 24px; .banner-swiper { height: 350px; border-radius: 20px; overflow: hidden; .banner-item { width: 718px; padding: 0 16px; box-sizing: border-box; .banner-img { width: 100%; height: 100%; border-radius: 20px; } } // 修改指示点样式 .wx-swiper-dots { .wx-swiper-dot { width: 12px !important; height: 12px !important; &.wx-swiper-dot-active { width: 30px !important; // 选中时宽度变为10px height: 12px !important; // 保持高度不变 border-radius: 13px !important; // 圆角处理,让两端显示为半圆 } } } } } } // tab分类 .tabs-list { box-sizing: border-box; padding-left: 34px; display: flex; overflow: hidden; width: 100%; background-color: #fff; height: 44px; &.fixed { position: fixed; top: 0; left: 0; z-index: 100; height: 180px; display: flex; align-items: flex-end; padding-bottom: 20px; .at-tabs{ height: 40px; } } .tab-more { width: 90px; display: flex; align-items: center; padding: 0 22px 0 26px; box-sizing: border-box; .tab-more-img { width: 28px; height: 28px; } } .at-tabs__header { background-color: transparent; height: 100%; text-align: left; } .at-tabs__header::-webkit-scrollbar { display: none; /* 隐藏滚动条 */ } scroll-view ::-webkit-scrollbar { appearance: none; color: transparent; display: none; width: 0; height: 0; } .at-tabs__item { color: #999999; font-size: 26px; padding: 0; min-width: auto; width: auto; margin-right: 34px; padding-bottom: 2px; height: 100%; &--active { color: #FF8119; font-size: 28px; font-weight: bold; } &:last-child { margin-right: 0; } } .at-tabs__item-underline { background-color: #FF8119; height: 4px; border-radius: 2px; bottom: 0; } .at-tabs__underline { width: auto; } } // 商品列表 .product-list-box { padding-top: 24px; margin: 21px 16px 0; background: #FFFFFF; border-radius: 16px; .product-list-wrap{ margin-top: 0; } } // 添加浮动按钮样式 .float-buttons { position: fixed; right: 34px; bottom: 21px; z-index: 100; display: flex; flex-direction: column; gap: 23px; .float-btn { width: 94px; height: 94px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font-size: 24px; text-align: center; background-size: 100% 100%; background-repeat: no-repeat; background-position: center; position: relative; .back-top{ height: 100%; width: 100%; } .my-shop-bg{ height: 100%; width: 100%; position: absolute; } Text { line-height: 1.2; white-space: pre-line; z-index: 1; } } } }