index.wxss 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. .page-wrap {
  2. display: flex;
  3. flex-direction: column;
  4. justify-content: flex-start;
  5. align-items: center;
  6. width: 100vw;
  7. height: 100vh;
  8. background: #fff;
  9. }
  10. /* 搜索 */
  11. .search-bar {
  12. padding: 12rpx 25rpx;
  13. background-color: #fff;
  14. width: 100%;
  15. box-sizing: border-box;
  16. }
  17. .search-box {
  18. background-color: #f0f0f0;
  19. height: 56rpx;
  20. line-height: 56rpx;
  21. border-radius: 28rpx;
  22. color: #acacac;
  23. display: flex;
  24. align-content: center;
  25. }
  26. .search-icon {
  27. position: absolute;
  28. left: 20rpx;
  29. margin-left: 25rpx;
  30. margin-right: 12rpx;
  31. }
  32. .search-icon image {
  33. width: 36rpx;
  34. height: 36rpx;
  35. padding-top: 10rpx;
  36. }
  37. .search-box .ipt {
  38. padding: 0 30rpx 0 60rpx;
  39. line-height: 56rpx;
  40. height: 56rpx;
  41. width: 100%;
  42. box-sizing: border-box;
  43. }
  44. ::-webkit-scrollbar {
  45. width: 0;
  46. height: 0;
  47. color: transparent;
  48. }
  49. /* 列表 */
  50. .page-content {
  51. position: relative;
  52. width: 750rpx;
  53. flex-shrink: 0;
  54. flex-grow: 1;
  55. }
  56. .page-category {
  57. position: absolute;
  58. top: 0;
  59. left: 0;
  60. width: 160rpx;
  61. height: 1000rpx;
  62. background: #f8f8f7;
  63. padding-bottom: 100rpx;
  64. }
  65. .category-item {
  66. position: relative;
  67. width: 160rpx;
  68. height: 100rpx;
  69. display: flex;
  70. align-items: center;
  71. justify-content: center;
  72. font-size: 28rpx;
  73. color: #787878;
  74. line-height: 30rpx;
  75. }
  76. .category-item view {
  77. max-width: 136rpx;
  78. text-align: center;
  79. }
  80. .category-item .item-border {
  81. position: absolute;
  82. top: 36rpx;
  83. left: 0;
  84. display: none;
  85. width: 8rpx;
  86. height: 28rpx;
  87. background: linear-gradient(#ff7955, #ff4242);
  88. }
  89. .category-item.active {
  90. background: #fff;
  91. font-weight: 500;
  92. color: #333;
  93. }
  94. .category-item.active .item-border {
  95. display: block;
  96. }
  97. .page-list {
  98. position: absolute;
  99. top: 0;
  100. left: 160rpx;
  101. width: 590rpx;
  102. height: 1000rpx;
  103. padding-top: 10rpx;
  104. box-sizing: border-box;
  105. }
  106. .page-list .scroll-col-tip-top, .page-list .scroll-col-tip-bottom {
  107. height: 100rpx;
  108. display: flex;
  109. justify-content: center;
  110. align-items: center;
  111. color: #aaa;
  112. font-size: 24rpx;
  113. line-height: 24rpx;
  114. }
  115. .page-list .scroll-col-tip-bottom{
  116. padding-bottom:100rpx;
  117. }
  118. .page-list .scroll-col-tip-top image, .page-list .scroll-col-tip-bottom image {
  119. width: 24rpx;
  120. height: 16rpx;
  121. margin-right: 8rpx;
  122. }
  123. .mask {
  124. position: fixed;
  125. left: 0;
  126. right: 0;
  127. top: 84rpx;
  128. bottom: 0;
  129. background: rgba(0, 0, 0, 0.4);
  130. z-index: 10;
  131. }
  132. .tabbar {
  133. position: relative;
  134. height: 100rpx;
  135. width: 100%;
  136. }
  137. .none-rush-list {
  138. display: flex;
  139. flex-direction: column;
  140. align-items: center;
  141. justify-content: center;
  142. padding-bottom: 140rpx;
  143. padding-top: 140rpx;
  144. }
  145. .none-rush-list .img-block {
  146. width: 240rpx;
  147. height: 240rpx;
  148. margin-bottom: 30rpx;
  149. }
  150. .none-rush-list .h1 {
  151. font-size: 32rpx;
  152. line-height: 32rpx;
  153. color: #444;
  154. margin-bottom: 20rpx;
  155. }
  156. .none-rush-list .h2 {
  157. font-size: 24rpx;
  158. line-height: 24rpx;
  159. color: #aaa;
  160. }
  161. /* 子栏目 */
  162. .sub-cate {
  163. position: relative;
  164. line-height: 88rpx;
  165. overflow: hidden;
  166. white-space: nowrap;
  167. width: 590rpx;
  168. padding: 0 20rpx;
  169. box-sizing: border-box;
  170. font-size: 26rpx;
  171. z-index: 20;
  172. background-color: #fff;
  173. display: flex;
  174. margin-left: 160rpx;
  175. }
  176. .sub-cate-scroll {
  177. flex: 1;
  178. width:0;
  179. }
  180. .sub-cate::after {
  181. content: "";
  182. position: absolute;
  183. left: 20rpx;
  184. right: 20rpx;
  185. bottom: 0;
  186. border-bottom: 1rpx solid #e5e5e5;
  187. }
  188. .sub-cate-item {
  189. display: inline-block;
  190. min-width: 80rpx;
  191. text-align: center;
  192. padding: 0 20rpx;
  193. }
  194. .sub-cate-item.active {
  195. color: #f75451;
  196. }
  197. .icon-open {
  198. padding: 0 8rpx 0 20rpx;
  199. background-color: rgba(255, 255, 255, .9);
  200. }
  201. .openImg {
  202. width: 20rpx;
  203. height: 12rpx;
  204. transition: all 300ms ease-in;
  205. }
  206. .openImg.down {
  207. transform: rotate(180deg);
  208. }
  209. .hide-sub-item {
  210. line-height: 58rpx;
  211. text-align: right;
  212. width: 30%;
  213. }
  214. .upImg {
  215. width: 16rpx;
  216. height: 8rpx;
  217. vertical-align: middle;
  218. }
  219. .sub-cate-hide {
  220. position: absolute;
  221. left: 160rpx;
  222. right: 0;
  223. top: 89rpx;
  224. z-index: 500;
  225. background-color: #fff;
  226. padding: 20rpx;
  227. display: flex;
  228. flex-wrap: wrap;
  229. max-height: 300rpx;
  230. overflow-y: auto;
  231. align-items: center;
  232. }
  233. .sub-cate-hide .sub-cate-item {
  234. border: 1rpx solid #999999;
  235. line-height: 58rpx;
  236. border-radius: 29rpx;
  237. color: #999;
  238. margin: 0 1%;
  239. width: 22%;
  240. font-size: 24rpx;
  241. margin-bottom: 10rpx;
  242. }
  243. .sub-cate-hide .sub-cate-item.active {
  244. background-color: #f75451;
  245. color: #fff;
  246. border: 1rpx solid #f75451;
  247. }
  248. .pt50 {
  249. padding-top: 100rpx;
  250. }
  251. .mask {
  252. position: fixed;
  253. left: 160rpx;
  254. right: 0;
  255. top: 84rpx;
  256. bottom: 0;
  257. background: rgba(0,0,0,.4);
  258. z-index: 10;
  259. }