index.wxss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. /**index.wxss**/
  2. page {
  3. overflow-x: hidden;
  4. overflow-y: scroll;
  5. display: flex;
  6. flex-direction: column;
  7. }
  8. .banner {
  9. z-index: 1200;
  10. top: 0;
  11. display: flex;
  12. justify-content: center;
  13. align-items: center;
  14. padding: 24rpx 0 10rpx;
  15. }
  16. .banner .banner-item {
  17. border: 1px solid #dfefec;
  18. width: 665rpx;
  19. height: 308rpx;
  20. display: block;
  21. border-radius: 25rpx;
  22. }
  23. .bannerSwiper {
  24. width: 100%;
  25. height: 100%;
  26. }
  27. .banner .banner-item .bannerImg {
  28. width: 100%;
  29. height: auto;
  30. display:block;
  31. }
  32. .hot-bar {
  33. padding: 14rpx 30rpx 10rpx;
  34. display: flex;
  35. flex-direction: row;
  36. flex-wrap: nowrap;
  37. justify-content: space-between;
  38. align-items: center;
  39. }
  40. .hot-bar .hot-image {
  41. width: 220rpx;
  42. height: 300rpx;
  43. }
  44. .brand-bar {
  45. /* padding: 14rpx 30rpx 10rpx; */
  46. margin: 14rpx 30rpx 10rpx 30rpx;
  47. display: flex;
  48. flex-direction: row;
  49. flex-wrap: wrap;
  50. justify-content: space-between;
  51. align-items: center;
  52. position: relative;
  53. height: 300rpx;
  54. padding: 20rpx;
  55. transition: all 0.3s ease;
  56. }
  57. .brand-bar.mini {
  58. opacity: 1;
  59. position: fixed; /* 固定在页面顶部 */
  60. z-index: 1100;
  61. min-width: 365rpx;
  62. height: 80rpx;
  63. width: 656rpx;
  64. flex-wrap: nowrap;
  65. overflow-x: auto;
  66. top: 316rpx;
  67. border: 1px solid #097561;
  68. background-color: #cdf3ec;
  69. border-radius: 30rpx;
  70. }
  71. .brand-bar .brand-item {
  72. width: 120rpx;
  73. height: 120rpx;
  74. margin-bottom: 20rpx;
  75. }
  76. .brand-bar .brand-item .brand-image {
  77. width: 100%;
  78. height: 100%;
  79. }
  80. .brand-bar.mini .brand-item {
  81. width: auto;
  82. height: 80rpx;
  83. margin: 0 20rpx;
  84. display: flex;
  85. align-items: center;
  86. }
  87. .brand-bar.mini .brand-item .brand-image {
  88. display: none;
  89. }
  90. .brand-bar.mini .brand-item span {
  91. display:block;
  92. font-size: 28rpx;
  93. color: #097561;
  94. }
  95. .slider {
  96. display: flex;
  97. justify-content: center;
  98. align-items: center;
  99. padding: 24rpx 0 10rpx;
  100. }
  101. .slider .slider-item {
  102. border: 1px solid #dfefec;
  103. width: 690rpx;
  104. height: 220rpx;
  105. display: block;
  106. border-radius: 25rpx;
  107. }
  108. .category {
  109. position: relative;
  110. height: 300rpx;
  111. margin: 14rpx 30rpx 10rpx 30rpx;
  112. border: 1px solid #cdf3ec;
  113. background-color: #cdf3ec;
  114. border-radius: 25rpx;
  115. padding: 20rpx;
  116. display: flex;
  117. flex-direction: row;
  118. flex-wrap: wrap;
  119. justify-content: space-between;
  120. align-items: center;
  121. transition: all 0.3s ease;
  122. }
  123. /* mini 模式的css */
  124. .category.mini {
  125. opacity: 1;
  126. position: fixed; /* 固定在页面顶部 */
  127. z-index: 1000;
  128. height: 80rpx;
  129. padding: 0 20rpx;
  130. flex-wrap: nowrap;
  131. overflow-x: auto;
  132. top: 440rpx;
  133. }
  134. .category.mini .category-item {
  135. width: auto;
  136. height: 80rpx;
  137. margin: 0 20rpx;
  138. display: flex;
  139. align-items: center;
  140. }
  141. .category.mini .category-item .category-image {
  142. display: none;
  143. }
  144. .category.mini .category-item span {
  145. display:block;
  146. font-size: 28rpx;
  147. color: #097561;
  148. }
  149. /* mini 模式的css 结束 */
  150. .category .category-item {
  151. width: 144rpx;
  152. height: 174rpx;
  153. margin-bottom: 0rpx;
  154. font-size: 28rpx;
  155. text-align: center;
  156. }
  157. .category .category-item .category-image {
  158. width: 100%;
  159. height: 124rpx;
  160. background-color: #cdf3ec;
  161. }
  162. .category .category-item span {
  163. display: none;
  164. }