pinGoods.wxss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. .spu-content {
  2. width: 350rpx;
  3. height: 506rpx;
  4. border-radius: 20rpx;
  5. background: #fff;
  6. box-sizing: border-box;
  7. padding: 30rpx 25rpx;
  8. box-shadow: 0 0 40rpx rgba(0, 0, 0, 0.05);
  9. position: relative;
  10. margin-bottom: 10rpx;
  11. }
  12. .spu-img {
  13. width: 300rpx;
  14. height: 300rpx;
  15. border-radius: 10rpx;
  16. }
  17. .spu-content .spu-title {
  18. font-size: 28rpx;
  19. line-height: 36rpx;
  20. height: 36rpx;
  21. color: #444;
  22. margin-bottom: 16rpx;
  23. font-weight: 500;
  24. position: relative;
  25. margin-top: 16rpx;
  26. }
  27. .spu-content .spu-title .span {
  28. display: block;
  29. width: 100%;
  30. overflow: hidden;
  31. text-overflow: ellipsis;
  32. white-space: nowrap;
  33. }
  34. .spu-content .spu-price {
  35. display: flex;
  36. align-items: flex-end;
  37. font-size: 20rpx;
  38. }
  39. .spu-content .spu-price .sale-price {
  40. color: #ff5344;
  41. margin-right: 8rpx;
  42. }
  43. .spu-content .spu-price .sale-price .span {
  44. font-size: 40rpx;
  45. line-height: 40rpx;
  46. margin-left: 4rpx;
  47. font-weight: 500;
  48. }
  49. .spu-content .spu-price .market-price {
  50. text-decoration: line-through;
  51. color: #999;
  52. }
  53. .spu-content .spu-count {
  54. display: flex;
  55. align-items: flex-end;
  56. font-size: 20rpx;
  57. color: #999;
  58. margin-top: 10rpx;
  59. }
  60. .spu-content .add-cart, .spu-content .add-cart-disabled {
  61. width: 100rpx;
  62. height: 50rpx;
  63. padding: 0;
  64. margin: 0;
  65. position: absolute;
  66. right: 20rpx;
  67. bottom: 25rpx;
  68. display: flex;
  69. align-items: center;
  70. justify-content: center;
  71. background: linear-gradient(90deg, #ff5041 0%, #ff695c 100%);
  72. color: #fff;
  73. border-radius: 25rpx;
  74. font-size: 24rpx;
  75. font-weight: bold;
  76. }
  77. .spu-content .add-cart-disabled {
  78. background: #ccc;
  79. }
  80. .spu-content .pin-tag {
  81. display: inline-block;
  82. font-size: 20rpx;
  83. padding: 4rpx 6rpx;
  84. margin-right: 10rpx;
  85. border: 0.1rpx solid #ff5344;
  86. line-height: 1;
  87. vertical-align: middle;
  88. color: #ff5344;
  89. border-radius: 4rpx;
  90. }
  91. .spu-play {
  92. position: absolute;
  93. left: 50%;
  94. top: 95rpx;
  95. width: 100rpx;
  96. height: 100rpx;
  97. margin-left: -50rpx;
  98. }
  99. .spu-play .img {
  100. width: 100%;
  101. height: 100%;
  102. }
  103. .mask {
  104. background: rgba(255, 255, 255, 0.5);
  105. width: 300rpx;
  106. height: 240rpx;
  107. position: absolute;
  108. left: 25rpx;
  109. top: 30rpx;
  110. }
  111. .act-end {
  112. position: absolute;
  113. height: 60rpx;
  114. border-radius: 10rpx;
  115. background: rgba(0, 0, 0, 0.5);
  116. color: #fff;
  117. font-size: 28rpx;
  118. text-align: center;
  119. line-height: 60rpx;
  120. left: 50%;
  121. top: 120rpx;
  122. padding: 0 12rpx;
  123. transform: translateX(-50%);
  124. }
  125. /* 标签 */
  126. .spu-content .item-tag {
  127. position: absolute;
  128. left: -1rpx;
  129. top: 0;
  130. width: 54rpx;
  131. height: 62rpx;
  132. z-index: 1;
  133. color: #fff;
  134. text-align: center;
  135. }
  136. .item-tag-bg {
  137. position: absolute;
  138. left: 0;
  139. top: 0;
  140. width: 54rpx;
  141. height: 62rpx;
  142. z-index: 0;
  143. }
  144. .spu-content .item-tag .tag-name {
  145. position: relative;
  146. padding-top: 6rpx;
  147. font-size: 20rpx;
  148. line-height: 1;
  149. font-weight: 600;
  150. z-index: 1;
  151. }
  152. .spu-content .item-tag .tag-name.two-word {
  153. font-size: 22rpx;
  154. padding-top: 14rpx;
  155. }