search.wxss 5.3 KB

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