index.wxss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. .sku-card {
  2. width: 750rpx;
  3. box-sizing: border-box;
  4. border-radius: 30rpx 30rpx 0 0;
  5. background: #fff;
  6. overflow: hidden;
  7. padding: 40rpx 40rpx 0 40rpx;
  8. }
  9. .sku-card .close {
  10. position: absolute;
  11. right: 28rpx;
  12. top: 28rpx;
  13. width: 40rpx;
  14. height: 40rpx;
  15. display: flex;
  16. align-items: center;
  17. justify-content: center;
  18. }
  19. .sku-card .close .close-img {
  20. width: 26rpx;
  21. height: 26rpx;
  22. }
  23. .sku-card .sku-header {
  24. display: flex;
  25. align-items: flex-start;
  26. margin-bottom: 40rpx;
  27. }
  28. .sku-card .sku-header .sku-img {
  29. width: 160rpx;
  30. height: 160rpx;
  31. border: 1rpx solid #e4e4e4;
  32. margin-right: 30rpx;
  33. }
  34. .sku-card .sku-header .sku-img image {
  35. border: none;
  36. }
  37. .sku-card .sku-header .sku-desc {
  38. display: flex;
  39. flex-direction: column;
  40. }
  41. .sku-card .sku-header .sku-desc .sku-title {
  42. width: 390rpx;
  43. min-height: 60rpx;
  44. margin-bottom: 16rpx;
  45. color: #444;
  46. font-weight: bold;
  47. position: relative;
  48. }
  49. .sku-card .sku-header .sku-desc .sku-title .span {
  50. position: absolute;
  51. width: 390rpx;
  52. height: 60rpx;
  53. left: 0;
  54. top: 0;
  55. font-size: 26rpx;
  56. line-height: 30rpx;
  57. display: -webkit-box;
  58. -webkit-box-orient: vertical;
  59. -webkit-line-clamp: 2;
  60. overflow: hidden;
  61. text-overflow: initial;
  62. white-space: normal;
  63. }
  64. .sku-card .sku-header .sku-price {
  65. display: flex;
  66. align-items: flex-end;
  67. margin-bottom: 12rpx;
  68. font-size: 24rpx;
  69. line-height: 24rpx;
  70. }
  71. .sku-card .sku-header .sku-price .sale-price {
  72. color: #ff5344;
  73. margin-right: 12rpx;
  74. margin-bottom: -4rpx;
  75. }
  76. .sku-card .sku-header .sku-price .sale-price .span {
  77. font-size: 56rpx;
  78. line-height: 56rpx;
  79. margin-left: 8rpx;
  80. font-weight: bold;
  81. }
  82. .sku-card .sku-header .sku-price .market-price {
  83. text-decoration: line-through;
  84. color: #999;
  85. margin-right: 30rpx;
  86. }
  87. .sku-card .sku-header .sku-switch-on {
  88. font-size: 24rpx;
  89. color: #444;
  90. }
  91. .sku-card .sku-msg {
  92. width: 670rpx;
  93. margin: 0 auto 60rpx;
  94. border-radius: 16rpx;
  95. background: linear-gradient(to right, #fff7f0, #fff4ec);
  96. display: flex;
  97. align-items: flex-start;
  98. padding: 20rpx;
  99. color: #ca7e57;
  100. box-sizing: border-box;
  101. }
  102. .sku-card .sku-msg .tag {
  103. border-radius: 16rpx;
  104. border: 1rpx solid #ffa49c;
  105. font-size: 20rpx;
  106. line-height: 28rpx;
  107. font-weight: 500;
  108. padding: 0 8rpx;
  109. margin-right: 8rpx;
  110. color: #ff5344;
  111. white-space: nowrap;
  112. vertical-align: middle;
  113. }
  114. .sku-card .sku-msg .sku-activity-msg {
  115. color: #ca7e57;
  116. font-size: 24rpx;
  117. line-height: 32rpx;
  118. width: 540rpx;
  119. font-weight: 500;
  120. }
  121. .sku-card .sku-spec {
  122. width: 670rpx;
  123. margin: 0 auto 40rpx;
  124. display: flex;
  125. align-items: flex-start;
  126. }
  127. .sku-card .sku-spec .title {
  128. width: 80rpx;
  129. font-size: 26rpx;
  130. line-height: 50rpx;
  131. }
  132. .sku-card .sku-spec .spec-list {
  133. width: 600rpx;
  134. display: flex;
  135. flex: 1;
  136. flex-wrap: wrap;
  137. }
  138. .sku-card .sku-spec .spec-list .span {
  139. height: 46rpx;
  140. background: #f6f6f6;
  141. border: 1rpx solid #f6f6f6;
  142. text-align: center;
  143. line-height: 46rpx;
  144. font-size: 26rpx;
  145. margin: 0 8rpx 20rpx 0;
  146. color: #666;
  147. border-radius: 46rpx;
  148. padding: 0 30rpx;
  149. display: block;
  150. white-space: nowrap;
  151. }
  152. .sku-card .sku-spec .spec-list .on {
  153. border-color: #ffa49c;
  154. color: #ff5344;
  155. background: #fff;
  156. }
  157. .sku-card .sku-spec .spec-list .disabled {
  158. color: #ccc;
  159. }
  160. .sku-card .sku-num-content {
  161. width: 670rpx;
  162. margin: 0 auto 52rpx;
  163. display: flex;
  164. align-items: center;
  165. }
  166. .sku-card .sku-num-content .title {
  167. width: 80rpx;
  168. font-size: 26rpx;
  169. line-height: 50rpx;
  170. }
  171. .sku-card .sku-num-content .msg {
  172. width: 420rpx;
  173. color: #aaa;
  174. font-size: 26rpx;
  175. line-height: 50rpx;
  176. text-align: right;
  177. }
  178. .sku-card .sku-num-content .even-num {
  179. width: 420rpx;
  180. color: #ff5344;
  181. font-size: 26rpx;
  182. line-height: 50rpx;
  183. white-space: nowrap;
  184. text-align: right;
  185. }
  186. .sku-card .sku-confirm {
  187. width: 750rpx;
  188. height: 96rpx;
  189. background: linear-gradient(to right, #ff5041, #ff695c);
  190. line-height: 96rpx;
  191. text-align: center;
  192. color: #fff;
  193. font-size: 30rpx;
  194. margin: 0 0 0 -40rpx;
  195. padding: 0;
  196. border-radius: 0;
  197. font-weight: bold;
  198. }