search.wxss 3.8 KB

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