list.wxss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. page {
  2. background: #f5f5f5;
  3. }
  4. page,view,image,input {
  5. display: block;
  6. box-sizing: border-box;
  7. }
  8. .header {
  9. padding: 32rpx;
  10. background: #fff;
  11. display: flex;
  12. align-items: center;
  13. }
  14. .header .search {
  15. position: relative;
  16. width: 650rpx;
  17. height: 66rpx;
  18. }
  19. .header .search input {
  20. border: 1rpx solid #e3e3e3;
  21. width: 100%;
  22. height: 100%;
  23. border-radius: 30rpx;
  24. padding-left: 60rpx;
  25. }
  26. .header .search image {
  27. width: 35rpx;
  28. height: 35rpx;
  29. position: absolute;
  30. top: 16rpx;
  31. right: 40rpx;
  32. z-index: 9999;
  33. }
  34. .header .show-type {
  35. width: 40rpx;
  36. height: 40rpx;
  37. margin-left: 20rpx;
  38. }
  39. .line {
  40. width: 100vw;
  41. height: 2rpx;
  42. background: #dfdfdf;
  43. }
  44. .filters {
  45. width: 100vw;
  46. height: 88rpx;
  47. background: #fff;
  48. display: flex;
  49. justify-content: space-around;
  50. }
  51. .filters .item {
  52. line-height: 88rpx;
  53. }
  54. .filters .active {
  55. color:#fa1e26;
  56. }
  57. .list1 {
  58. margin: 16rpx;
  59. width: 718rpx;
  60. display: flex;
  61. background: #fff;
  62. border-radius: 30rpx;
  63. position: relative;
  64. }
  65. .list1 .img {
  66. width: 220rpx;
  67. height: 220rpx;
  68. flex-shrink: 0;
  69. }
  70. .list1 .goods-info {
  71. padding: 16rpx 32rpx 0 24rpx;
  72. width: 100%;
  73. }
  74. .list1 .goods-info .title {
  75. color: #333;
  76. font-size: 30rpx;
  77. }
  78. .ellipsis {
  79. display: -webkit-box;
  80. -webkit-line-clamp: 2;
  81. overflow: hidden;
  82. text-overflow: ellipsis;
  83. -webkit-box-orient: vertical;
  84. word-break: break-all;
  85. }
  86. .list1 .goods-info .price {
  87. color: #FF3B30;
  88. font-size: 34rpx;
  89. }
  90. .list1 .goods-info .buy-info {
  91. display: flex;
  92. justify-content: space-between;
  93. align-items: center;
  94. }
  95. .list1 .goods-info .buy-info .num {
  96. font-size:24rpx;
  97. color:#999999;
  98. }
  99. .list1 .goods-info .buy-info .car {
  100. position: absolute;
  101. right: 16rpx;
  102. bottom: 16rpx;
  103. width: 50rpx;
  104. height: 50rpx;
  105. }
  106. .list2-box {
  107. margin: 16rpx;
  108. width: 718rpx;
  109. display: flex;
  110. justify-content: space-between;
  111. flex-wrap: wrap;
  112. }
  113. .list2 {
  114. margin: 16rpx 0;
  115. width: 350rpx;
  116. background: #fff;
  117. border-radius: 30rpx;
  118. overflow: hidden;
  119. position: relative;
  120. }
  121. .list2 .img {
  122. width: 350rpx;
  123. height: 350rpx;
  124. }
  125. .list2 .goods-info {
  126. padding: 16rpx;
  127. }
  128. .list2 .goods-info .title {
  129. color: #333;
  130. font-size: 30rpx;
  131. }
  132. .list2 .goods-info .price {
  133. color: #FF3B30;
  134. font-size: 34rpx;
  135. }
  136. .list2 .goods-info .buy-info {
  137. display: flex;
  138. justify-content: space-between;
  139. align-items: center;
  140. }
  141. .list2 .goods-info .buy-info .num {
  142. font-size:24rpx;
  143. color:#999999;
  144. }
  145. .list2 .goods-info .buy-info .car {
  146. width: 50rpx;
  147. height: 50rpx;
  148. position: absolute;
  149. right: 16rpx;
  150. bottom: 16rpx;
  151. }
  152. .sku-mask {
  153. width: 100vw;
  154. height: 100vh;
  155. position: fixed;
  156. top: 0;
  157. left: 0;
  158. background: rgba(0, 0, 0, 0.3);
  159. }
  160. .sku-container {
  161. position: fixed;
  162. width: 100vw;
  163. bottom: 90rpx;
  164. left: 0;
  165. background: #fff;
  166. padding: 32rpx 32rpx 0 32rpx;
  167. }
  168. .sku-container .close {
  169. position: absolute;
  170. width: 54rpx;
  171. height: 54rpx;
  172. top: 16rpx;
  173. right: 16rpx;
  174. /* border: 1rpx solid #666;
  175. border-radius: 50%; */
  176. }
  177. .sku-container .sku {
  178. border-bottom: 1rpx solid #eee;
  179. padding-bottom: 24rpx;
  180. margin-bottom: 16rpx;
  181. }
  182. .sku-container .sku .t {
  183. color: #333;
  184. }
  185. .sku-container .sku .items {
  186. display: flex;
  187. flex-wrap: wrap;
  188. }
  189. .sku-container .sku .items text {
  190. padding: 8rpx;
  191. border: 1rpx solid #999;
  192. color: #999;
  193. margin: 24rpx 24rpx 0 0;
  194. font-size: 26rpx;
  195. border-radius: 12rpx;
  196. }
  197. .sku-container .sku .items text.active {
  198. border: 1rpx solid #e64340;
  199. color: #e64340;
  200. }
  201. .sku-container .num {
  202. display: flex;
  203. justify-content: space-between;
  204. align-items: center;
  205. margin-bottom: 24rpx;
  206. }
  207. .sku-container .num .t {
  208. color: #333;
  209. }
  210. .sku-container .num .num-box {
  211. display: flex;
  212. }
  213. .sku-container .num .num-box .a {
  214. width: 64rpx;
  215. height: 64rpx;
  216. border: 1rpx solid #999;
  217. text-align: center;
  218. line-height: 64rpx;
  219. font-size: 46rpx;
  220. color: #666;
  221. }
  222. .sku-container .num .num-box .b {
  223. color: #333;
  224. line-height: 64rpx;
  225. padding: 0 32rpx;
  226. border-top: 1rpx solid #999;
  227. border-bottom: 1rpx solid #999;
  228. }
  229. .sku-btn {
  230. width: 100vw;
  231. height: 90rpx;
  232. line-height: 90rpx;
  233. background: #e64340;
  234. color: #fff;
  235. position: fixed;
  236. bottom: 0;
  237. left: 0;
  238. text-align: center;
  239. }
  240. .originalPrice {
  241. color: #aaa;
  242. text-decoration: line-through;
  243. margin-left: 20rpx;
  244. font-size: 26rpx;
  245. }