index.less 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. .recommend {
  2. .header {
  3. position: relative;
  4. .headerBg {
  5. position: absolute;
  6. z-index: -2;
  7. width: 100%;
  8. height: 100%;
  9. background-color: white;
  10. }
  11. .swiper {
  12. margin: 0 auto;
  13. width: 710rpx;
  14. height: 216rpx;
  15. border-radius: 20rpx;
  16. overflow: hidden;
  17. box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
  18. .swiper-item {
  19. width: 100%;
  20. height: 100%;
  21. border-radius: 20rpx;
  22. overflow: hidden;
  23. }
  24. }
  25. }
  26. .firstClassify {
  27. padding-top: 34rpx;
  28. width: 100%;
  29. white-space: nowrap;
  30. background-color: white;
  31. .firstBox {
  32. text-align: center;
  33. display: inline-block;
  34. width: 98rpx;
  35. padding: 0rpx 20rpx;
  36. .icon {
  37. width: 60rpx;
  38. height: 58rpx;
  39. }
  40. .name {
  41. margin-top: 6rpx;
  42. font-weight: bold;
  43. font-size: 24rpx;
  44. }
  45. }
  46. }
  47. .demo-text-1 {
  48. background-color: rebeccapurple
  49. }
  50. .demo-text-2 {
  51. background-color: rgb(100, 153, 51)
  52. }
  53. .demo-text-3 {
  54. background-color: rgb(228, 119, 46)
  55. }
  56. .search {
  57. position: relative;
  58. background-color: white;
  59. padding: 30rpx 20rpx 22rpx;
  60. border-bottom-left-radius: 30rpx;
  61. border-bottom-right-radius: 30rpx;
  62. .searchImg {
  63. position: absolute;
  64. top: 42rpx;
  65. left: 42rpx;
  66. width: 24rpx;
  67. height: 24rpx;
  68. }
  69. .input {
  70. width: 100%;
  71. height: 50rpx;
  72. border-radius: 50rpx;
  73. background-color: #F2F6FC;
  74. box-sizing: border-box;
  75. }
  76. }
  77. .selectType {
  78. padding: 30rpx;
  79. display: flex;
  80. align-items: center;
  81. justify-content: space-between;
  82. .type {
  83. padding: 14rpx 0rpx;
  84. width: 200rpx;
  85. box-sizing: border-box;
  86. text-align: center;
  87. border: 1rpx solid #9f9f9fa4;
  88. border-radius: 50rpx;
  89. color: #1A1A1A;
  90. font-size: 24rpx;
  91. }
  92. .currentType {
  93. border: none;
  94. box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
  95. background-color: white;
  96. font-weight: bold;
  97. }
  98. }
  99. }