cart.wxss 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  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. width: 710rpx;
  46. height: 210rpx;
  47. background: #FFFFFF;
  48. box-shadow: 0px 0px 10rpx 0rpx rgba(0, 0, 0, 0.1);
  49. border-radius: 10rpx;
  50. margin: 20rpx auto;
  51. display: flex;
  52. position: relative;
  53. padding: 30rpx 26rpx 30rpx 80rpx;
  54. }
  55. .cart-item .image-wrapper {
  56. width: 150rpx;
  57. height: 150rpx;
  58. flex-shrink: 0;
  59. position: relative;
  60. }
  61. .cart-item .image-wrapper image {
  62. border-radius: 8rpx;
  63. }
  64. .cart-item .checkbox {
  65. position: absolute;
  66. top: 0;
  67. bottom: 0;
  68. left: -65rpx;
  69. margin: auto 0;
  70. height: 50rpx;
  71. z-index: 8;
  72. font-size: 44rpx;
  73. line-height: 1;
  74. padding: 4rpx;
  75. color: #c0c4cc;
  76. background: #fff;
  77. border-radius: 50px;
  78. }
  79. .cart-item .item-right {
  80. display: flex;
  81. flex-direction: column;
  82. flex: 1;
  83. overflow: hidden;
  84. position: relative;
  85. padding-left: 30rpx;
  86. }
  87. .cart-item .item-right .munbox {
  88. width: 144rpx;
  89. height: 44rpx;
  90. position: absolute;
  91. bottom: 0;
  92. right: 0;
  93. }
  94. .cart-item .item-right .munbox input {
  95. display: inline-block;
  96. text-align: center;
  97. }
  98. .cart-item .item-right .munbox image {
  99. flex-shrink: 0;
  100. width: 44rpx;
  101. height: 44rpx;
  102. }
  103. .cart-item .item-right .title,
  104. .cart-item .item-right .price {
  105. font-size: 30rpx;
  106. color: #303133;
  107. height: 40rpx;
  108. line-height: 40rpx;
  109. }
  110. .cart-item .item-right .attr {
  111. font-size: 26rpx;
  112. color: #909399;
  113. height: 50rpx;
  114. line-height: 50rpx;
  115. font-size: 26rpx;
  116. font-family: PingFang SC;
  117. font-weight: bold;
  118. color: #999999;
  119. }
  120. .cart-item .item-right .price {
  121. padding-top: 20rpx;
  122. font-size: 34rpx;
  123. font-family: PingFang SC;
  124. font-weight: bold;
  125. color: #FF4C4C;
  126. }
  127. .cart-item .item-right .step {
  128. margin-top: 20rpx;
  129. }
  130. .cart-item .item-right .title {
  131. font-size: 34rpx;
  132. font-family: PingFang SC;
  133. font-weight: bold;
  134. color: #333333;
  135. }
  136. .cart-item .del-btn {
  137. padding: 4rpx 10rpx;
  138. font-size: 34rpx;
  139. height: 50rpx;
  140. color: #909399;
  141. }
  142. /* 底部栏 */
  143. .action-section {
  144. position: fixed;
  145. left: 30rpx;
  146. bottom: 30rpx;
  147. z-index: 95;
  148. display: flex;
  149. align-items: center;
  150. width: 690rpx;
  151. height: 100rpx;
  152. padding: 0 30rpx;
  153. background: rgba(255, 255, 255, 0.9);
  154. box-shadow: 0 0 20rpx 0 rgba(0, 0, 0, 0.5);
  155. border-radius: 16rpx;
  156. }
  157. .action-section .checkbox {
  158. height: 52rpx;
  159. position: relative;
  160. }
  161. .action-section .checkbox .icon-checked-box {
  162. border-radius: 50rpx;
  163. background-color: #ffffff;
  164. width: 52rpx;
  165. height: 100%;
  166. position: relative;
  167. z-index: 5;
  168. font-size: 53rpx;
  169. line-height: 1;
  170. color: #909399;
  171. }
  172. .action-section .checkbox .icon-checked {
  173. color: #dc262b;
  174. }
  175. .action-section .clear-btn {
  176. position: absolute;
  177. left: 26rpx;
  178. top: 0;
  179. z-index: 4;
  180. width: 0;
  181. height: 52rpx;
  182. line-height: 52rpx;
  183. padding-left: 38rpx;
  184. font-size: 28rpx;
  185. color: #fff;
  186. background: #c0c4cc;
  187. border-radius: 0 50px 50px 0;
  188. opacity: 0;
  189. transition: 0.2s;
  190. }
  191. .action-section .clear-btn.show {
  192. opacity: 1;
  193. width: 120rpx;
  194. }
  195. .action-section .total-box {
  196. flex: 1;
  197. display: flex;
  198. flex-direction: column;
  199. text-align: right;
  200. padding-right: 40rpx;
  201. }
  202. .action-section .total-box .price {
  203. font-size: 32rpx;
  204. color: #303133;
  205. }
  206. .action-section .total-box .coupon {
  207. font-size: 24rpx;
  208. color: #909399;
  209. }
  210. .action-section .total-box .coupon text {
  211. color: #303133;
  212. }
  213. .action-section .confirm-btn {
  214. padding: 0 38rpx;
  215. margin: 0;
  216. border-radius: 100px;
  217. height: 76rpx;
  218. line-height: 76rpx;
  219. font-size: 30rpx;
  220. background: #dc262b;
  221. }
  222. /* 复选框选中状态 */
  223. .action-section .checkbox.checked,
  224. .cart-item .checkbox.checked {
  225. color: #dc262b;
  226. }
  227. .cart-hand {
  228. width: 750rpx;
  229. height: 88rpx;
  230. background: #FFFFFF;
  231. font-size: 30rpx;
  232. font-family: PingFang SC;
  233. font-weight: bold;
  234. color: #333333;
  235. line-height: 88rpx;
  236. padding-left: 28rpx;
  237. padding-right: 26rpx;
  238. }
  239. .cart-hand .hand-tit text {
  240. color: #FF4C4C;
  241. }
  242. .cart-hand .hand-btn {
  243. width: 164rpx;
  244. height: 62rpx;
  245. border: 2rpx solid #FF4C4C;
  246. border-radius: 31rpx;
  247. font-size: 26rpx;
  248. font-family: PingFang SC;
  249. font-weight: bold;
  250. color: #FF4C4C;
  251. line-height: 62rpx;
  252. text-align: center;
  253. }