catalog.wxss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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. position: relative
  19. }
  20. .search .input {
  21. width: 690rpx;
  22. height: 56rpx;
  23. background: #F4F4F4;
  24. border-radius: 24rpx;
  25. display: flex;
  26. color: #959595;
  27. align-items: center;
  28. justify-content: center;
  29. overflow: hidden;
  30. text-align: right;
  31. }
  32. .search .icon {
  33. background: url(https://4d-tjw.oss-cn-shenzhen.aliyuncs.com/wxmall/images/icon-normal_search2.png) center no-repeat;
  34. background-size: 100%;
  35. width: 28rpx;
  36. height: 28rpx;
  37. position: absolute;
  38. right: 50rpx;
  39. top: 50%;
  40. transform: translateY(-50%);
  41. }
  42. .search .txt {
  43. top: 50%;
  44. transform: translateY(-50%);
  45. color: #959595;
  46. padding-left: 10rpx;
  47. font-size: 28rpx;
  48. position: absolute;
  49. right: 100rpx;
  50. }
  51. .catalog {
  52. flex: 1;
  53. width: 100%;
  54. background: #fff;
  55. display: flex;
  56. border-top: 1px solid #fafafa;
  57. }
  58. .catalog .nav {
  59. width: 162rpx;
  60. height: 100%;
  61. background-color: #fcfbfc;
  62. }
  63. .catalog .nav .item {
  64. text-align: center;
  65. line-height: 90rpx;
  66. width: 162rpx;
  67. height: 90rpx;
  68. color: #333;
  69. font-size: 32rpx;
  70. border-left: 6rpx solid #fff;
  71. border-top: 1rpx solid rgba(112, 112, 112, 0.1);
  72. }
  73. .catalog .nav .item.active {
  74. color: #1fe4dc;
  75. font-size: 36rpx;
  76. border-left: 6rpx solid #1fe4dc;
  77. }
  78. .catalog .cate {
  79. border-left: 1rpx solid rgba(112, 112, 112, 0.1);
  80. flex: 1;
  81. height: 100%;
  82. padding: 0 16rpx 0 6rpx;
  83. }
  84. .banner {
  85. display: block;
  86. height: 222rpx;
  87. width: 100%;
  88. position: relative;
  89. }
  90. .banner .image {
  91. position: absolute;
  92. top: 0;
  93. left: 0;
  94. height: 230rpx;
  95. width: 100%;
  96. }
  97. .banner .txt {
  98. position: absolute;
  99. top: 30rpx;
  100. text-align: center;
  101. color: #fff;
  102. font-size: 28rpx;
  103. left: 0;
  104. height: 192rpx;
  105. line-height: 192rpx;
  106. width: 100%;
  107. }
  108. .catalog .hd {
  109. height: 108rpx;
  110. width: 100%;
  111. display: flex;
  112. justify-content: center;
  113. align-items: center;
  114. }
  115. .catalog .hd .txt {
  116. font-size: 24rpx;
  117. text-align: center;
  118. color: #959595;
  119. padding: 0 10rpx;
  120. width: auto;
  121. }
  122. .catalog .hd .line {
  123. width: 220rpx;
  124. height: 1px;
  125. background: #d9d9d9;
  126. }
  127. .catalog .bd {
  128. height: auto;
  129. width: 100%;
  130. overflow: hidden;
  131. }
  132. .catalog .bd .item {
  133. display: block;
  134. float: left;
  135. margin-right: 40rpx;
  136. }
  137. .catalog .bd .item:nth-child(3n) {
  138. margin-right: 0;
  139. }
  140. .catalog .bd .item.last {
  141. margin-right: 0;
  142. }
  143. .catalog .bd .item .icon {
  144. height: 160rpx;
  145. width: 160rpx;
  146. }
  147. .catalog .bd .item .txt {
  148. display: block;
  149. text-align: center;
  150. font-size: 24rpx;
  151. color: #959595;
  152. height: 72rpx;
  153. width: 160rpx;
  154. }