index.wxss 5.5 KB

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