productdetails.wxss 2.4 KB

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