index.wxss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. /**index.wxss**/
  2. page {
  3. overflow-x: hidden;
  4. overflow-y: scroll;
  5. display: flex;
  6. flex-direction: column;
  7. }
  8. .header {
  9. height: 330rpx;
  10. position: relative;
  11. }
  12. .header .header-bg {
  13. z-index: 1;
  14. position: absolute;
  15. top: 0;
  16. left: 0;
  17. width: 100vw;
  18. height: 295rpx;
  19. background: #dfefec;
  20. }
  21. .header .logo {
  22. width: 150rpx;
  23. height: 150rpx;
  24. z-index: 99;
  25. }
  26. .header .logo.logo-at-left {
  27. position: absolute;
  28. top: 96rpx;
  29. left: 36rpx;
  30. }
  31. .header .logo-image {
  32. width: 100%;
  33. height: 100%;
  34. }
  35. .header .search-icon {
  36. position: absolute;
  37. z-index: 99;
  38. top: 260rpx;
  39. left: 30rpx;
  40. height: 65rpx;
  41. width: 530rpx;
  42. }
  43. .header .cart-icon {
  44. position: absolute;
  45. z-index: 99;
  46. top: 260rpx;
  47. right: 30rpx;
  48. height: 65rpx;
  49. width: 146rpx;
  50. }
  51. .banner {
  52. display: flex;
  53. justify-content: center;
  54. align-items: center;
  55. padding: 24rpx 0 10rpx;
  56. }
  57. .banner .banner-item {
  58. border: 1px solid #dfefec;
  59. width: 690rpx;
  60. height: 310rpx;
  61. display: block;
  62. border-radius: 25rpx;
  63. }
  64. .hot-bar {
  65. padding: 14rpx 30rpx 10rpx;
  66. display: flex;
  67. flex-direction: row;
  68. flex-wrap: nowrap;
  69. justify-content: space-between;
  70. align-items: center;
  71. }
  72. .hot-bar .hot-image {
  73. width: 220rpx;
  74. height: 300rpx;
  75. }
  76. .brand-bar {
  77. padding: 14rpx 30rpx 10rpx;
  78. display: flex;
  79. flex-direction: row;
  80. flex-wrap: wrap;
  81. justify-content: space-between;
  82. align-items: center;
  83. }
  84. .brand-bar .brand-item {
  85. width: 120rpx;
  86. height: 120rpx;
  87. margin-bottom: 20rpx;
  88. }
  89. .brand-bar .brand-item .brand-image {
  90. width: 100%;
  91. height: 100%;
  92. }
  93. .slider {
  94. display: flex;
  95. justify-content: center;
  96. align-items: center;
  97. padding: 24rpx 0 10rpx;
  98. }
  99. .slider .slider-item {
  100. border: 1px solid #dfefec;
  101. width: 690rpx;
  102. height: 220rpx;
  103. display: block;
  104. border-radius: 25rpx;
  105. }
  106. .category {
  107. height: 300rpx;
  108. margin: 14rpx 30rpx 10rpx 30rpx;
  109. border: 1px solid #dfefec;
  110. border-radius: 25rpx;
  111. padding: 20rpx;
  112. display: flex;
  113. flex-direction: row;
  114. flex-wrap: wrap;
  115. justify-content: space-between;
  116. align-items: center;
  117. }
  118. .category .category-item {
  119. width: 144rpx;
  120. height: 144rpx;
  121. margin-bottom: 20rpx;
  122. }
  123. .category .category-item .category-image {
  124. width: 100%;
  125. height: 100%;
  126. }
  127. .goods {
  128. min-height: 800rpx;
  129. }