search-prod-show.wxss 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. /* pages/search-prod-show/search-prod-show.wxss */
  2. page {
  3. background: #f4f4f4;
  4. }
  5. /* 搜索栏 */
  6. .fixed-box {
  7. position: fixed;
  8. width: 100%;
  9. top: 0;
  10. z-index: 999;
  11. background: #fff;
  12. }
  13. .search-bar {
  14. display: flex;
  15. align-items: center;
  16. justify-content: space-between;
  17. width: 100%;
  18. color: #777;
  19. background: #fff;
  20. z-index: 3;
  21. padding: 0 30rpx;
  22. padding-top: 30rpx;
  23. box-sizing: border-box;
  24. }
  25. .search-bar .search-box {
  26. position: relative;
  27. height: 60rpx;
  28. background: #f7f7f7;
  29. z-index: 999;
  30. width: 80%;
  31. border-radius: 50rpx;
  32. margin-right: 30rpx;
  33. flex: 1;
  34. }
  35. .sear-input {
  36. height: 60rpx;
  37. border-radius: 50rpx;
  38. border: 0;
  39. margin: 0 30rpx 0 64rpx;
  40. line-height: 48rpx;
  41. vertical-align: top;
  42. background: #f7f7f7;
  43. font-size: 28rpx;
  44. }
  45. .search-bar .search-hint {
  46. font-size: 28rpx;
  47. position: absolute;
  48. right: 30rpx;
  49. top: 31rpx;
  50. color: #eb2444;
  51. }
  52. .search-bar .search-box .search-img {
  53. width: 32rpx;
  54. height: 32rpx;
  55. position: absolute;
  56. left: 20rpx;
  57. top: 14rpx;
  58. display: block;
  59. }
  60. .search-bar .search-list-img {
  61. width: 40rpx;
  62. height: 40rpx;
  63. font-size: 0;
  64. }
  65. .search-bar .search-list-img image {
  66. width: 100%;
  67. height: 100%;
  68. }
  69. .fixed-box .tabs {
  70. width: 100%;
  71. height: 80rpx;
  72. line-height: 80rpx;
  73. padding: 10rpx 0;
  74. z-index: 999;
  75. background: #fff;
  76. }
  77. .fixed-box .tabs::after {
  78. content: '';
  79. background-color: #e1e1e1;
  80. left: 0;
  81. height: 1px;
  82. transform-origin: 50% 100% 0;
  83. bottom: 0;
  84. position: absolute;
  85. display: block;
  86. width: 100%;
  87. }
  88. .fixed-box .tabs .tab-item {
  89. display: inline-block;
  90. width: 33.33%;
  91. text-align: center;
  92. font-size: 28rpx;
  93. }
  94. .fixed-box .tabs .tab-item.on {
  95. color: #04358D;
  96. }
  97. /* 横向列表 */
  98. .prod-show {
  99. background: #f4f4f4;
  100. margin-top: 198rpx;
  101. }
  102. .prod-show .prod-items {
  103. width: 375rpx;
  104. float: left;
  105. background: #fff;
  106. padding-bottom: 20rpx;
  107. box-sizing: border-box;
  108. }
  109. /* 纵向列表 */
  110. .prod-list .cont-item {
  111. padding: 0 20rpx 20rpx 20rpx;
  112. margin-top: 210rpx;
  113. }
  114. .prod-list .cont-item .show-item .more-prod-pic {
  115. text-align: center;
  116. width: 170rpx;
  117. height: 170rpx;
  118. font-size: 0;
  119. }
  120. .prod-list .cont-item .show-item .more-prod-pic .more-pic {
  121. width: 100%;
  122. height: 100%;
  123. vertical-align: middle;
  124. }
  125. .prod-list .cont-item .show-item {
  126. position: relative;
  127. display: flex;
  128. justify-content: start;
  129. padding: 20rpx;
  130. border-radius: 20rpx;
  131. background: #fff;
  132. margin-bottom: 20rpx;
  133. box-shadow: 0 16rpx 32rpx 0 rgba(7, 17, 27, 0.05);
  134. }
  135. .prod-list .cont-item .show-item .prod-text-right {
  136. margin-left: 20rpx;
  137. width: 75%;
  138. }
  139. .prod-list .cont-item .show-item .prod-text-right .cate-prod-info {
  140. font-size: 22rpx;
  141. color: #999;
  142. margin: 10rpx 0 20rpx 0;
  143. }
  144. .prod-list .cont-item .show-item .prod-text-right .go-to-buy {
  145. font-size: 26rpx;
  146. background: #eb2444;
  147. color: #fff;
  148. border-radius: 50rpx;
  149. width: 150rpx;
  150. text-align: center;
  151. padding: 8rpx 3rpx;
  152. position: absolute;
  153. right: 20rpx;
  154. bottom: 20rpx;
  155. }
  156. .prod-list .cont-item .show-item .prod-text-right .prod-text.more {
  157. margin: 0;
  158. height: 78rpx;
  159. font-size: 28rpx;
  160. display: -webkit-box;
  161. word-break: break-all;
  162. overflow: hidden;
  163. text-overflow: ellipsis;
  164. display: -webkit-box;
  165. -webkit-line-clamp: 2;
  166. -webkit-box-orient: vertical;
  167. color: #000;
  168. }
  169. .prod-list .cont-item .show-item .prod-text-right .prod-price.more {
  170. font-size: 28rpx;
  171. color: #eb2444;
  172. font-family: arial;
  173. }
  174. /* 列表为空 */
  175. .empty {
  176. margin-top: 200rpx;
  177. text-align: cneter;
  178. }
  179. .empty-icon {
  180. display: block;
  181. width: 80rpx;
  182. height: 80rpx;
  183. margin: 0 auto;
  184. margin-bottom: 20rpx;
  185. }
  186. .empty-icon > image {
  187. width: 100%;
  188. height: 100%;
  189. }
  190. .empty-text {
  191. font-size: 28rpx;
  192. text-align: center;
  193. color: #999;
  194. line-height: 2em;
  195. }