productdetails.wxss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. .goodslist_boxs {
  2. margin: 0rpx 30rpx;
  3. width: calc(100% - 60rpx);
  4. height: calc( 100vh - 40rpx);
  5. }
  6. .empty-space {
  7. width: 100%;
  8. height: 500rpx;
  9. background-color: #e0e0e0;
  10. margin-top: 20rpx;
  11. border-radius: 12rpx;
  12. position: relative;
  13. }
  14. .fenxiangljimg {
  15. position: absolute;
  16. right: 20rpx;
  17. top: 20rpx;
  18. width: 55rpx;
  19. height: 55rpx;
  20. }
  21. .goods-image {
  22. width: 100%;
  23. height: 400rpx;
  24. }
  25. .price-and-views {
  26. display: flex;
  27. justify-content: space-between;
  28. align-items: center;
  29. padding: 20rpx;
  30. }
  31. .price {
  32. color: #ff5722;
  33. font-size: 32rpx;
  34. }
  35. .original-price {
  36. color: #999;
  37. font-size: 24rpx;
  38. margin-left: 20rpx;
  39. text-decoration: line-through;
  40. }
  41. .views {
  42. color: #999;
  43. font-size: 24rpx;
  44. }
  45. .goods-title {
  46. padding: 0 20rpx;
  47. font-size: 32rpx;
  48. font-weight: bold;
  49. }
  50. .specifications {
  51. margin: 20rpx 0;
  52. padding: 20rpx;
  53. background: #fff;
  54. border-radius: 16rpx;
  55. }
  56. .specifications_boxs {
  57. width: 100%;
  58. height: 80%;
  59. margin-top: 20rpx;
  60. display: flex;
  61. flex-wrap: wrap; /* 允许内容自动换行 */
  62. justify-content: flex-start; /* 靠右排列 */
  63. align-content: flex-start;
  64. gap: 20rpx; /* 设置项目之间的间距 */
  65. }
  66. .spec-btn {
  67. width: 48% !important;
  68. margin-bottom: 20rpx; /* 设置底部边距,确保换行后有间距 */
  69. padding: 10rpx 20rpx;
  70. border: 1px solid #ccc;
  71. border-radius: 50rpx;
  72. font-size: 28rpx;
  73. white-space: nowrap; /* 防止文字换行 */
  74. }
  75. .spec-btn.active {
  76. background-color: #fff;
  77. color: #fff;
  78. border-color: #409eff;
  79. color: #409eff;
  80. }
  81. .quantity {
  82. display: flex;
  83. align-items: center;
  84. justify-content: space-between;
  85. padding: 20rpx;
  86. background: #fff;
  87. border-radius: 16rpx;
  88. }
  89. .quantity-controls {
  90. display: flex;
  91. align-items: center;
  92. }
  93. .quantity-btn {
  94. width: 60rpx;
  95. height: 60rpx;
  96. background-color: #f5f5f5;
  97. border: none;
  98. font-size: 40rpx;
  99. color: #999;
  100. }
  101. .quantity-input {
  102. width: 80rpx;
  103. height: 60rpx;
  104. text-align: center;
  105. font-size: 32rpx;
  106. margin: 0 10rpx;
  107. }
  108. .product-details {
  109. padding: 20rpx;
  110. background: #fff;
  111. border-radius: 16rpx;
  112. margin-top: 20rpx;
  113. }
  114. .details-list text {
  115. margin-top: 20rpx;
  116. display: block;
  117. margin-bottom: 10rpx;
  118. font-size: 30rpx;
  119. color: #666;
  120. }
  121. .buttons {
  122. width: 100%;
  123. display: flex;
  124. justify-content: space-around;
  125. padding: 20rpx;
  126. position: fixed;
  127. bottom: 0;
  128. left: 0;
  129. background: #fff;
  130. padding-bottom: 40rpx;
  131. padding-top: 20rpx;
  132. }
  133. .cart-btn, .buy-btn {
  134. width: 40%;
  135. height: 80rpx;
  136. border-radius: 50rpx;
  137. font-size: 32rpx;
  138. color: #fff;
  139. }
  140. .cart-btn {
  141. width: 260rpx !important;
  142. background-color: #ea0000;
  143. }
  144. .buy-btn {
  145. width: 260rpx !important;
  146. background-color: #409eff;
  147. }
  148. .search-icon {
  149. width: 50rpx;
  150. height: 50rpx;
  151. }