index.less 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. .index {
  2. background-color: #f9f9f9;
  3. min-height: 100vh;
  4. padding-bottom: 40px;
  5. box-sizing: border-box;
  6. .header {
  7. width: 100%;
  8. position: relative;
  9. &::before {
  10. content: '';
  11. position: absolute;
  12. top: 0;
  13. left: 0;
  14. right: 0;
  15. width: 100%;
  16. height: 100%;
  17. background: linear-gradient(360deg, #FEF653 0%, #FDF766 100%),
  18. linear-gradient(179deg, #FEF653 0%, #F4F11B 100%);
  19. clip-path: ellipse(100% 97% at 50% 0);
  20. z-index: 0; // 改为0
  21. }
  22. .header-content {
  23. width: 100%;
  24. display: flex;
  25. justify-content: center;
  26. position: relative;
  27. z-index: 1;
  28. .header-img {
  29. width: 100px;
  30. height: 50px;
  31. object-fit: cover;
  32. }
  33. }
  34. // 轮播图
  35. .banner-wrap {
  36. margin-top: 24px;
  37. .banner-swiper {
  38. height: 350px;
  39. border-radius: 20px;
  40. overflow: hidden;
  41. .banner-item {
  42. width: 718px;
  43. padding: 0 16px;
  44. box-sizing: border-box;
  45. .banner-img {
  46. width: 100%;
  47. height: 100%;
  48. border-radius: 20px;
  49. }
  50. }
  51. // 修改指示点样式
  52. .wx-swiper-dots {
  53. .wx-swiper-dot {
  54. width: 12px !important;
  55. height: 12px !important;
  56. &.wx-swiper-dot-active {
  57. width: 30px !important; // 选中时宽度变为10px
  58. height: 12px !important; // 保持高度不变
  59. border-radius: 13px !important; // 圆角处理,让两端显示为半圆
  60. }
  61. }
  62. }
  63. }
  64. }
  65. }
  66. // tab分类
  67. .tabs-list {
  68. box-sizing: border-box;
  69. padding-left: 34px;
  70. display: flex;
  71. overflow: hidden;
  72. width: 100%;
  73. background-color: #fff;
  74. height: 44px;
  75. &.fixed {
  76. position: fixed;
  77. top: 0;
  78. left: 0;
  79. z-index: 100;
  80. height: 180px;
  81. display: flex;
  82. align-items: flex-end;
  83. padding-bottom: 20px;
  84. .at-tabs{
  85. height: 40px;
  86. }
  87. }
  88. .tab-more {
  89. width: 90px;
  90. display: flex;
  91. align-items: center;
  92. padding: 0 22px 0 26px;
  93. box-sizing: border-box;
  94. .tab-more-img {
  95. width: 28px;
  96. height: 28px;
  97. }
  98. }
  99. .at-tabs__header {
  100. background-color: transparent;
  101. height: 100%;
  102. text-align: left;
  103. }
  104. .at-tabs__header::-webkit-scrollbar {
  105. display: none; /* 隐藏滚动条 */
  106. }
  107. scroll-view ::-webkit-scrollbar {
  108. appearance: none;
  109. color: transparent;
  110. display: none;
  111. width: 0;
  112. height: 0;
  113. }
  114. .at-tabs__item {
  115. color: #999999;
  116. font-size: 26px;
  117. padding: 0;
  118. min-width: auto;
  119. width: auto;
  120. margin-right: 34px;
  121. padding-bottom: 2px;
  122. height: 100%;
  123. &--active {
  124. color: #FF8119;
  125. font-size: 28px;
  126. font-weight: bold;
  127. }
  128. &:last-child {
  129. margin-right: 0;
  130. }
  131. }
  132. .at-tabs__item-underline {
  133. background-color: #FF8119;
  134. height: 4px;
  135. border-radius: 2px;
  136. bottom: 0;
  137. }
  138. .at-tabs__underline {
  139. width: auto;
  140. }
  141. }
  142. // 商品列表
  143. .product-list-box {
  144. padding-top: 24px;
  145. margin: 21px 16px 0;
  146. background: #FFFFFF;
  147. border-radius: 16px;
  148. .product-list-wrap{
  149. margin-top: 0;
  150. }
  151. }
  152. // 添加浮动按钮样式
  153. .float-buttons {
  154. position: fixed;
  155. right: 34px;
  156. bottom: 21px;
  157. z-index: 100;
  158. display: flex;
  159. flex-direction: column;
  160. gap: 23px;
  161. .float-btn {
  162. width: 94px;
  163. height: 94px;
  164. border-radius: 50%;
  165. display: flex;
  166. flex-direction: column;
  167. align-items: center;
  168. justify-content: center;
  169. color: #fff;
  170. font-size: 24px;
  171. text-align: center;
  172. background-size: 100% 100%;
  173. background-repeat: no-repeat;
  174. background-position: center;
  175. position: relative;
  176. .back-top{
  177. height: 100%;
  178. width: 100%;
  179. }
  180. .my-shop-bg{
  181. height: 100%;
  182. width: 100%;
  183. position: absolute;
  184. }
  185. Text {
  186. line-height: 1.2;
  187. white-space: pre-line;
  188. z-index: 1;
  189. }
  190. }
  191. }
  192. }