catalog.wxss 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  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-a {
  12. background-color: #fff;
  13. }
  14. .search{
  15. position: relative;
  16. box-shadow: 0 2px 2px #fff;
  17. z-index: 99;
  18. height: 80rpx;
  19. border: 1px solid rgba(0,0,0,0.1);
  20. margin: 0 30rpx 20rpx ;
  21. border-radius: 40rpx;
  22. }
  23. .search view{
  24. background: none;
  25. width: 80%;
  26. border: none;
  27. padding-left: 20rpx;
  28. font-size: 24rpx;
  29. color: #fff;
  30. line-height: 24rpx;
  31. vertical-align: middle;
  32. }
  33. .search image{
  34. width: 28rpx;
  35. height: 28rpx;
  36. display: inline-block;
  37. position: absolute;
  38. top: 50%;
  39. transform: translateY(-50%);
  40. left: 28rpx;
  41. }
  42. /*
  43. .search {
  44. width: 100%;
  45. padding: 16rpx 46rpx 36rpx;
  46. background: #fff;
  47. position: relative
  48. }
  49. .search .input {
  50. display: block;
  51. height: 80rpx;
  52. background: #fff;
  53. border-radius: 4rpx;
  54. color: rgba(0,0,0,0.3);
  55. overflow: hidden;
  56. border:1px solid rgba(0,0,0,0.1);
  57. position: relative;
  58. }
  59. .search .icon {
  60. background: url(https://4d-tjw.oss-cn-shenzhen.aliyuncs.com/wxmall/images/icon-normal_search2.png) center no-repeat;
  61. background-size: 100%;
  62. width: 28rpx;
  63. height: 28rpx;
  64. position: absolute;
  65. left: 30rpx;
  66. top: 50%;
  67. transform: translateY(-50%);
  68. }
  69. .search .txt {
  70. top: 50%;
  71. transform: translateY(-50%);
  72. color: #959595;
  73. padding-left: 10rpx;
  74. font-size: 28rpx;
  75. position: absolute;
  76. left: 70rpx;
  77. } */
  78. .catalog {
  79. flex: 1;
  80. width: 100%;
  81. background: #fff;
  82. display: flex;
  83. border-top: 1px solid #fafafa;
  84. background: #F2F2F2;
  85. overflow: hidden;
  86. }
  87. .catalog .nav {
  88. width: 220rpx;
  89. height: 100%;
  90. margin-right: 20rpx;
  91. background-color: #fff;
  92. }
  93. .catalog .nav .item {
  94. text-align: center;
  95. line-height: 100rpx;
  96. height: 100rpx;
  97. color: #131D34;
  98. font-size: 30rpx;
  99. }
  100. .catalog .nav .item.active {
  101. font-size: 36rpx;
  102. background: #F2F2F2;
  103. position: relative;
  104. }
  105. .catalog .nav .item.active::after {
  106. content: '';
  107. position: absolute;
  108. left: 0;
  109. top: 0;
  110. bottom: 0;
  111. width: 8rpx;
  112. background: #ED5D18;
  113. }
  114. .catalog .cate {
  115. flex: 1;
  116. height: 100%;
  117. padding-right: 20rpx;
  118. background: #F2F2F2;
  119. }
  120. .catalog .zw {
  121. height: 10%;
  122. }
  123. .banner {
  124. display: block;
  125. height: 222rpx;
  126. width: 100%;
  127. position: relative;
  128. }
  129. .banner .image {
  130. position: absolute;
  131. top: 0;
  132. left: 0;
  133. height: 230rpx;
  134. width: 100%;
  135. }
  136. .banner .txt {
  137. position: absolute;
  138. top: 30rpx;
  139. text-align: center;
  140. color: #fff;
  141. font-size: 28rpx;
  142. left: 0;
  143. height: 192rpx;
  144. line-height: 192rpx;
  145. width: 100%;
  146. }
  147. .catalog .hd {
  148. width: 100%;
  149. height: 100rpx;
  150. padding: 42rpx 0 22rpx;
  151. position: relative;
  152. }
  153. .catalog .hd .txt {
  154. font-size: 26rpx;
  155. color: rgba(19, 29, 52, 1);
  156. padding: 0 16rpx;
  157. width: auto;
  158. position: relative;
  159. z-index: 2;
  160. }
  161. .catalog .bd {
  162. height: auto;
  163. width: 100%;
  164. overflow: hidden;
  165. padding: 30rpx;
  166. border-radius: 12px;
  167. background-color: #fff;
  168. }
  169. .catalog .bd .item {
  170. display: block;
  171. float: left;
  172. width: calc(33% - 32rpx);
  173. margin-top: 26rpx;
  174. overflow: hidden;
  175. box-sizing: border-box;
  176. }
  177. .catalog .bd .item:nth-child(1),
  178. .catalog .bd .item:nth-child(2),
  179. .catalog .bd .item:nth-child(3) {
  180. margin-bottom: 0;
  181. }
  182. .catalog .bd .item:nth-child(3n-1) {
  183. margin-left: 48rpx;
  184. margin-right: 48rpx;
  185. }
  186. .catalog .bd .item.last {
  187. margin-right: 0;
  188. }
  189. .catalog .bd .item .icon {
  190. width: 100%;
  191. width: 100%;
  192. padding-bottom: 100%;
  193. background: no-repeat center center;
  194. background-size: cover;
  195. border-radius: 50%;
  196. }
  197. .catalog .bd .item .txt {
  198. display: block;
  199. text-align: center;
  200. font-size: 26rpx;
  201. color: rgba(19, 29, 52, 1);
  202. height: 36rpx;
  203. width: 100%;
  204. margin-top: 14rpx;
  205. }
  206. .no-data {
  207. text-align: center;
  208. }
  209. .header .search{
  210. position: relative;
  211. box-shadow: 0 2px 2px #fff;
  212. z-index: 99;
  213. background-color: #fff;
  214. height: 80rpx;
  215. border: 1px solid rgba(0,0,0,0.1);
  216. }
  217. .search view{
  218. background: none;
  219. width: 80%;
  220. border: none;
  221. padding-left: 20rpx;
  222. font-size: 24rpx;
  223. color: #fff;
  224. line-height: 24rpx;
  225. vertical-align: middle;
  226. }
  227. .search input{
  228. color:rgba(0,0,0,0.3);
  229. height: 100%;
  230. padding: 0 28rpx 0 70rpx;
  231. border-radius: 8rpx;
  232. position: relative;
  233. z-index: 999;
  234. font-size: 14px;
  235. }
  236. .search image{
  237. width: 28rpx;
  238. height: 28rpx;
  239. display: inline-block;
  240. position: absolute;
  241. top: 50%;
  242. transform: translateY(-50%);
  243. left: 28rpx;
  244. }