index.wxss 4.6 KB

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