addCartModel.wxss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. /* components/addCartModel/addCartModel.wxss */
  2. .modal-container {
  3. position: fixed;
  4. top: 0;
  5. left: 0;
  6. width: 100%;
  7. height: 100%;
  8. z-index: 999;
  9. visibility: hidden;
  10. opacity: 0;
  11. transition: all 0.3s ease;
  12. }
  13. .modal-container.modal-show {
  14. visibility: visible;
  15. opacity: 1;
  16. }
  17. .modal-mask {
  18. position: absolute;
  19. top: 0;
  20. left: 0;
  21. width: 100%;
  22. height: 100%;
  23. background: rgba(0, 0, 0, 0.5);
  24. }
  25. .modal-content {
  26. position: absolute;
  27. bottom: 0;
  28. left: 0;
  29. width: 100%;
  30. max-height: 70vh;
  31. background: #fff;
  32. border-radius: 24rpx 24rpx 0 0;
  33. box-sizing: border-box;
  34. padding: 32rpx;
  35. transform: translateY(100%);
  36. transition: transform 0.3s ease;
  37. }
  38. .modal-show .modal-content {
  39. transform: translateY(0);
  40. }
  41. .modal-header {
  42. display: flex;
  43. justify-content: space-between;
  44. align-items: center;
  45. margin-bottom: 32rpx;
  46. }
  47. .modal-header .title {
  48. font-size: 32rpx;
  49. font-weight: bold;
  50. }
  51. .close-btn {
  52. margin: 0;
  53. padding: 0;
  54. width: 48rpx;
  55. height: 48rpx;
  56. line-height: 48rpx;
  57. font-size: 36rpx;
  58. background: transparent;
  59. border: none;
  60. }
  61. .product-info {
  62. display: flex;
  63. margin-bottom: 32rpx;
  64. }
  65. .product-image {
  66. width: 221rpx;
  67. height: 221rpx;
  68. border-radius: 30rpx;
  69. margin-right: 24rpx;
  70. }
  71. .product-detail {
  72. flex: 1;
  73. }
  74. .product-attr{
  75. display: flex;
  76. align-items: flex-end;
  77. justify-content: space-between;
  78. }
  79. .price {
  80. font-size: 36rpx;
  81. color: #ff2e4d;
  82. font-weight: bold;
  83. }
  84. .stock {
  85. font-size: 24rpx;
  86. color: #000;
  87. }
  88. .prodName {
  89. font-size: 32rpx;
  90. color: #000;
  91. font-weight: 600;
  92. margin-bottom: 130rpx;
  93. }
  94. .spec-section {
  95. margin-bottom: 32rpx;
  96. }
  97. .spec-title {
  98. font-size: 28rpx;
  99. margin-bottom: 16rpx;
  100. }
  101. .spec-options {
  102. display: flex;
  103. flex-wrap: wrap;
  104. gap: 16rpx;
  105. }
  106. .spec-option {
  107. padding: 12rpx 24rpx;
  108. border: 1rpx solid #eee;
  109. border-radius: 8rpx;
  110. font-size: 26rpx;
  111. }
  112. .spec-option.selected {
  113. border-color: #ff2e4d;
  114. color: #ff2e4d;
  115. background-color: #fff5f6;
  116. }
  117. .quantity-section {
  118. display: flex;
  119. justify-content: space-between;
  120. align-items: center;
  121. margin-bottom: 48rpx;
  122. }
  123. .quantity-title {
  124. font-size: 28rpx;
  125. }
  126. .quantity-control {
  127. display: flex;
  128. align-items: center;
  129. }
  130. .quantity-input {
  131. width: 80rpx;
  132. text-align: center;
  133. margin: 0 16rpx;
  134. }
  135. .btn-minus, .btn-plus {
  136. width: 60rpx;
  137. height: 60rpx;
  138. line-height: 60rpx;
  139. text-align: center;
  140. padding: 0;
  141. margin: 0;
  142. border: 1rpx solid #eee;
  143. background: #f7f7f7;
  144. border-radius: 8rpx;
  145. }
  146. .btn-minus[disabled], .btn-plus[disabled] {
  147. opacity: 0.5;
  148. }
  149. .footer {
  150. width: 100%;
  151. background: #fff;
  152. padding-top: 16rpx;
  153. }
  154. .add-btn {
  155. width: 657rpx !important;
  156. background: #89C6BE;
  157. color: #fff;
  158. border-radius: 20rpx;
  159. line-height: 105rpx;
  160. font-size: 30rpx;
  161. padding: 0;
  162. }