cart.wxss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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: flex;
  24. justify-content: center;
  25. flex-direction: column;
  26. align-items: center;
  27. background: #fff;
  28. }
  29. .container .empty .emptyImg {
  30. width: 300rpx;
  31. height: 250rpx;
  32. margin-bottom: 30rpx;
  33. }
  34. .container .empty .empty-tips {
  35. display: flex;
  36. font-size: 26rpx;
  37. color: #c0c4cc;
  38. }
  39. .container .empty .empty-tips .navigator {
  40. color: #5dbc7c;
  41. margin-left: 16rpx;
  42. }
  43. /* 购物车列表项 */
  44. .cart-item {
  45. display: flex;
  46. position: relative;
  47. padding: 30rpx 40rpx;
  48. }
  49. .cart-item .image-wrapper {
  50. width: 230rpx;
  51. height: 230rpx;
  52. flex-shrink: 0;
  53. position: relative;
  54. }
  55. .cart-item .image-wrapper image {
  56. border-radius: 8rpx;
  57. }
  58. .cart-item .checkbox {
  59. position: absolute;
  60. left: -16rpx;
  61. top: -16rpx;
  62. z-index: 8;
  63. font-size: 44rpx;
  64. line-height: 1;
  65. padding: 4rpx;
  66. color: #c0c4cc;
  67. background: #fff;
  68. border-radius: 50px;
  69. }
  70. .cart-item .item-right {
  71. display: flex;
  72. flex-direction: column;
  73. flex: 1;
  74. overflow: hidden;
  75. position: relative;
  76. padding-left: 30rpx;
  77. }
  78. .cart-item .item-right .title,
  79. .cart-item .item-right .price {
  80. font-size: 30rpx;
  81. color: #303133;
  82. height: 40rpx;
  83. line-height: 40rpx;
  84. }
  85. .cart-item .item-right .attr {
  86. font-size: 26rpx;
  87. color: #909399;
  88. height: 50rpx;
  89. line-height: 50rpx;
  90. }
  91. .cart-item .item-right .price {
  92. height: 50rpx;
  93. line-height: 50rpx;
  94. }
  95. .cart-item .item-right .step {
  96. margin-top: 20rpx;
  97. }
  98. .cart-item .del-btn {
  99. padding: 4rpx 10rpx;
  100. font-size: 34rpx;
  101. height: 50rpx;
  102. color: #909399;
  103. }
  104. /* 底部栏 */
  105. .action-section {
  106. position: fixed;
  107. left: 30rpx;
  108. bottom: 30rpx;
  109. z-index: 95;
  110. display: flex;
  111. align-items: center;
  112. width: 690rpx;
  113. height: 100rpx;
  114. padding: 0 30rpx;
  115. background: rgba(255, 255, 255, 0.9);
  116. box-shadow: 0 0 20rpx 0 rgba(0, 0, 0, 0.5);
  117. border-radius: 16rpx;
  118. }
  119. .action-section .checkbox {
  120. height: 52rpx;
  121. position: relative;
  122. }
  123. .action-section .checkbox .icon-checked-box {
  124. border-radius: 50rpx;
  125. background-color: #ffffff;
  126. width: 52rpx;
  127. height: 100%;
  128. position: relative;
  129. z-index: 5;
  130. font-size: 53rpx;
  131. line-height: 1;
  132. color: #909399;
  133. }
  134. .action-section .checkbox .icon-checked {
  135. color: #ff4e4a;
  136. }
  137. .action-section .clear-btn {
  138. position: absolute;
  139. left: 26rpx;
  140. top: 0;
  141. z-index: 4;
  142. width: 0;
  143. height: 52rpx;
  144. line-height: 52rpx;
  145. padding-left: 38rpx;
  146. font-size: 28rpx;
  147. color: #fff;
  148. background: #c0c4cc;
  149. border-radius: 0 50px 50px 0;
  150. opacity: 0;
  151. transition: 0.2s;
  152. }
  153. .action-section .clear-btn.show {
  154. opacity: 1;
  155. width: 120rpx;
  156. }
  157. .action-section .total-box {
  158. flex: 1;
  159. display: flex;
  160. flex-direction: column;
  161. text-align: right;
  162. padding-right: 40rpx;
  163. }
  164. .action-section .total-box .price {
  165. font-size: 32rpx;
  166. color: #303133;
  167. }
  168. .action-section .total-box .coupon {
  169. font-size: 24rpx;
  170. color: #909399;
  171. }
  172. .action-section .total-box .coupon text {
  173. color: #303133;
  174. }
  175. .action-section .confirm-btn {
  176. padding: 0 38rpx;
  177. margin: 0;
  178. border-radius: 100px;
  179. height: 76rpx;
  180. line-height: 76rpx;
  181. font-size: 30rpx;
  182. background: #ff4e4a;
  183. }
  184. /* 复选框选中状态 */
  185. .action-section .checkbox.checked,
  186. .cart-item .checkbox.checked {
  187. color: #ff4e4a;
  188. }