search-prod-show.wxss 3.3 KB

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