index.wxss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. .icon-shop {
  2. position: absolute!important;
  3. right: -20rpx;
  4. bottom: -40rpx;
  5. }
  6. .icon-shop .img {
  7. width: 54rpx;
  8. height: 54rpx;
  9. }
  10. .mask {
  11. width: 348rpx;
  12. height: 296rpx;
  13. position: absolute;
  14. left: 0;
  15. top: 30rpx;
  16. background: rgba(255, 255, 255, 0.5);
  17. display: flex;
  18. align-items: center;
  19. justify-content: center;
  20. }
  21. .mask .toast {
  22. width: 196rpx;
  23. height: 60rpx;
  24. background: rgba(0, 0, 0, 0.5);
  25. border-radius: 10rpx;
  26. text-align: center;
  27. line-height: 60rpx;
  28. color: #fff;
  29. font-weight: bold;
  30. font-size: 28rpx;
  31. }
  32. .spu-img {
  33. width: 240rpx;
  34. height: 240rpx;
  35. border-radius: 10rpx;
  36. }
  37. .comming-spu-content {
  38. width: 348rpx;
  39. height: 524rpx;
  40. border-radius: 20rpx;
  41. background: #fff;
  42. box-sizing: border-box;
  43. padding: 30rpx 26rpx 30rpx 26rpx;
  44. box-shadow: 0 0 40rpx rgba(0, 0, 0, 0.05);
  45. position: relative;
  46. }
  47. .comming-spu-content .spu-img-content {
  48. display: flex;
  49. align-items: center;
  50. justify-content: center;
  51. width: 296rpx;
  52. height: 296rpx;
  53. margin: 0 auto 34rpx;
  54. }
  55. .comming-spu-content .spu-name {
  56. font-size: 28rpx;
  57. line-height: 28rpx;
  58. height: 36rpx;
  59. color: #444;
  60. margin-bottom: 0;
  61. font-weight: 500;
  62. position: relative;
  63. }
  64. .comming-spu-content .spu-name .span {
  65. width: 100%;
  66. overflow: hidden;
  67. text-overflow: ellipsis;
  68. white-space: nowrap;
  69. position: absolute;
  70. left: 0;
  71. top: -4rpx;
  72. line-height: 36rpx;
  73. }
  74. .comming-spu-content .spu-desc {
  75. color: #ffab20;
  76. font-size: 24rpx;
  77. line-height: 34rpx;
  78. min-height: 34rpx;
  79. margin-bottom: 14rpx;
  80. overflow: hidden;
  81. text-overflow: ellipsis;
  82. white-space: nowrap;
  83. }
  84. .comming-spu-content .spu-price {
  85. /* display: flex;
  86. align-items: flex-end; */
  87. font-size: 20rpx;
  88. }
  89. .comming-spu-content .spu-price .sale-price {
  90. color: #ff5344;
  91. margin-right: 8rpx;
  92. }
  93. .comming-spu-content .spu-price .sale-price .span {
  94. font-size: 40rpx;
  95. line-height: 40rpx;
  96. margin-left: 4rpx;
  97. font-weight: 500;
  98. }
  99. .comming-spu-content .spu-price .market-price {
  100. text-decoration: line-through;
  101. color: #999;
  102. }
  103. .imgbox {
  104. position: relative;
  105. }
  106. .comming-spu-content .item-tag {
  107. position: absolute;
  108. left: -1rpx;
  109. top: 0;
  110. width: 54rpx;
  111. height: 62rpx;
  112. z-index: 1;
  113. color: #fff;
  114. text-align: center;
  115. }
  116. .item-tag-bg {
  117. position: absolute;
  118. left: 0;
  119. top: 0;
  120. width: 54rpx;
  121. height: 62rpx;
  122. z-index: 0;
  123. }
  124. .comming-spu-content .item-tag .tag-name {
  125. position: relative;
  126. padding-top: 6rpx;
  127. font-size: 20rpx;
  128. line-height: 1;
  129. font-weight: 600;
  130. z-index: 1;
  131. }
  132. .comming-spu-content .item-tag .tag-name.two-word {
  133. font-size: 22rpx;
  134. padding-top: 14rpx;
  135. }
  136. .comming-spu-content .spu-active {
  137. position: absolute;
  138. left: 0;
  139. bottom: 0;
  140. z-index: 9;
  141. display: flex;
  142. flex-direction: column-reverse;
  143. align-items: flex-start;
  144. }
  145. .comming-spu-content .spu-active .tag {
  146. background: linear-gradient(to right, #ff5041, #ff994b);
  147. border-radius: 0 14rpx 14rpx 0;
  148. padding: 0 12rpx;
  149. height: 30rpx;
  150. font-size: 22rpx;
  151. line-height: 30rpx;
  152. color: #fff;
  153. display: inline-block;
  154. align-items: center;
  155. justify-content: center;
  156. width: auto;
  157. max-width: 180rpx;
  158. overflow: hidden;
  159. text-overflow: ellipsis;
  160. white-space: nowrap;
  161. }
  162. .comming-spu-content .spu-active .tag-green {
  163. background: linear-gradient(to left, #46c8d0, #29ba9a);
  164. }
  165. .spu-play {
  166. position: absolute;
  167. left: 50%;
  168. top: 50%;
  169. width: 100rpx;
  170. height: 100rpx;
  171. margin-top: -50rpx;
  172. margin-left: -50rpx;
  173. }
  174. .spu-play .img {
  175. width: 100%;
  176. height: 100%;
  177. }
  178. .iptnum {
  179. position: absolute;
  180. right: 20rpx;
  181. bottom: 20rpx;
  182. }