shoppingcart.wxss 2.3 KB

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