cart.wxss 5.9 KB

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