index.less 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. /* pages/cart/index.wxss */
  2. .cart-group {
  3. border-radius: 8rpx;
  4. .promotion-wrap {
  5. display: flex;
  6. justify-content: space-between;
  7. align-items: center;
  8. padding: 0rpx 24rpx 32rpx 36rpx;
  9. background-color: #ffffff;
  10. font-size: 24rpx;
  11. line-height: 36rpx;
  12. color: #222427;
  13. .promotion-title {
  14. font-weight: bold;
  15. flex: auto;
  16. overflow: hidden;
  17. margin-right: 20rpx;
  18. display: flex;
  19. align-items: center;
  20. .promotion-icon {
  21. flex: none;
  22. font-weight: normal;
  23. display: inline-block;
  24. padding: 0 8rpx;
  25. color: #ffffff;
  26. background: #fa4126;
  27. font-size: 20rpx;
  28. height: 32rpx;
  29. line-height: 32rpx;
  30. margin-right: 16rpx;
  31. border-radius: 16rpx;
  32. }
  33. .promotion-text {
  34. flex: auto;
  35. overflow: hidden;
  36. text-overflow: ellipsis;
  37. white-space: nowrap;
  38. }
  39. }
  40. .promotion-action {
  41. flex: none;
  42. color: #333333;
  43. }
  44. }
  45. .promotion-line-wrap {
  46. background-color: #fff;
  47. height: 2rpx;
  48. display: flex;
  49. justify-content: flex-end;
  50. .promotion-line {
  51. width: 684rpx;
  52. height: 2rpx;
  53. background-color: #e6e6e6;
  54. }
  55. }
  56. .goods-item {
  57. padding-top: 40rpx;
  58. padding-bottom: 40rpx;
  59. position: relative;
  60. // &:nth-child(1) {
  61. // padding-top: 0;
  62. // &::after {
  63. // background-color: transparent;
  64. // }
  65. // }
  66. &::after {
  67. content: '';
  68. position: absolute;
  69. top: 0;
  70. left: 0;
  71. right: 0;
  72. height: 1px;
  73. background-color: #eee;
  74. }
  75. }
  76. .goods-item-info {
  77. display: flex;
  78. background-color: #fff;
  79. align-items: center;
  80. .check-wrap {
  81. padding: 0 20rpx;
  82. .unCheck-icon {
  83. box-sizing: border-box;
  84. width: 36rpx;
  85. height: 36rpx;
  86. border-radius: 20rpx;
  87. background: #f5f5f5;
  88. border: 2rpx solid #bbbbbb;
  89. }
  90. }
  91. .goods-sku-info {
  92. padding: 0;
  93. flex-grow: 1;
  94. display: flex;
  95. .imageWrap {
  96. position: relative;
  97. }
  98. .imgfix {
  99. clear: both;
  100. image {
  101. float: left;
  102. }
  103. }
  104. .stock-mask {
  105. position: absolute;
  106. color: #fff;
  107. font-size: 24rpx;
  108. bottom: 0rpx;
  109. background-color: rgba(0, 0, 0, 0.5);
  110. width: 100%;
  111. height: 40rpx;
  112. line-height: 40rpx;
  113. text-align: center;
  114. }
  115. .goods-stepper {
  116. position: absolute;
  117. right: 34rpx;
  118. bottom: 0rpx;
  119. .stepper-tip {
  120. position: absolute;
  121. top: -36rpx;
  122. right: 0;
  123. height: 28rpx;
  124. color: #ff2525;
  125. font-size: 20rpx;
  126. line-height: 28rpx;
  127. }
  128. }
  129. }
  130. }
  131. }
  132. .action-btn {
  133. display: flex;
  134. align-items: center;
  135. .action-btn-arrow {
  136. font-size: 20rpx;
  137. margin-left: 8rpx;
  138. }
  139. }
  140. .action-btn--active {
  141. opacity: 0.5;
  142. }
  143. .swiper-right-del {
  144. height: 100%;
  145. width: 144rpx;
  146. background-color: #fa4126;
  147. font-size: 28rpx;
  148. color: white;
  149. display: flex;
  150. justify-content: center;
  151. align-items: center;
  152. }
  153. .goods-stepper {
  154. .stepper {
  155. border: none;
  156. border-radius: 0;
  157. height: auto;
  158. width: 168rpx;
  159. overflow: visible;
  160. .stepper__minus {
  161. width: 44rpx;
  162. height: 44rpx;
  163. background-color: #f5f5f5;
  164. position: relative;
  165. .wr-icon {
  166. font-size: 24rpx;
  167. }
  168. &::after {
  169. position: absolute;
  170. display: block;
  171. content: ' ';
  172. left: -20rpx;
  173. right: -5rpx;
  174. top: -20rpx;
  175. bottom: -20rpx;
  176. background-color: transparent;
  177. }
  178. }
  179. .stepper__plus {
  180. width: 44rpx;
  181. height: 44rpx;
  182. background-color: #f5f5f5;
  183. position: relative;
  184. .wr-icon {
  185. font-size: 24rpx;
  186. }
  187. &::after {
  188. position: absolute;
  189. display: block;
  190. content: ' ';
  191. left: -5rpx;
  192. right: -20rpx;
  193. top: -20rpx;
  194. bottom: -20rpx;
  195. background-color: transparent;
  196. }
  197. }
  198. .stepper__minus--hover {
  199. background-color: #f5f5f5;
  200. }
  201. .stepper__plus--hover {
  202. background-color: #f5f5f5;
  203. }
  204. .stepper__input {
  205. width: 72rpx;
  206. height: 44rpx;
  207. background-color: #f5f5f5;
  208. font-size: 24rpx;
  209. color: #222427;
  210. font-weight: 600;
  211. border-left: none;
  212. border-right: none;
  213. min-height: 40rpx;
  214. margin: 0 4rpx;
  215. display: flex;
  216. align-items: center;
  217. }
  218. }
  219. }
  220. .thumb {
  221. //21.6:14.6
  222. width: 207rpx;
  223. height: 140rpx;
  224. }
  225. .thumb-title {
  226. text-overflow: ellipsis;
  227. white-space: nowrap;
  228. align-items: stretch;
  229. overflow: hidden;
  230. width: calc(100vw - 330rpx);
  231. }
  232. .thumb-tag {
  233. border: 1px solid #d3d3d3;
  234. color: #555;
  235. font-size: 22rpx;
  236. font-weight: lighter;
  237. display: inline-flex;
  238. padding: 4rpx 10rpx;
  239. align-items: center;
  240. border-radius: 4rpx;
  241. }
  242. .swipeitem {
  243. padding-top: 30rpx;
  244. }
  245. .linkbtn {
  246. color: #555;
  247. border-left: 1px solid #eee;
  248. padding-left: 16rpx;
  249. &-active {
  250. color: #000;
  251. }
  252. }