cart.wxss 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. @charset "UTF-8";
  2. /* 页面左右间距 */
  3. /* 文字尺寸 */
  4. /*文字颜色*/
  5. /* 边框颜色 */
  6. /*颜色*/
  7. /* 图片加载中颜色 */
  8. /* 行为相关颜色 */
  9. /* 功能栏字体大小 */
  10. /*功能栏左侧小图标*/
  11. .container {
  12. padding-bottom: 134rpx;
  13. background-color: #f8f8f8;
  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. color: #5dbc7c;
  52. margin-left: 16rpx;
  53. }
  54. /* 购物车列表项 */
  55. .cart-item {
  56. display: -webkit-box;
  57. display: -webkit-flex;
  58. display: flex;
  59. position: relative;
  60. padding: 30rpx 40rpx;
  61. }
  62. .cart-item .image-wrapper {
  63. width: 230rpx;
  64. height: 230rpx;
  65. -webkit-flex-shrink: 0;
  66. flex-shrink: 0;
  67. position: relative;
  68. }
  69. .cart-item .image-wrapper image {
  70. -webkit-border-radius: 8rpx;
  71. border-radius: 8rpx;
  72. }
  73. .cart-item .checkbox {
  74. position: absolute;
  75. left: -16rpx;
  76. top: -16rpx;
  77. z-index: 8;
  78. font-size: 44rpx;
  79. line-height: 1;
  80. padding: 4rpx;
  81. color: #c0c4cc;
  82. background: #fff;
  83. -webkit-border-radius: 50px;
  84. border-radius: 50px;
  85. }
  86. .cart-item .item-right {
  87. display: -webkit-box;
  88. display: -webkit-flex;
  89. display: flex;
  90. -webkit-box-orient: vertical;
  91. -webkit-box-direction: normal;
  92. -webkit-flex-direction: column;
  93. flex-direction: column;
  94. -webkit-box-flex: 1;
  95. -webkit-flex: 1;
  96. flex: 1;
  97. overflow: hidden;
  98. position: relative;
  99. padding-left: 30rpx;
  100. }
  101. .cart-item .item-right .title,
  102. .cart-item .item-right .price {
  103. font-size: 30rpx;
  104. color: #303133;
  105. height: 40rpx;
  106. line-height: 40rpx;
  107. }
  108. .cart-item .item-right .attr {
  109. font-size: 26rpx;
  110. color: #909399;
  111. height: 50rpx;
  112. line-height: 50rpx;
  113. }
  114. .cart-item .item-right .price {
  115. height: 50rpx;
  116. line-height: 50rpx;
  117. }
  118. .cart-item .item-right .step {
  119. margin-top: 20rpx;
  120. }
  121. .cart-item .del-btn {
  122. padding: 4rpx 10rpx;
  123. font-size: 34rpx;
  124. height: 50rpx;
  125. color: #909399;
  126. }
  127. /* 底部栏 */
  128. .action-section {
  129. position: fixed;
  130. left: 30rpx;
  131. bottom: 30rpx;
  132. z-index: 95;
  133. display: -webkit-box;
  134. display: -webkit-flex;
  135. display: flex;
  136. -webkit-box-align: center;
  137. -webkit-align-items: center;
  138. align-items: center;
  139. width: 690rpx;
  140. height: 100rpx;
  141. padding: 0 30rpx;
  142. background: rgba(255, 255, 255, 0.9);
  143. -webkit-box-shadow: 0 0 20rpx 0 rgba(0, 0, 0, 0.5);
  144. box-shadow: 0 0 20rpx 0 rgba(0, 0, 0, 0.5);
  145. -webkit-border-radius: 16rpx;
  146. border-radius: 16rpx;
  147. }
  148. .action-section .checkbox {
  149. height: 52rpx;
  150. position: relative;
  151. }
  152. .action-section .checkbox .icon-checked-box {
  153. -webkit-border-radius: 50rpx;
  154. border-radius: 50rpx;
  155. background-color: #ffffff;
  156. width: 52rpx;
  157. height: 100%;
  158. position: relative;
  159. z-index: 5;
  160. font-size: 53rpx;
  161. line-height: 1;
  162. color: #909399;
  163. }
  164. .action-section .checkbox .icon-checked {
  165. color: #5dbc7c;
  166. }
  167. .action-section .clear-btn {
  168. position: absolute;
  169. left: 26rpx;
  170. top: 0;
  171. z-index: 4;
  172. width: 0;
  173. height: 52rpx;
  174. line-height: 52rpx;
  175. padding-left: 38rpx;
  176. font-size: 28rpx;
  177. color: #fff;
  178. background: #c0c4cc;
  179. -webkit-border-radius: 0 50px 50px 0;
  180. border-radius: 0 50px 50px 0;
  181. opacity: 0;
  182. -webkit-transition: 0.2s;
  183. transition: 0.2s;
  184. }
  185. .action-section .clear-btn.show {
  186. opacity: 1;
  187. width: 120rpx;
  188. }
  189. .action-section .total-box {
  190. -webkit-box-flex: 1;
  191. -webkit-flex: 1;
  192. flex: 1;
  193. display: -webkit-box;
  194. display: -webkit-flex;
  195. display: flex;
  196. -webkit-box-orient: vertical;
  197. -webkit-box-direction: normal;
  198. -webkit-flex-direction: column;
  199. flex-direction: column;
  200. text-align: right;
  201. padding-right: 40rpx;
  202. }
  203. .action-section .total-box .price {
  204. font-size: 32rpx;
  205. color: #303133;
  206. }
  207. .action-section .total-box .coupon {
  208. font-size: 24rpx;
  209. color: #909399;
  210. }
  211. .action-section .total-box .coupon text {
  212. color: #303133;
  213. }
  214. .action-section .confirm-btn {
  215. padding: 0 38rpx;
  216. margin: 0;
  217. -webkit-border-radius: 100px;
  218. border-radius: 100px;
  219. height: 76rpx;
  220. line-height: 76rpx;
  221. font-size: 30rpx;
  222. background: #5dbc7c;
  223. }
  224. /* 复选框选中状态 */
  225. .action-section .checkbox.checked,
  226. .cart-item .checkbox.checked {
  227. color: #5dbc7c;
  228. }