rushNormal.wxss 4.7 KB

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