search.wxss 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. @charset "UTF-8";
  2. /* 页面左右间距 */
  3. /* 文字尺寸 */
  4. /*文字颜色*/
  5. /* 边框颜色 */
  6. /*颜色*/
  7. /* 图片加载中颜色 */
  8. /* 行为相关颜色 */
  9. /* 功能栏字体大小 */
  10. /*功能栏左侧小图标*/
  11. page,
  12. .content {
  13. height: 100%;
  14. background-color: #f8f8f8;
  15. }
  16. .vheight {
  17. height: 25px;
  18. background-color: #FFFFFF;
  19. }
  20. .input-box {
  21. padding: 25rpx;
  22. background-color: #ffffff;
  23. height: 44px;
  24. }
  25. .input-box .iconsearch {
  26. font-size: 50rpx;
  27. }
  28. .input-box .input-content {
  29. border-radius: 99rpx;
  30. -webkit-box-flex: 1;
  31. -webkit-flex-grow: 1;
  32. flex-grow: 1;
  33. padding: 10rpx 30rpx;
  34. background-color: rgba(231, 231, 231, 0.7);
  35. }
  36. .input-box .input-content .input {
  37. -webkit-box-flex: 1;
  38. -webkit-flex-grow: 1;
  39. flex-grow: 1;
  40. }
  41. .input-box .input-content .input input {
  42. font-size: 32rpx;
  43. }
  44. .input-box .input-button {
  45. padding-left: 20rpx;
  46. font-size: 32rpx;
  47. height: 100%;
  48. }
  49. .swiper-box {
  50. height: calc(100% - 44px);
  51. }
  52. .swiper-box .search-hot {
  53. padding: 25rpx;
  54. }
  55. .swiper-box .search-hot .title {
  56. font-size: 32rpx;
  57. color: #909399;
  58. }
  59. .swiper-box .search-hot .hot-list {
  60. display: -webkit-box;
  61. display: -webkit-flex;
  62. display: flex;
  63. -webkit-flex-wrap: wrap;
  64. flex-wrap: wrap;
  65. margin-top: 30rpx;
  66. }
  67. .swiper-box .search-hot .hot-list .list-item {
  68. padding: 10rpx 20rpx;
  69. border: 1px solid #dcdfe6;
  70. color: #303133;
  71. font-size: 28rpx;
  72. margin-right: 20rpx;
  73. margin-bottom: 20rpx;
  74. }
  75. .guess-section .icon {
  76. margin-right: 10rpx;
  77. display: inline-block;
  78. padding: 2rpx 10rpx;
  79. border: 1rpx solid #fd5b23;
  80. color: #fd5b23;
  81. line-height: 1;
  82. font-size: 28rpx;
  83. border-radius: 10rpx;
  84. }
  85. .guess-section {
  86. display: -webkit-box;
  87. display: -webkit-flex;
  88. display: flex;
  89. -webkit-flex-wrap: wrap;
  90. flex-wrap: wrap;
  91. }
  92. .guess-section .guess-item {
  93. overflow: hidden;
  94. display: -webkit-box;
  95. display: -webkit-flex;
  96. display: flex;
  97. -webkit-box-orient: vertical;
  98. -webkit-box-direction: normal;
  99. -webkit-flex-direction: column;
  100. flex-direction: column;
  101. width: 48%;
  102. margin-bottom: 4%;
  103. border-radius: 15rpx;
  104. background-color: white;
  105. -webkit-box-shadow: 0rpx 0rpx 10rpx 10rpx #f3f3f3;
  106. box-shadow: 0rpx 0rpx 10rpx 10rpx #f3f3f3;
  107. }
  108. .guess-section .guess-item:nth-child(2n + 1) {
  109. margin-right: 4%;
  110. }
  111. .guess-section .image-wrapper {
  112. width: 100%;
  113. height: 330rpx;
  114. border-radius: 3px;
  115. overflow: hidden;
  116. }
  117. .guess-section .image-wrapper image {
  118. width: 100%;
  119. height: 100%;
  120. opacity: 1;
  121. }
  122. .guess-section .title {
  123. font-size: 28rpx;
  124. color: #303133;
  125. font-weight: bold;
  126. line-height: 80rpx;
  127. }
  128. .guess-section .price {
  129. font-size: 32rpx;
  130. color: #606266;
  131. font-weight: bold;
  132. line-height: 1;
  133. line-height: 80rpx;
  134. }
  135. .guess-section .detail {
  136. line-height: 1;
  137. }
  138. .guess-section .tip {
  139. color: white;
  140. background-color: #fd5b23;
  141. line-height: 1.5;
  142. font-size: 24rpx;
  143. padding-left: 20rpx;
  144. }
  145. .navbar {
  146. position: absolute;
  147. top: 0;
  148. left: 0;
  149. display: -webkit-box;
  150. display: -webkit-flex;
  151. display: flex;
  152. width: 100%;
  153. height: 40px;
  154. background: #fff;
  155. -webkit-box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.06);
  156. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.06);
  157. z-index: 10;
  158. }
  159. .navbar .nav-item {
  160. -webkit-box-flex: 1;
  161. -webkit-flex: 1;
  162. flex: 1;
  163. display: -webkit-box;
  164. display: -webkit-flex;
  165. display: flex;
  166. -webkit-box-pack: center;
  167. -webkit-justify-content: center;
  168. justify-content: center;
  169. -webkit-box-align: center;
  170. -webkit-align-items: center;
  171. align-items: center;
  172. height: 100%;
  173. font-size: 30rpx;
  174. color: #303133;
  175. position: relative;
  176. }
  177. .navbar .nav-item.current {
  178. color: #FF4C4C;
  179. }
  180. .navbar .nav-item.current:after {
  181. content: '';
  182. position: absolute;
  183. left: 50%;
  184. bottom: 0;
  185. -webkit-transform: translateX(-50%);
  186. transform: translateX(-50%);
  187. width: 120rpx;
  188. height: 0;
  189. border-bottom: 4rpx solid #FF4C4C;
  190. }
  191. .navbar .p-box {
  192. display: -webkit-box;
  193. display: -webkit-flex;
  194. display: flex;
  195. -webkit-box-orient: vertical;
  196. -webkit-box-direction: normal;
  197. -webkit-flex-direction: column;
  198. flex-direction: column;
  199. }
  200. .navbar .p-box .iconfont {
  201. display: -webkit-box;
  202. display: -webkit-flex;
  203. display: flex;
  204. -webkit-box-align: center;
  205. -webkit-align-items: center;
  206. align-items: center;
  207. -webkit-box-pack: center;
  208. -webkit-justify-content: center;
  209. justify-content: center;
  210. width: 30rpx;
  211. height: 14rpx;
  212. line-height: 1;
  213. margin-left: 4rpx;
  214. font-size: 26rpx;
  215. color: #888;
  216. }
  217. .navbar .p-box .iconfont.active {
  218. color: #FF4C4C;
  219. }
  220. .navbar .p-box .xia {
  221. -webkit-transform: scaleY(-1);
  222. transform: scaleY(-1);
  223. }
  224. .navbar .cate-item {
  225. display: -webkit-box;
  226. display: -webkit-flex;
  227. display: flex;
  228. -webkit-box-pack: center;
  229. -webkit-justify-content: center;
  230. justify-content: center;
  231. -webkit-box-align: center;
  232. -webkit-align-items: center;
  233. align-items: center;
  234. height: 100%;
  235. width: 80rpx;
  236. position: relative;
  237. font-size: 44rpx;
  238. }
  239. .navbar .cate-item:after {
  240. content: '';
  241. position: absolute;
  242. left: 0;
  243. top: 50%;
  244. -webkit-transform: translateY(-50%);
  245. transform: translateY(-50%);
  246. border-left: 1px solid #ddd;
  247. width: 0;
  248. height: 36rpx;
  249. }
  250. .cate-list {
  251. height: 100%;
  252. padding-top: 40px;
  253. }