index.wxss 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /* banner */
  2. .banner {
  3. width: 750rpx;
  4. height: 417rpx;
  5. }
  6. .banner image {
  7. width: 100%;
  8. height: 417rpx;
  9. }
  10. /* 首页分类 */
  11. .m-menu {
  12. display: flex;
  13. height: 181rpx;
  14. width: 750rpx;
  15. flex-flow: row nowrap;
  16. align-items: center;
  17. justify-content: space-between;
  18. background-color: #fff;
  19. }
  20. .m-menu .item {
  21. flex: 1;
  22. display: block;
  23. padding: 20rpx 0;
  24. }
  25. .m-menu image {
  26. display: block;
  27. width: 58rpx;
  28. height: 58rpx;
  29. margin: 0 auto;
  30. margin-bottom: 12rpx;
  31. }
  32. .m-menu text {
  33. display: block;
  34. font-size: 24rpx;
  35. text-align: center;
  36. margin: 0 auto;
  37. line-height: 1;
  38. color: #333;
  39. }
  40. /* 推荐商品 */
  41. .a-section {
  42. width: 750rpx;
  43. height: auto;
  44. overflow: hidden;
  45. background: #fff;
  46. color: #333;
  47. margin-top: 20rpx;
  48. }
  49. .a-section .h {
  50. display: flex;
  51. flex-flow: row nowrap;
  52. align-items: center;
  53. justify-content: center;
  54. height: 130rpx;
  55. }
  56. .a-section .h .txt {
  57. padding-right: 30rpx;
  58. background-size: 16.656rpx 27rpx;
  59. display: inline-block;
  60. height: 36rpx;
  61. font-size: 33rpx;
  62. line-height: 36rpx;
  63. }
  64. .a-rec .b {
  65. width: 750rpx;
  66. height: auto;
  67. overflow: hidden;
  68. padding: 0 31rpx 45rpx 31rpx;
  69. }
  70. .a-rec .b .item {
  71. float: left;
  72. width: 302rpx;
  73. margin-top: 10rpx;
  74. margin-left: 21rpx;
  75. margin-right: 21rpx;
  76. }
  77. .a-rec .b .img {
  78. width: 302rpx;
  79. height: 302rpx;
  80. }
  81. .a-rec .b .name {
  82. text-align: center;
  83. display: block;
  84. width: 302rpx;
  85. height: 35rpx;
  86. margin-bottom: 14rpx;
  87. overflow: hidden;
  88. font-size: 30rpx;
  89. color: #333;
  90. }
  91. .a-rec .b .price {
  92. display: block;
  93. text-align: center;
  94. line-height: 30rpx;
  95. font-size: 30rpx;
  96. color: #f94b4b;
  97. }