rushBig.wxss 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. .img-class {
  2. width: 710rpx;
  3. height: 400rpx;
  4. border-radius: 10rpx 10rpx 0 0;
  5. image-rendering: crisp-edges;
  6. }
  7. .mask {
  8. background: rgba(255, 255, 255, 0.5);
  9. width: 710rpx;
  10. height: 400rpx;
  11. position: absolute;
  12. left: 0;
  13. top: 0;
  14. }
  15. .act-end {
  16. position: absolute;
  17. height: 60rpx;
  18. border-radius: 10rpx;
  19. background: rgba(0, 0, 0, 0.5);
  20. color: #fff;
  21. font-size: 28rpx;
  22. text-align: center;
  23. line-height: 60rpx;
  24. left: 50%;
  25. top: 170rpx;
  26. padding: 0 12rpx;
  27. transform: translateX(-50%);
  28. }
  29. .spu-content {
  30. background: #fff;
  31. width: 710rpx;
  32. border-radius: 20rpx;
  33. overflow: hidden;
  34. position: relative;
  35. box-shadow: 0 0 40rpx rgba(0, 0, 0, 0.05);
  36. margin: 0 auto 20rpx;
  37. display: flex;
  38. flex-direction: column;
  39. box-sizing: border-box;
  40. }
  41. .spu-content.disabled {
  42. opacity: 0.6;
  43. }
  44. .spu-content .item-top {
  45. width: 100%;
  46. height: 400rpx;
  47. position: relative;
  48. }
  49. .spu-content .item-bottom {
  50. box-sizing: border-box;
  51. padding: 20rpx;
  52. display: flex;
  53. flex-direction: column;
  54. justify-content: space-between;
  55. }
  56. .spu-content .item-bottom .spu-title {
  57. color: #222;
  58. font-size: 30rpx;
  59. height: 32rpx;
  60. width: 100%;
  61. margin-bottom: 12rpx;
  62. margin-top: 10rpx;
  63. font-weight: 500;
  64. position: relative;
  65. }
  66. .spu-content .item-bottom .spu-title .span {
  67. width: 100%;
  68. height: 40rpx;
  69. position: absolute;
  70. left: 0;
  71. top: -4rpx;
  72. line-height: 40rpx;
  73. overflow: hidden;
  74. text-overflow: ellipsis;
  75. white-space: nowrap;
  76. }
  77. .spu-content .item-bottom .spu-tag {
  78. padding-left: 196rpx;
  79. margin-bottom: 20rpx;
  80. display: flex;
  81. height: 28rpx;
  82. }
  83. .spu-content .item-bottom .spu-desc {
  84. font-size: 26rpx;
  85. line-height: 26rpx;
  86. color: #999;
  87. position: relative;
  88. width: 100%;
  89. height: 26rpx;
  90. margin-bottom: 12rpx;
  91. }
  92. .spu-content .item-bottom .spu-desc .em {
  93. width: 100%;
  94. height: 32rpx;
  95. position: absolute;
  96. left: 0;
  97. top: -2rpx;
  98. line-height: 32rpx;
  99. overflow: hidden;
  100. text-overflow: ellipsis;
  101. white-space: nowrap;
  102. }
  103. .spu-content .item-bottom .spu-price {
  104. display: flex;
  105. align-items: flex-end;
  106. font-size: 26rpx;
  107. line-height: 26rpx;
  108. overflow: hidden;
  109. margin-bottom: 10rpx;
  110. margin-top: 10rpx;
  111. }
  112. .spu-content .item-bottom .spu-price .sale-price {
  113. color: #ff5344;
  114. margin-right: 12rpx;
  115. }
  116. .spu-content .item-bottom .spu-price .sale-price .span {
  117. font-size: 46rpx;
  118. line-height: 42rpx;
  119. margin: 0;
  120. font-weight: bold;
  121. }
  122. .spu-content .item-bottom .spu-price .market-price {
  123. text-decoration: line-through;
  124. color: #999;
  125. margin-right: 20rpx;
  126. }
  127. .spu-content .item-bottom .spu-count {
  128. font-size: 24rpx;
  129. line-height: 24rpx;
  130. color: #999;
  131. }
  132. .spu-content .add-cart,
  133. .spu-content .add-cart-disabled {
  134. width: 160rpx;
  135. height: 60rpx;
  136. padding: 0;
  137. margin: 0;
  138. position: absolute;
  139. right: 28rpx;
  140. bottom: 20rpx;
  141. display: flex;
  142. align-items: center;
  143. justify-content: center;
  144. background: #ff5344;
  145. color: #fff;
  146. border-radius: 30rpx;
  147. }
  148. .spu-content .add-cart-disabled {
  149. background: #ccc;
  150. }
  151. .spu-content .item-top .spu-active {
  152. position: absolute;
  153. left: 0;
  154. bottom: 0;
  155. z-index: 9;
  156. display: flex;
  157. flex-direction: column-reverse;
  158. align-items: flex-start;
  159. }
  160. .spu-content .item-top .spu-active .tag {
  161. background: linear-gradient(to right, #ff5041, #ff994b);
  162. border-radius: 0 25rpx 25rpx 0;
  163. padding: 0 15rpx;
  164. height: 50rpx;
  165. font-size: 26rpx;
  166. line-height: 50rpx;
  167. color: #fff;
  168. display: inline-block;
  169. align-items: center;
  170. justify-content: center;
  171. width: auto;
  172. max-width: 220rpx;
  173. overflow: hidden;
  174. text-overflow: ellipsis;
  175. white-space: nowrap;
  176. }
  177. .spu-content .item-top .spu-active .tag-green {
  178. background: linear-gradient(to left, #46c8d0, #29ba9a);
  179. }
  180. .spu-content .spu-content .time-tip {
  181. position: absolute;
  182. background: #ff5344;
  183. left: 0;
  184. bottom: 0;
  185. width: 250rpx;
  186. height: 40rpx;
  187. border-radius: 0 8rpx 0 0;
  188. }
  189. .spu-content .spu-content .time-tip.notip {
  190. display: none;
  191. }
  192. /* 标签 */
  193. .spu-content .item-tag {
  194. position: absolute;
  195. left: 22rpx;
  196. top: 0;
  197. width: 54rpx;
  198. height: 62rpx;
  199. z-index: 1;
  200. color: #fff;
  201. text-align: center;
  202. }
  203. .item-tag-bg {
  204. position: absolute;
  205. left: 0;
  206. top: 0;
  207. width: 54rpx;
  208. height: 62rpx;
  209. z-index: 0;
  210. }
  211. .spu-content .item-tag .tag-name {
  212. position: relative;
  213. padding-top: 6rpx;
  214. font-size: 20rpx;
  215. line-height: 1;
  216. font-weight: 600;
  217. z-index: 1;
  218. }
  219. .spu-content .item-tag .tag-name.two-word {
  220. font-size: 22rpx;
  221. padding-top: 14rpx;
  222. }
  223. .spu-play {
  224. position: absolute;
  225. left: 50%;
  226. top: 50%;
  227. width: 160rpx;
  228. height: 160rpx;
  229. margin-top: -80rpx;
  230. margin-left: -80rpx;
  231. }
  232. .spu-play .img {
  233. width: 100%;
  234. height: 100%;
  235. }
  236. .pin-tag {
  237. display: inline-block;
  238. font-size: 22rpx;
  239. padding: 4rpx 6rpx;
  240. margin-right: 10rpx;
  241. border: 0.1rpx solid #ff5344;
  242. line-height: 1;
  243. vertical-align: middle;
  244. color: #ff5344;
  245. border-radius: 4rpx;
  246. }