presale-goodsone.wxss 2.9 KB

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