shoppingcart.wxss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. .container {
  2. margin: 0rpx 30rpx;
  3. width: calc(100% - 60rpx);
  4. padding: 0 0;
  5. }
  6. .cart-header {
  7. width: 100%;
  8. display: flex;
  9. justify-content: space-between;
  10. align-items: center;
  11. margin-bottom: 20rpx;
  12. }
  13. .search-bar {
  14. width: calc(100% - 330rpx);
  15. position: relative;
  16. display: flex;
  17. align-items: center;
  18. /* height: 70rpx; */
  19. background-color: #fff;
  20. border: 1rpx solid #dcdfe6;
  21. border-radius: 12rpx;
  22. padding: 16rpx 20rpx;
  23. }
  24. .search-bar input {
  25. flex: 1;
  26. height: 100%;
  27. font-size: 32rpx;
  28. border: none;
  29. background: transparent;
  30. }
  31. .search-icon {
  32. position: absolute;
  33. right: 20rpx;
  34. width: 45rpx;
  35. height: 45rpx;
  36. }
  37. .manage-btn {
  38. width: 70rpx !important;
  39. padding: 0 !important;
  40. margin: 0 !important;
  41. font-size: 32rpx;
  42. font-weight: 500;
  43. /* color: #007aff; */
  44. }
  45. .cart-items {
  46. width: 100%;
  47. margin-bottom: 20rpx;
  48. }
  49. .cart-item {
  50. display: flex;
  51. align-items: center;
  52. background-color: #fff;
  53. border-radius: 8rpx;
  54. padding: 20rpx;
  55. margin-bottom: 20rpx;
  56. }
  57. .cart-checkbox {
  58. margin-right: 20rpx;
  59. }
  60. .cart-image {
  61. width: 200rpx;
  62. height: 200rpx;
  63. margin-right: 20rpx;
  64. }
  65. .cart-info {
  66. flex: 1;
  67. width: 33.33%;
  68. }
  69. .cart-title {
  70. font-size: 34rpx;
  71. font-weight: bold;
  72. color: #333;
  73. margin-bottom: 10rpx;
  74. }
  75. .cart-description {
  76. font-size: 28rpx;
  77. color: #666;
  78. margin-bottom: 10rpx;
  79. }
  80. .cart-price {
  81. font-size: 32rpx;
  82. color: #ff5722;
  83. margin-bottom: 10rpx;
  84. }
  85. .quantity-controls {
  86. display: flex;
  87. align-items: center;
  88. }
  89. .quantity-btn {
  90. width: 60rpx !important;
  91. height: 60rpx !important;
  92. background-color: #f5f5f5;
  93. border: 1rpx solid #ccc;
  94. border-radius: 8rpx;
  95. font-size: 32rpx;
  96. color: #666;
  97. }
  98. .quantity-text {
  99. font-size: 32rpx;
  100. color: #333;
  101. }
  102. .cart-footer {
  103. width: 100%;
  104. display: flex;
  105. justify-content: space-between;
  106. align-items: center;
  107. background-color: #fff;
  108. padding: 20rpx;
  109. position: fixed;
  110. bottom: 0;
  111. left: 0;
  112. right: 0;
  113. font-size: 38rpx;
  114. }
  115. .all-checkbox {
  116. margin-right: 20rpx;
  117. font-size: 36rpx;
  118. }
  119. .total-price {
  120. font-size: 36rpx;
  121. color: #333;
  122. }
  123. .checkout-btn {
  124. width: 200rpx !important;
  125. height: 80rpx !important;
  126. background-color: #007aff;
  127. color: #fff;
  128. font-size: 32rpx;
  129. border-radius: 38rpx;
  130. margin: 0 40rpx 0 30rpx !important;
  131. }