search.wxss 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. @charset "UTF-8";
  2. /**
  3. * 这里是uni-app内置的常用样式变量
  4. *
  5. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  6. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  7. *
  8. */
  9. /**
  10. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  11. *
  12. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  13. */
  14. /* 颜色变量 */
  15. /* 字体大小变量 */
  16. /* 行为相关颜色 */
  17. /* 文字基本颜色 */
  18. /* 背景颜色 */
  19. /* 边框颜色 */
  20. /* 尺寸变量 */
  21. /* 文字尺寸 */
  22. /* 图片尺寸 */
  23. /* Border Radius */
  24. /* 水平间距 */
  25. /* 垂直间距 */
  26. /* 透明度 */
  27. /* 文章场景相关 */
  28. /**
  29. * 这里是uni-app内置的常用样式变量
  30. *
  31. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  32. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  33. *
  34. */
  35. /**
  36. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  37. *
  38. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  39. */
  40. /* 颜色变量 */
  41. /* 字体大小变量 */
  42. /* 行为相关颜色 */
  43. /* 文字基本颜色 */
  44. /* 背景颜色 */
  45. /* 边框颜色 */
  46. /* 尺寸变量 */
  47. /* 文字尺寸 */
  48. /* 图片尺寸 */
  49. /* Border Radius */
  50. /* 水平间距 */
  51. /* 垂直间距 */
  52. /* 透明度 */
  53. /* 文章场景相关 */
  54. page {
  55. background-color: #f7f7f7 !important;
  56. }
  57. .search-main {
  58. width: 100%;
  59. height: 88rpx;
  60. position: fixed;
  61. top: 0;
  62. left: 0;
  63. background: #ffffff;
  64. z-index: 1001;
  65. box-sizing: border-box;
  66. padding: 9rpx 24rpx;
  67. }
  68. .search-main .gosearch-btn {
  69. width: 604rpx;
  70. height: 100%;
  71. float: left;
  72. border-radius: 40rpx;
  73. background: #f0f0f0;
  74. margin: 0 auto;
  75. padding: 0 20rpx;
  76. font-size: 28rpx;
  77. line-height: 66rpx;
  78. padding-left: 66rpx;
  79. color: #8a8a8a;
  80. background: #f7f7f7;
  81. position: relative;
  82. box-sizing: border-box;
  83. }
  84. .search-main .gosearch-btn .icon-sousuo {
  85. width: 66rpx;
  86. height: 66rpx;
  87. line-height: 66rpx;
  88. text-align: center;
  89. display: block;
  90. position: absolute;
  91. left: 0;
  92. top: 0;
  93. font-size: 34rpx;
  94. color: #8a8a8a;
  95. z-index: 10;
  96. }
  97. .search-main .gosearch-btn .icon-quxiao {
  98. width: 66rpx;
  99. height: 66rpx;
  100. display: block;
  101. line-height: 66rpx;
  102. font-size: 36rpx;
  103. text-align: center;
  104. color: #8a8a8a;
  105. position: absolute;
  106. right: 10rpx;
  107. top: 0;
  108. padding: 0 10rpx;
  109. z-index: 100;
  110. }
  111. .search-main .gosearch-btn .input {
  112. width: 530rpx;
  113. height: 100%;
  114. float: left;
  115. font-size: 24rpx;
  116. box-sizing: border-box;
  117. padding-right: 66rpx;
  118. }
  119. .search-main .search-btn {
  120. width: 90rpx;
  121. height: 66rpx;
  122. line-height: 66rpx;
  123. float: right;
  124. text-align: center;
  125. color: #666666;
  126. font-size: 24rpx;
  127. }
  128. .search-container {
  129. padding-top: 91rpx;
  130. }
  131. .search-container-history {
  132. width: 100%;
  133. height: auto;
  134. background-color: #ffffff;
  135. }
  136. .s-block {
  137. background: #ffffff;
  138. }
  139. .s-block.hot {
  140. border-top: 20rpx solid #f7f7f7;
  141. }
  142. .s-block .header {
  143. font-size: 32rpx;
  144. padding: 40rpx 24rpx 22rpx 24rpx;
  145. line-height: 42rpx;
  146. font-size: 30rpx;
  147. font-weight: bold;
  148. position: relative;
  149. width: 100%;
  150. float: left;
  151. box-sizing: border-box;
  152. }
  153. .s-block .header .icon-shanchu {
  154. font-size: 36rpx;
  155. color: #333333;
  156. float: right;
  157. padding: 0 10rpx;
  158. z-index: 10;
  159. font-weight: normal;
  160. }
  161. .s-block .list {
  162. width: 100%;
  163. height: auot;
  164. float: left;
  165. padding: 0 24rpx 30rpx 24rpx;
  166. box-sizing: border-box;
  167. }
  168. .s-block .list .list-main {
  169. width: 100%;
  170. float: left;
  171. display: flex;
  172. flex-wrap: wrap;
  173. }
  174. .s-block .list .list-main view {
  175. color: #8a8a8a;
  176. font-size: 24rpx;
  177. box-sizing: border-box;
  178. text-align: center;
  179. height: 48rpx;
  180. line-height: 48rpx;
  181. border-radius: 24rpx;
  182. margin: 12rpx 12rpx 12rpx 0;
  183. padding: 0 20rpx;
  184. white-space: nowrap;
  185. text-overflow: ellipsis;
  186. background-color: #f3f3f3;
  187. }
  188. .s-block .list .list-main view .iconfont {
  189. font-size: 30rpx;
  190. color: #e15616;
  191. margin-left: 12rpx;
  192. }
  193. .s-block .list .list-main view.list-active {
  194. background-color: #fef6f3;
  195. color: #e15616;
  196. }
  197. .commodity-list-wrapper {
  198. box-sizing: border-box;
  199. padding: 0 24rpx;
  200. background: #ffffff;
  201. }
  202. .commodity-list-wrapper .scroll-view {
  203. height: 100%;
  204. overflow: scroll;
  205. }
  206. .commodity-list-wrapper .empty-container-image {
  207. margin-top: -300rpx;
  208. }
  209. .product-list-type {
  210. display: flex;
  211. justify-content: space-between;
  212. align-items: center;
  213. padding: 32rpx 0;
  214. border-bottom: 1px solid #e1e1e1;
  215. overflow: hidden;
  216. }
  217. .product-list-type:last-child {
  218. border-bottom: 0;
  219. }
  220. .product-list-type .product-list-image {
  221. width: 182rpx;
  222. height: 182rpx;
  223. box-sizing: border-box;
  224. border-radius: 8rpx;
  225. border: 1px solid #e1e1e1;
  226. }
  227. .product-list-type .product-list-image .product-image {
  228. width: 180rpx;
  229. height: 180rpx;
  230. display: block;
  231. border-radius: 8rpx;
  232. }
  233. .product-list-type .product-list-msgs {
  234. width: 495rpx;
  235. height: 100%;
  236. }
  237. .product-list-type .product-list-msgs .product-name {
  238. width: 100%;
  239. height: 72rpx;
  240. line-height: 36rpx;
  241. font-size: 26rpx;
  242. color: #333333;
  243. text-align: justify;
  244. }
  245. .product-list-type .product-list-msgs .product-unit,
  246. .product-list-type .product-list-msgs .product-tags,
  247. .product-list-type .product-list-msgs .product-price {
  248. margin-top: 8rpx;
  249. }
  250. .product-list-type .product-list-msgs .product-unit {
  251. width: 100%;
  252. height: 28rpx;
  253. text-align: left;
  254. line-height: 28rpx;
  255. font-size: 20rpx;
  256. color: #999999;
  257. }
  258. .product-list-type .product-list-msgs .product-tags {
  259. display: flex;
  260. justify-content: flex-start;
  261. align-items: center;
  262. width: 100%;
  263. height: 30rpx;
  264. }
  265. .product-list-type .product-list-msgs .product-tags .tag {
  266. margin-right: 8rpx;
  267. font-size: 22rpx;
  268. height: 30rpx;
  269. line-height: 30rpx;
  270. text-align: center;
  271. }
  272. .product-list-type .product-list-msgs .product-tags .tag.type2 {
  273. width: 80rpx;
  274. color: #f83c6c;
  275. background: url(https://static.caimei365.com/app/mini-hehe/icon/icon-active.png) top center no-repeat;
  276. background-size: contain;
  277. }
  278. .product-list-type .product-list-msgs .product-price {
  279. display: flex;
  280. justify-content: space-between;
  281. align-items: flex-end;
  282. height: 26rpx;
  283. }
  284. .product-list-type .product-list-msgs .product-price .price {
  285. font-size: 26rpx;
  286. color: #f83c6c;
  287. font-weight: bold;
  288. line-height: 26rpx;
  289. }
  290. .product-list-type .product-list-msgs .product-price .carts-add {
  291. width: 44rpx;
  292. height: 44rpx;
  293. line-height: 44rpx;
  294. border-radius: 50%;
  295. text-align: center;
  296. font-size: 32rpx;
  297. color: #ffffff;
  298. background-color: #ff457b;
  299. }