list.wxss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  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. height: 220rpx;
  61. display: flex;
  62. background: #fff;
  63. border-radius: 30rpx;
  64. overflow: hidden;
  65. position: relative;
  66. }
  67. .list1 .img {
  68. width: 220rpx;
  69. height: 220rpx;
  70. flex-shrink: 0;
  71. }
  72. .list1 .goods-info {
  73. padding: 16rpx 32rpx 0 24rpx;
  74. width: 100%;
  75. }
  76. .list1 .goods-info .title {
  77. color: #333;
  78. font-size: 30rpx;
  79. }
  80. .ellipsis {
  81. display: -webkit-box;
  82. -webkit-line-clamp: 2;
  83. overflow: hidden;
  84. text-overflow: ellipsis;
  85. -webkit-box-orient: vertical;
  86. word-break: break-all;
  87. }
  88. .list1 .goods-info .price {
  89. color: #FF3B30;
  90. font-size: 34rpx;
  91. }
  92. .list1 .goods-info .buy-info {
  93. display: flex;
  94. justify-content: space-between;
  95. align-items: center;
  96. }
  97. .list1 .goods-info .buy-info .num {
  98. font-size:24rpx;
  99. color:#999999;
  100. }
  101. .list1 .goods-info .buy-info .car {
  102. position: absolute;
  103. right: 16rpx;
  104. bottom: 16rpx;
  105. width: 50rpx;
  106. height: 50rpx;
  107. }
  108. .list2-box {
  109. margin: 16rpx;
  110. width: 718rpx;
  111. display: flex;
  112. justify-content: space-between;
  113. flex-wrap: wrap;
  114. }
  115. .list2 {
  116. margin: 16rpx 0;
  117. width: 350rpx;
  118. background: #fff;
  119. border-radius: 30rpx;
  120. overflow: hidden;
  121. position: relative;
  122. }
  123. .list2 .img {
  124. width: 350rpx;
  125. height: 350rpx;
  126. }
  127. .list2 .goods-info {
  128. padding: 16rpx;
  129. }
  130. .list2 .goods-info .title {
  131. color: #333;
  132. font-size: 30rpx;
  133. }
  134. .list2 .goods-info .price {
  135. color: #FF3B30;
  136. font-size: 34rpx;
  137. }
  138. .list2 .goods-info .buy-info {
  139. display: flex;
  140. justify-content: space-between;
  141. align-items: center;
  142. }
  143. .list2 .goods-info .buy-info .num {
  144. font-size:24rpx;
  145. color:#999999;
  146. }
  147. .list2 .goods-info .buy-info .car {
  148. width: 50rpx;
  149. height: 50rpx;
  150. position: absolute;
  151. right: 16rpx;
  152. bottom: 16rpx;
  153. }
  154. .sku-mask {
  155. width: 100vw;
  156. height: 100vh;
  157. position: fixed;
  158. top: 0;
  159. left: 0;
  160. background: rgba(0, 0, 0, 0.3);
  161. }
  162. .sku-container {
  163. position: fixed;
  164. width: 100vw;
  165. bottom: 90rpx;
  166. left: 0;
  167. background: #fff;
  168. padding: 32rpx 32rpx 0 32rpx;
  169. }
  170. .sku-container .close {
  171. position: absolute;
  172. width: 54rpx;
  173. height: 54rpx;
  174. top: 16rpx;
  175. right: 16rpx;
  176. /* border: 1rpx solid #666;
  177. border-radius: 50%; */
  178. }
  179. .sku-container .sku {
  180. border-bottom: 1rpx solid #eee;
  181. padding-bottom: 24rpx;
  182. margin-bottom: 16rpx;
  183. }
  184. .sku-container .sku .t {
  185. color: #333;
  186. }
  187. .sku-container .sku .items {
  188. display: flex;
  189. flex-wrap: wrap;
  190. }
  191. .sku-container .sku .items text {
  192. padding: 8rpx;
  193. border: 1rpx solid #999;
  194. color: #999;
  195. margin: 24rpx 24rpx 0 0;
  196. font-size: 26rpx;
  197. border-radius: 12rpx;
  198. }
  199. .sku-container .sku .items text.active {
  200. border: 1rpx solid #e64340;
  201. color: #e64340;
  202. }
  203. .sku-container .num {
  204. display: flex;
  205. justify-content: space-between;
  206. align-items: center;
  207. margin-bottom: 24rpx;
  208. }
  209. .sku-container .num .t {
  210. color: #333;
  211. }
  212. .sku-container .num .num-box {
  213. display: flex;
  214. }
  215. .sku-container .num .num-box .a {
  216. width: 64rpx;
  217. height: 64rpx;
  218. border: 1rpx solid #999;
  219. text-align: center;
  220. line-height: 64rpx;
  221. font-size: 46rpx;
  222. color: #666;
  223. }
  224. .sku-container .num .num-box .b {
  225. color: #333;
  226. line-height: 64rpx;
  227. padding: 0 32rpx;
  228. border-top: 1rpx solid #999;
  229. border-bottom: 1rpx solid #999;
  230. }
  231. .sku-btn {
  232. width: 100vw;
  233. height: 90rpx;
  234. line-height: 90rpx;
  235. background: #e64340;
  236. color: #fff;
  237. position: fixed;
  238. bottom: 0;
  239. left: 0;
  240. text-align: center;
  241. }