productdetails.wxss 2.6 KB

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