catalog.wxss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. page {
  2. height: 100%;
  3. }
  4. .container {
  5. background: #f9f9f9;
  6. height: 100%;
  7. width: 100%;
  8. display: flex;
  9. flex-direction: column;
  10. }
  11. .search {
  12. height: 88rpx;
  13. width: 100%;
  14. padding: 0 30rpx;
  15. background: #fff;
  16. display: flex;
  17. align-items: center;
  18. }
  19. .search .input {
  20. width: 690rpx;
  21. height: 56rpx;
  22. background: #ededed;
  23. border-radius: 8rpx;
  24. display: flex;
  25. align-items: center;
  26. justify-content: center;
  27. }
  28. .search .van-icon-search {
  29. line-height: 56rpx;
  30. }
  31. .search .txt {
  32. height: 42rpx;
  33. line-height: 42rpx;
  34. color: #666;
  35. padding-left: 10rpx;
  36. font-size: 30rpx;
  37. }
  38. .catalog {
  39. flex: 1;
  40. width: 100%;
  41. background: #fff;
  42. display: flex;
  43. border-top: 1px solid #fafafa;
  44. }
  45. .catalog .nav {
  46. width: 162rpx;
  47. height: 100%;
  48. }
  49. .catalog .nav .item {
  50. text-align: center;
  51. line-height: 90rpx;
  52. width: 162rpx;
  53. height: 90rpx;
  54. color: #333;
  55. font-size: 28rpx;
  56. border-left: 6rpx solid #fff;
  57. }
  58. .catalog .nav .item.active {
  59. color: #ab956d;
  60. font-size: 36rpx;
  61. border-left: 6rpx solid #ab956d;
  62. }
  63. .catalog .cate {
  64. border-left: 1px solid #fafafa;
  65. flex: 1;
  66. height: 100%;
  67. padding: 0 30rpx 0 30rpx;
  68. }
  69. .banner {
  70. display: block;
  71. height: 222rpx;
  72. width: 100%;
  73. position: relative;
  74. }
  75. .banner .image {
  76. position: absolute;
  77. top: 30rpx;
  78. left: 0;
  79. border-radius: 4rpx;
  80. height: 192rpx;
  81. width: 100%;
  82. }
  83. .banner .txt {
  84. position: absolute;
  85. top: 30rpx;
  86. text-align: center;
  87. color: #fff;
  88. font-size: 28rpx;
  89. left: 0;
  90. height: 192rpx;
  91. line-height: 192rpx;
  92. width: 100%;
  93. }
  94. .catalog .hd {
  95. height: 108rpx;
  96. width: 100%;
  97. display: flex;
  98. justify-content: center;
  99. align-items: center;
  100. }
  101. .catalog .hd .txt {
  102. font-size: 24rpx;
  103. text-align: center;
  104. color: #333;
  105. padding: 0 10rpx;
  106. width: auto;
  107. }
  108. .catalog .hd .line {
  109. width: 40rpx;
  110. height: 1px;
  111. background: #d9d9d9;
  112. }
  113. .catalog .bd {
  114. height: auto;
  115. width: 100%;
  116. overflow: hidden;
  117. }
  118. .catalog .bd .item {
  119. display: block;
  120. float: left;
  121. height: 216rpx;
  122. width: 144rpx;
  123. margin-right: 34rpx;
  124. }
  125. .catalog .bd .item.last {
  126. margin-right: 0;
  127. }
  128. .catalog .bd .item .icon {
  129. height: 144rpx;
  130. width: 144rpx;
  131. }
  132. .catalog .bd .item .txt {
  133. display: block;
  134. text-align: center;
  135. font-size: 24rpx;
  136. color: #333;
  137. height: 72rpx;
  138. width: 144rpx;
  139. }