index.wxss 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /**index.wxss**/
  2. page {
  3. overflow-x: hidden;
  4. overflow-y: scroll;
  5. display: flex;
  6. flex-direction: column;
  7. }
  8. .banner {
  9. display: flex;
  10. justify-content: center;
  11. align-items: center;
  12. padding: 24rpx 0 10rpx;
  13. }
  14. .banner .banner-item {
  15. border: 1px solid #dfefec;
  16. width: 690rpx;
  17. height: 310rpx;
  18. display: block;
  19. border-radius: 25rpx;
  20. }
  21. .hot-bar {
  22. padding: 14rpx 30rpx 10rpx;
  23. display: flex;
  24. flex-direction: row;
  25. flex-wrap: nowrap;
  26. justify-content: space-between;
  27. align-items: center;
  28. }
  29. .hot-bar .hot-image {
  30. width: 220rpx;
  31. height: 300rpx;
  32. }
  33. .brand-bar {
  34. padding: 14rpx 30rpx 10rpx;
  35. display: flex;
  36. flex-direction: row;
  37. flex-wrap: wrap;
  38. justify-content: space-between;
  39. align-items: center;
  40. }
  41. .brand-bar .brand-item {
  42. width: 120rpx;
  43. height: 120rpx;
  44. margin-bottom: 20rpx;
  45. }
  46. .brand-bar .brand-item .brand-image {
  47. width: 100%;
  48. height: 100%;
  49. }
  50. .slider {
  51. display: flex;
  52. justify-content: center;
  53. align-items: center;
  54. padding: 24rpx 0 10rpx;
  55. }
  56. .slider .slider-item {
  57. border: 1px solid #dfefec;
  58. width: 690rpx;
  59. height: 220rpx;
  60. display: block;
  61. border-radius: 25rpx;
  62. }
  63. .category {
  64. height: 300rpx;
  65. margin: 14rpx 30rpx 10rpx 30rpx;
  66. border: 1px solid #dfefec;
  67. border-radius: 25rpx;
  68. padding: 20rpx;
  69. display: flex;
  70. flex-direction: row;
  71. flex-wrap: wrap;
  72. justify-content: space-between;
  73. align-items: center;
  74. }
  75. .category .category-item {
  76. width: 144rpx;
  77. height: 144rpx;
  78. margin-bottom: 20rpx;
  79. }
  80. .category .category-item .category-image {
  81. width: 100%;
  82. height: 100%;
  83. }