index.wxss 3.0 KB

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