search.wxss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. .content,page {
  2. height: 100%;
  3. background-color: #f8f8f8;
  4. }
  5. .vheight {
  6. height: 25px;
  7. }
  8. .input-box,.vheight {
  9. background-color: #fff;
  10. }
  11. .input-box {
  12. padding: 25rpx;
  13. height: 44px;
  14. }
  15. .input-box .iconsearch {
  16. font-size: 50rpx;
  17. }
  18. .input-box .input-content {
  19. border-radius: 99rpx;
  20. padding: 10rpx 30rpx;
  21. background-color: hsla(0,0%,90.6%,.7);
  22. }
  23. .input-box .input-content,.input-box .input-content .input {
  24. -webkit-box-flex: 1;
  25. flex-grow: 1;
  26. }
  27. .input-box .input-content .input input {
  28. font-size: 32rpx;
  29. }
  30. .input-box .input-button {
  31. padding-left: 20rpx;
  32. font-size: 32rpx;
  33. height: 100%;
  34. }
  35. .swiper-box {
  36. height: calc(100% - 44px);
  37. }
  38. .swiper-box .search-hot {
  39. padding: 25rpx;
  40. }
  41. .swiper-box .search-hot .title {
  42. font-size: 32rpx;
  43. color: #909399;
  44. }
  45. .swiper-box .search-hot .hot-list {
  46. display: flex;
  47. flex-wrap: wrap;
  48. margin-top: 30rpx;
  49. }
  50. .swiper-box .search-hot .hot-list .list-item {
  51. padding: 10rpx 20rpx;
  52. border: 1px solid #dcdfe6;
  53. color: #303133;
  54. font-size: 28rpx;
  55. margin-right: 20rpx;
  56. margin-bottom: 20rpx;
  57. }
  58. .guess-section .icon {
  59. margin-right: 10rpx;
  60. display: inline-block;
  61. padding: 2rpx 10rpx;
  62. border: 1rpx solid #fd5b23;
  63. color: #fd5b23;
  64. line-height: 1;
  65. font-size: 28rpx;
  66. border-radius: 10rpx;
  67. }
  68. .guess-section {
  69. flex-wrap: wrap;
  70. }
  71. .guess-section,.guess-section .guess-item {
  72. display: flex;
  73. }
  74. .guess-section .guess-item {
  75. overflow: hidden;
  76. -webkit-box-orient: vertical;
  77. -webkit-box-direction: normal;
  78. flex-direction: column;
  79. width: 48%;
  80. margin-bottom: 4%;
  81. border-radius: 15rpx;
  82. background-color: #fff;
  83. box-shadow: 0rpx 0rpx 10rpx 10rpx #f3f3f3;
  84. }
  85. .guess-section .guess-item:nth-child(2n+1) {
  86. margin-right: 4%;
  87. }
  88. .guess-section .image-wrapper {
  89. width: 100%;
  90. height: 330rpx;
  91. border-radius: 3px;
  92. overflow: hidden;
  93. }
  94. .guess-section .image-wrapper image {
  95. width: 100%;
  96. height: 100%;
  97. opacity: 1;
  98. }
  99. .guess-section .title {
  100. font-size: 28rpx;
  101. color: #303133;
  102. font-weight: 700;
  103. line-height: 80rpx;
  104. }
  105. .guess-section .price {
  106. font-size: 32rpx;
  107. color: #606266;
  108. font-weight: 700;
  109. line-height: 1;
  110. line-height: 80rpx;
  111. }
  112. .guess-section .detail {
  113. line-height: 1;
  114. }
  115. .guess-section .tip {
  116. color: #fff;
  117. background-color: #fd5b23;
  118. line-height: 1.5;
  119. font-size: 24rpx;
  120. padding-left: 20rpx;
  121. }
  122. .navbar {
  123. position: absolute;
  124. top: 0;
  125. left: 0;
  126. width: 100%;
  127. height: 40px;
  128. background: #fff;
  129. box-shadow: 0 2rpx 10rpx rgba(0,0,0,.06);
  130. z-index: 10;
  131. }
  132. .navbar,.navbar .nav-item {
  133. display: flex;
  134. }
  135. .navbar .nav-item {
  136. -webkit-box-flex: 1;
  137. flex: 1;
  138. -webkit-box-pack: center;
  139. justify-content: center;
  140. -webkit-box-align: center;
  141. align-items: center;
  142. height: 100%;
  143. font-size: 30rpx;
  144. color: #303133;
  145. position: relative;
  146. }
  147. .navbar .nav-item.current {
  148. color: #5dbc7c;
  149. }
  150. .navbar .nav-item.current:after {
  151. content: "";
  152. position: absolute;
  153. left: 50%;
  154. bottom: 0;
  155. transform: translateX(-50%);
  156. width: 120rpx;
  157. height: 0;
  158. border-bottom: 4rpx solid #5dbc7c;
  159. }
  160. .navbar .p-box {
  161. -webkit-box-orient: vertical;
  162. -webkit-box-direction: normal;
  163. flex-direction: column;
  164. }
  165. .navbar .p-box,.navbar .p-box .iconfont {
  166. display: flex;
  167. }
  168. .navbar .p-box .iconfont {
  169. -webkit-box-align: center;
  170. align-items: center;
  171. -webkit-box-pack: center;
  172. justify-content: center;
  173. width: 30rpx;
  174. height: 14rpx;
  175. line-height: 1;
  176. margin-left: 4rpx;
  177. font-size: 26rpx;
  178. color: #888;
  179. }
  180. .navbar .p-box .iconfont.active {
  181. color: #5dbc7c;
  182. }
  183. .navbar .p-box .xia {
  184. transform: scaleY(-1);
  185. }
  186. .navbar .cate-item {
  187. display: flex;
  188. -webkit-box-pack: center;
  189. justify-content: center;
  190. -webkit-box-align: center;
  191. align-items: center;
  192. height: 100%;
  193. width: 80rpx;
  194. position: relative;
  195. font-size: 44rpx;
  196. }
  197. .navbar .cate-item:after {
  198. content: "";
  199. position: absolute;
  200. left: 0;
  201. top: 50%;
  202. transform: translateY(-50%);
  203. border-left: 1px solid #ddd;
  204. width: 0;
  205. height: 36rpx;
  206. }
  207. .cate-list {
  208. height: 100%;
  209. padding-top: 40px;
  210. }