addCartModel.wxss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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: 80vh;
  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. overflow-y:scroll;
  38. }
  39. .modal-show .modal-content {
  40. transform: translateY(0);
  41. }
  42. .modal-header {
  43. display: flex;
  44. justify-content: space-between;
  45. align-items: center;
  46. margin-bottom: 32rpx;
  47. }
  48. .modal-header .title {
  49. font-size: 32rpx;
  50. font-weight: bold;
  51. }
  52. .close-btn {
  53. margin: 0;
  54. padding: 0;
  55. width: 48rpx;
  56. height: 48rpx;
  57. line-height: 48rpx;
  58. font-size: 36rpx;
  59. background: transparent;
  60. border: none;
  61. }
  62. .product-info {
  63. display: flex;
  64. margin-bottom: 32rpx;
  65. }
  66. .product-image {
  67. width: 221rpx;
  68. height: 221rpx;
  69. border-radius: 30rpx;
  70. margin-right: 24rpx;
  71. }
  72. .product-detail {
  73. flex: 1;
  74. }
  75. .product-attr{
  76. display: flex;
  77. align-items: flex-end;
  78. justify-content: space-between;
  79. }
  80. .price {
  81. font-size: 36rpx;
  82. color: #ff2e4d;
  83. font-weight: bold;
  84. }
  85. .stock {
  86. font-size: 24rpx;
  87. color: #000;
  88. }
  89. .prodName {
  90. font-size: 32rpx;
  91. color: #000;
  92. font-weight: 600;
  93. margin-bottom: 130rpx;
  94. }
  95. .spec-section {
  96. margin-bottom: 32rpx;
  97. }
  98. .spec-option{
  99. display: flex;
  100. flex-wrap: wrap;
  101. justify-content: space-between;
  102. }
  103. .spec-title{
  104. font-size: 28rpx;
  105. margin-bottom: 19rpx;
  106. display: inline-block;
  107. }
  108. .spec-name {
  109. width: 45%;
  110. line-height: 63rpx;
  111. font-size: 28rpx;
  112. text-align: center;
  113. margin-bottom: 27rpx;
  114. background:#EFEFEF;
  115. border-radius: 20rpx;
  116. display: inline-block;
  117. }
  118. .spec-name.selected {
  119. background:#F9DFA4;
  120. }
  121. .quantity-section {
  122. display: flex;
  123. justify-content: space-between;
  124. align-items: center;
  125. margin-bottom: 48rpx;
  126. }
  127. .quantity-title {
  128. font-size: 28rpx;
  129. }
  130. .quantity-control {
  131. display: flex;
  132. align-items: center;
  133. }
  134. .quantity-input {
  135. width: 80rpx;
  136. text-align: center;
  137. margin: 0 16rpx;
  138. }
  139. .btn-minus, .btn-plus {
  140. width: 60rpx;
  141. height: 60rpx;
  142. line-height: 60rpx;
  143. text-align: center;
  144. padding: 0;
  145. margin: 0;
  146. border: 1rpx solid #eee;
  147. background: #f7f7f7;
  148. border-radius: 8rpx;
  149. }
  150. .btn-minus[disabled], .btn-plus[disabled] {
  151. opacity: 0.5;
  152. }
  153. .footer {
  154. width: 100%;
  155. background: #fff;
  156. padding-top: 16rpx;
  157. }
  158. .add-btn {
  159. width: 657rpx !important;
  160. background: #89C6BE;
  161. color: #fff;
  162. border-radius: 20rpx;
  163. line-height: 105rpx;
  164. font-size: 30rpx;
  165. padding: 0;
  166. }