cart.wxss 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. @charset "UTF-8";
  2. /* 页面左右间距 */
  3. /* 文字尺寸 */
  4. /*文字颜色*/
  5. /* 边框颜色 */
  6. /*颜色*/
  7. /* 图片加载中颜色 */
  8. /* 行为相关颜色 */
  9. /* 功能栏字体大小 */
  10. /*功能栏左侧小图标*/
  11. .container {
  12. padding-bottom: 134rpx;
  13. background-color: #f8f6f6;
  14. /* 空白页 */
  15. }
  16. .container .empty {
  17. position: fixed;
  18. left: 0;
  19. top: 0;
  20. width: 100%;
  21. height: 100vh;
  22. padding-bottom: 100rpx;
  23. display: -webkit-box;
  24. display: -webkit-flex;
  25. display: flex;
  26. -webkit-box-pack: center;
  27. -webkit-justify-content: center;
  28. justify-content: center;
  29. -webkit-box-orient: vertical;
  30. -webkit-box-direction: normal;
  31. -webkit-flex-direction: column;
  32. flex-direction: column;
  33. -webkit-box-align: center;
  34. -webkit-align-items: center;
  35. align-items: center;
  36. background: #fff;
  37. }
  38. .container .empty .emptyImg {
  39. width: 300rpx;
  40. height: 250rpx;
  41. margin-bottom: 30rpx;
  42. }
  43. .container .empty .empty-tips {
  44. display: -webkit-box;
  45. display: -webkit-flex;
  46. display: flex;
  47. font-size: 26rpx;
  48. color: #c0c4cc;
  49. }
  50. .container .empty .empty-tips .navigator {
  51. margin-left: 16rpx;
  52. color: #901b21;
  53. }
  54. /* 购物车列表项 */
  55. .cart-item {
  56. display: -webkit-box;
  57. display: -webkit-flex;
  58. display: flex;
  59. position: relative;
  60. padding: 30rpx 38rpx 27rpx 92rpx;
  61. }
  62. .cart-item .image-wrapper {
  63. width: 160rpx;
  64. height: 160rpx;
  65. -webkit-flex-shrink: 0;
  66. flex-shrink: 0;
  67. position: relative;
  68. }
  69. .cart-item .image-wrapper image {
  70. border-radius: 8rpx;
  71. }
  72. .cart-item .checkbox {
  73. position: absolute;
  74. left: -67rpx;
  75. top: 57rpx;
  76. margin: auto 0;
  77. z-index: 8;
  78. font-size: 44rpx;
  79. line-height: 1;
  80. padding: 4rpx;
  81. color: #c0c4cc;
  82. background: #fff;
  83. border-radius: 50px;
  84. }
  85. .cart-item .item-right {
  86. display: -webkit-box;
  87. display: -webkit-flex;
  88. display: flex;
  89. -webkit-box-orient: vertical;
  90. -webkit-box-direction: normal;
  91. -webkit-flex-direction: column;
  92. flex-direction: column;
  93. -webkit-box-flex: 1;
  94. -webkit-flex: 1;
  95. flex: 1;
  96. overflow: hidden;
  97. position: relative;
  98. padding-left: 30rpx;
  99. }
  100. .cart-item .item-right .ex-addr {
  101. height: 22rpx;
  102. font-size: 22rpx;
  103. font-weight: 500;
  104. color: #dcb876;
  105. }
  106. .cart-item .item-right .ex-addr image {
  107. height: 22rpx;
  108. }
  109. .cart-item .item-right .ex-addr .name-img {
  110. width: 26rpx;
  111. margin: 0 4rpx -3rpx 0;
  112. }
  113. .cart-item .item-right .ex-addr .point-img {
  114. width: 16rpx;
  115. margin: 0 4rpx -3rpx 14rpx;
  116. }
  117. .cart-item .item-right .title,
  118. .cart-item .item-right .price {
  119. font-size: 30rpx;
  120. color: #303133;
  121. height: 40rpx;
  122. line-height: 40rpx;
  123. font-weight: bold;
  124. color: #333333;
  125. }
  126. .cart-item .item-right .title .oldprice,
  127. .cart-item .item-right .price .oldprice {
  128. font-size: 24rpx;
  129. color: #9a9a9a;
  130. text-decoration: line-through;
  131. display: inline-block;
  132. padding-left: 10rpx;
  133. }
  134. .cart-item .item-right .attr {
  135. font-size: 26rpx;
  136. color: #909399;
  137. height: 50rpx;
  138. line-height: 50rpx;
  139. }
  140. .cart-item .item-right .price {
  141. position: absolute;
  142. bottom: 0;
  143. height: 50rpx;
  144. line-height: 50rpx;
  145. }
  146. .cart-item .item-right .step {
  147. position: absolute;
  148. bottom: 0;
  149. right: 0rpx;
  150. }
  151. .cart-item .item-right .del-btn {
  152. padding: 4rpx 10rpx;
  153. font-size: 34rpx;
  154. height: 50rpx;
  155. color: #909399;
  156. position: absolute;
  157. top: 0;
  158. right: 0;
  159. }
  160. /* 底部栏 */
  161. .action-section {
  162. position: fixed;
  163. left: 30rpx;
  164. bottom: 30rpx;
  165. z-index: 95;
  166. display: -webkit-box;
  167. display: -webkit-flex;
  168. display: flex;
  169. -webkit-box-align: center;
  170. -webkit-align-items: center;
  171. align-items: center;
  172. width: 690rpx;
  173. height: 100rpx;
  174. padding: 0 30rpx;
  175. background: rgba(255, 255, 255, 0.9);
  176. box-shadow: 0 0 20rpx 0 rgba(0, 0, 0, 0.5);
  177. border-radius: 16rpx;
  178. }
  179. .action-section .checkbox {
  180. height: 52rpx;
  181. position: relative;
  182. }
  183. .action-section .checkbox .icon-checked-box {
  184. border-radius: 50rpx;
  185. background-color: #ffffff;
  186. width: 52rpx;
  187. height: 100%;
  188. position: relative;
  189. z-index: 5;
  190. font-size: 53rpx;
  191. line-height: 1;
  192. color: #909399;
  193. }
  194. .action-section .checkbox .icon-checked {
  195. color: #921a23;
  196. }
  197. .action-section .clear-btn {
  198. position: absolute;
  199. left: 26rpx;
  200. top: 0;
  201. z-index: 4;
  202. width: 0;
  203. height: 52rpx;
  204. line-height: 52rpx;
  205. padding-left: 38rpx;
  206. font-size: 28rpx;
  207. color: #fff;
  208. background: #c0c4cc;
  209. border-radius: 0 50px 50px 0;
  210. opacity: 0;
  211. -webkit-transition: 0.2s;
  212. transition: 0.2s;
  213. }
  214. .action-section .clear-btn.show {
  215. opacity: 1;
  216. width: 120rpx;
  217. }
  218. .action-section .total-box {
  219. -webkit-box-flex: 1;
  220. -webkit-flex: 1;
  221. flex: 1;
  222. display: -webkit-box;
  223. display: -webkit-flex;
  224. display: flex;
  225. -webkit-box-orient: vertical;
  226. -webkit-box-direction: normal;
  227. -webkit-flex-direction: column;
  228. flex-direction: column;
  229. text-align: right;
  230. padding-right: 40rpx;
  231. }
  232. .action-section .total-box .price {
  233. font-size: 32rpx;
  234. color: #303133;
  235. }
  236. .action-section .total-box .coupon {
  237. font-size: 24rpx;
  238. color: #909399;
  239. }
  240. .action-section .total-box .coupon text {
  241. color: #303133;
  242. }
  243. .action-section .confirm-btn {
  244. padding: 0 38rpx;
  245. margin: 0;
  246. border-radius: 100px;
  247. height: 76rpx;
  248. line-height: 76rpx;
  249. font-size: 30rpx;
  250. background: #921a23;
  251. }
  252. /* 复选框选中状态 */
  253. .action-section .checkbox.checked,
  254. .cart-item .checkbox.checked {
  255. color: #921a23;
  256. }