search.wxss 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. page{
  2. min-height: 100%;
  3. background-color: #f4f4f4;
  4. }
  5. .container{
  6. min-height: 100%;
  7. background-color: #f4f4f4;
  8. }
  9. /* 输入框 */
  10. .search-header{
  11. position: fixed;
  12. top: 0;
  13. width: 750rpx;
  14. height: 91rpx;
  15. display: flex;
  16. background: #fff;
  17. border-bottom: 1px solid rgba(0,0,0,.15);
  18. padding: 0 31.25rpx;
  19. font-size: 29rpx;
  20. color: #333;
  21. }
  22. .search-header .input-box{
  23. position: relative;
  24. margin-top: 16rpx;
  25. float: left;
  26. width: 0;
  27. flex: 1;
  28. height: 59rpx;
  29. line-height: 59rpx;
  30. padding: 0 20rpx;
  31. background: #f4f4f4;
  32. }
  33. .search-header .icon{
  34. position: absolute;
  35. top: 14rpx;
  36. left: 20rpx;
  37. width: 31rpx;
  38. height: 31rpx;
  39. }
  40. .search-header .del{
  41. position: absolute;
  42. top: 3rpx;
  43. right: 10rpx;
  44. width: 53rpx;
  45. height: 53rpx;
  46. z-index: 10;
  47. }
  48. .search-header .keywrod{
  49. position: absolute;
  50. top: 0;
  51. left: 40rpx;
  52. width: 506rpx;
  53. height: 59rpx;
  54. padding-left: 30rpx;
  55. }
  56. .search-header .right{
  57. margin-top: 24rpx;
  58. margin-left: 31rpx;
  59. margin-right: 6rpx;
  60. width: 58rpx;
  61. height: 43rpx;
  62. line-height: 43rpx;
  63. float: right;
  64. }
  65. /* 热门关键字,历史搜索 */
  66. .no-search{
  67. height: auto;
  68. overflow: hidden;
  69. margin-top: 91rpx;
  70. }
  71. .serach-keywords{
  72. background: #fff;
  73. width: 750rpx;
  74. height: auto;
  75. overflow: hidden;
  76. margin-bottom: 20rpx;
  77. }
  78. .serach-keywords .h{
  79. padding: 0 31.25rpx;
  80. height: 93rpx;
  81. line-height: 93rpx;
  82. width: 100%;
  83. color: #999;
  84. font-size: 29rpx;
  85. }
  86. .serach-keywords .title{
  87. display: block;
  88. width: 120rpx;
  89. float: left;
  90. }
  91. .serach-keywords .icon{
  92. margin-top: 19rpx;
  93. float: right;
  94. display: block;
  95. margin-left: 511rpx;
  96. height: 55rpx;
  97. width: 55rpx;
  98. }
  99. .serach-keywords .b{
  100. width: 750rpx;
  101. height: auto;
  102. overflow: hidden;
  103. padding-left: 31.25rpx;
  104. }
  105. .serach-keywords .item{
  106. display: inline-block;
  107. width: auto;
  108. height: 48rpx;
  109. line-height: 48rpx;
  110. padding:0 15rpx;
  111. border: 1px solid #999;
  112. margin: 0 31.25rpx 31.25rpx 0;
  113. font-size: 24rpx;
  114. color: #333;
  115. }
  116. .serach-keywords .item.active{
  117. color: #f94b4b;
  118. border: 1px solid #f94b4b;
  119. }
  120. /* 搜索辅助 */
  121. .shelper-list{
  122. width: 750rpx;
  123. height: auto;
  124. overflow: hidden;
  125. background: #fff;
  126. padding: 0 31.25rpx;
  127. }
  128. .shelper-list .item{
  129. height: 93rpx;
  130. width: 687.5rpx;
  131. line-height: 93rpx;
  132. font-size: 24rpx;
  133. color: #333;
  134. border-bottom: 1px solid #f4f4f4;
  135. }
  136. /* 搜索结果 */
  137. .result-item{
  138. margin-top: 100rpx;
  139. height: auto;
  140. overflow: hidden;
  141. }
  142. .result-item .b{
  143. width: 750rpx;
  144. padding: 0 6.25rpx;
  145. height: auto;
  146. overflow: hidden;
  147. }
  148. .result-item .b .item{
  149. float: left;
  150. background: #fff;
  151. width: 365rpx;
  152. margin-bottom: 6.25rpx;
  153. padding-bottom: 33.333rpx;
  154. height: auto;
  155. overflow: hidden;
  156. text-align: center;
  157. }
  158. .result-item .b .item-b{
  159. margin-left: 6.25rpx;
  160. }
  161. .result-item .item .img{
  162. width: 302rpx;
  163. height: 302rpx;
  164. }
  165. .result-item .item .name{
  166. display: block;
  167. width: 365.625rpx;
  168. height: 35rpx;
  169. margin: 11.5rpx 0 22rpx 0;
  170. text-align: center;
  171. overflow: hidden;
  172. padding: 0 20rpx;
  173. font-size: 30rpx;
  174. color: #333;
  175. }
  176. .result-item .item .price{
  177. display: block;
  178. width: 365.625rpx;
  179. height: 30rpx;
  180. text-align: center;
  181. font-size: 30rpx;
  182. color: #f94b4b;
  183. }
  184. /* 无搜索结果 */
  185. .search-result-empty{
  186. width: 100%;
  187. height: 100%;
  188. padding-top: 300rpx;
  189. }
  190. .search-result-empty .icon{
  191. margin: 0 auto;
  192. display: block;
  193. width: 240rpx;
  194. height: 240rpx;
  195. }
  196. .search-result-empty .text{
  197. display: block;
  198. width: 100%;
  199. height: 40rpx;
  200. font-size: 28rpx;
  201. text-align: center;
  202. color: #999;
  203. }