search.wxss 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  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-title {
  169. width: 100%;
  170. height: 40rpx;
  171. font-size: 26rpx;
  172. color: #333;
  173. }
  174. .s-block .list .list-main {
  175. width: 100%;
  176. float: left;
  177. display: flex;
  178. flex-wrap: wrap;
  179. }
  180. .s-block .list .list-main view {
  181. color: #8A8A8A;
  182. font-size: 24rpx;
  183. box-sizing: border-box;
  184. text-align: center;
  185. height: 48rpx;
  186. line-height: 48rpx;
  187. border-radius: 24rpx;
  188. margin: 12rpx 12rpx 12rpx 0;
  189. padding: .0 20rpx;
  190. white-space: nowrap;
  191. text-overflow: ellipsis;
  192. background-color: #F3F3F3;
  193. }
  194. .s-block .list .list-main view .iconfont {
  195. font-size: 30rpx;
  196. color: #e15616;
  197. margin-left: 12rpx;
  198. }
  199. .s-block .list .list-main view.list-active {
  200. background-color: #fef6f3;
  201. color: #e15616;
  202. }
  203. .commodity-list-wrapper {
  204. box-sizing: border-box;
  205. padding: 0 24rpx;
  206. background: #FFFFFF;
  207. }
  208. .commodity-list-wrapper scroll-view {
  209. height: 100%;
  210. overflow: scroll;
  211. }
  212. .commodity-list-wrapper .empty-container-image {
  213. margin-top: -300rpx;
  214. }
  215. .commodity-list-wrapper .toIndexPage {
  216. bottom: 390rpx;
  217. }
  218. .commodity-list-wrapper .show-more-btn {
  219. width: 276rpx;
  220. height: 52rpx;
  221. line-height: 52rpx;
  222. border: 2rpx solid #D8D8D8;
  223. background: #F7F7F7;
  224. font-size: 26rpx;
  225. margin: 26rpx 0;
  226. position: absolute;
  227. left: 50%;
  228. margin-left: -138rpx;
  229. }
  230. .product-list-type {
  231. height: 246rpx;
  232. padding: 32rpx 0;
  233. box-sizing: border-box;
  234. border-bottom: 1px solid #e1e1e1;
  235. }
  236. .product-list-type:last-child {
  237. border-bottom: none;
  238. }
  239. .product-list-type .product-list-image {
  240. width: 182rpx;
  241. height: 182rpx;
  242. box-sizing: border-box;
  243. border-radius: 8rpx;
  244. border: 1px solid #e1e1e1;
  245. float: left;
  246. }
  247. .product-list-type .product-list-image .product-image {
  248. width: 180rpx;
  249. height: 180rpx;
  250. display: block;
  251. border-radius: 8rpx;
  252. }
  253. .product-list-type .product-list-msgs {
  254. width: 495rpx;
  255. height: 100%;
  256. float: right;
  257. position: relative;
  258. }
  259. .product-list-type .product-list-msgs .product-name {
  260. width: 100%;
  261. height: auto;
  262. line-height: 36rpx;
  263. text-overflow: ellipsis;
  264. overflow: hidden;
  265. display: -webkit-box;
  266. -webkit-line-clamp: 2;
  267. line-clamp: 2;
  268. -webkit-box-orient: vertical;
  269. font-size: 26rpx;
  270. color: #333333;
  271. text-align: justify;
  272. float: left;
  273. }
  274. .product-list-type .product-list-msgs .product-unit {
  275. width: 100%;
  276. height: 28rpx;
  277. float: left;
  278. margin-top: 4rpx;
  279. text-align: left;
  280. line-height: 28rpx;
  281. font-size: 20rpx;
  282. color: #999999;
  283. }
  284. .product-list-type .product-list-msgs .product-tags {
  285. width: 100%;
  286. height: 30rpx;
  287. margin-top: 8rpx;
  288. float: left;
  289. }
  290. .product-list-type .product-list-msgs .product-tags .tag {
  291. display: inline-block;
  292. width: 80rpx;
  293. height: 30rpx;
  294. background: url(https://static.caimei365.com/app/mini-hehe/icon/icon-active.png) top center no-repeat;
  295. background-size: contain;
  296. font-size: 22rpx;
  297. line-height: 30rpx;
  298. text-align: center;
  299. color: #f83c6c;
  300. float: left;
  301. }
  302. .product-list-type .product-list-msgs .product-pric {
  303. width: 100%;
  304. height: 44rpx;
  305. position: absolute;
  306. bottom: -10rpx;
  307. left: 0;
  308. }
  309. .product-list-type .product-list-msgs .product-pric .price {
  310. float: left;
  311. font-size: 26rpx;
  312. color: #f83c6c;
  313. font-weight: bold;
  314. line-height: 44rpx;
  315. }
  316. .product-list-type .product-list-msgs .product-pric .carts {
  317. float: right;
  318. }
  319. .product-list-type .product-list-msgs .product-pric .carts .carts-add {
  320. width: 44rpx;
  321. height: 44rpx;
  322. text-align: center;
  323. line-height: 44rpx;
  324. background-color: #ff457b;
  325. border-radius: 50%;
  326. }
  327. .product-list-type .product-list-msgs .product-pric .carts .carts-add .iconfont {
  328. font-size: 32rpx;
  329. color: #FFFFFF;
  330. }