catalog.wxss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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 .icon {
  29. background: url(http://yanxuan.nosdn.127.net/hxm/yanxuan-wap/p/20161201/style/img/icon-normal/search2-2fb94833aa.png) center no-repeat;
  30. background-size: 100%;
  31. width: 28rpx;
  32. height: 28rpx;
  33. }
  34. .search .txt {
  35. height: 42rpx;
  36. line-height: 42rpx;
  37. color: #666;
  38. padding-left: 10rpx;
  39. font-size: 30rpx;
  40. }
  41. .catalog {
  42. flex: 1;
  43. width: 100%;
  44. background: #fff;
  45. display: flex;
  46. border-top: 1px solid #fafafa;
  47. }
  48. .catalog .nav {
  49. width: 162rpx;
  50. height: 100%;
  51. }
  52. .catalog .nav .item {
  53. text-align: center;
  54. line-height: 90rpx;
  55. width: 162rpx;
  56. height: 90rpx;
  57. color: #333;
  58. font-size: 28rpx;
  59. border-left: 6rpx solid #fff;
  60. }
  61. .catalog .nav .item.active {
  62. color: #ab2b2b;
  63. font-size: 36rpx;
  64. border-left: 6rpx solid #ab2b2b;
  65. }
  66. .catalog .cate {
  67. border-left: 1px solid #fafafa;
  68. flex: 1;
  69. height: 100%;
  70. padding: 0 30rpx 0 30rpx;
  71. }
  72. .banner {
  73. display: block;
  74. height: 222rpx;
  75. width: 100%;
  76. position: relative;
  77. }
  78. .banner .image {
  79. position: absolute;
  80. top: 30rpx;
  81. left: 0;
  82. border-radius: 4rpx;
  83. height: 192rpx;
  84. width: 100%;
  85. }
  86. .banner .txt {
  87. position: absolute;
  88. top: 30rpx;
  89. text-align: center;
  90. color: #fff;
  91. font-size: 28rpx;
  92. left: 0;
  93. height: 192rpx;
  94. line-height: 192rpx;
  95. width: 100%;
  96. }
  97. .catalog .hd {
  98. height: 108rpx;
  99. width: 100%;
  100. display: flex;
  101. justify-content: center;
  102. align-items: center;
  103. }
  104. .catalog .hd .txt {
  105. font-size: 24rpx;
  106. text-align: center;
  107. color: #333;
  108. padding: 0 10rpx;
  109. width: auto;
  110. }
  111. .catalog .hd .line {
  112. width: 40rpx;
  113. height: 1px;
  114. background: #d9d9d9;
  115. }
  116. .catalog .bd {
  117. height: auto;
  118. width: 100%;
  119. overflow: hidden;
  120. }
  121. .catalog .bd .item {
  122. display: block;
  123. float: left;
  124. height: 216rpx;
  125. width: 144rpx;
  126. margin-right: 34rpx;
  127. }
  128. .catalog .bd .item.last {
  129. margin-right: 0;
  130. }
  131. .catalog .bd .item .icon {
  132. height: 144rpx;
  133. width: 144rpx;
  134. }
  135. .catalog .bd .item .txt {
  136. display: block;
  137. text-align: center;
  138. font-size: 24rpx;
  139. color: #333;
  140. height: 72rpx;
  141. width: 144rpx;
  142. }