index.wxss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. .new-comers-item, .w250 {
  2. position: relative;
  3. width: 237rpx;
  4. box-sizing: border-box;
  5. padding: 20rpx 10rpx;
  6. font-size: 28rpx;
  7. }
  8. .w250 {
  9. width: 250rpx;
  10. }
  11. .new-comers-item .new-img {
  12. width: 217rpx;
  13. height: 217rpx;
  14. margin-bottom: 20rpx;
  15. overflow: hidden;
  16. }
  17. .w250 .new-img {
  18. width: 230rpx;
  19. height: 230rpx;
  20. margin-bottom: 20rpx;
  21. overflow: hidden;
  22. }
  23. .new-comers-item .title,
  24. .w250 .title {
  25. overflow: hidden;
  26. text-overflow: ellipsis;
  27. white-space: nowrap;
  28. }
  29. .new-comers-item .new-bot,
  30. .w250 .new-bot {
  31. display: flex;
  32. justify-content: space-between;
  33. align-items: center;
  34. margin-top: 10rpx;
  35. }
  36. .new-comers-item .add-cart,
  37. .w250 .add-cart {
  38. width: 44rpx;
  39. height: 44rpx;
  40. padding: 0;
  41. margin: 0;
  42. }
  43. .new-comers-item .add-cart .img,
  44. .w250 .add-cart .img {
  45. width: 44rpx;
  46. height: 44rpx;
  47. display: block;
  48. }
  49. .new-comers-item .price,
  50. .w250 .price {
  51. color: #ff5041;
  52. }
  53. .new-comers-item .act-end,
  54. .w250 .act-end {
  55. position: absolute;
  56. height: 60rpx;
  57. border-radius: 10rpx;
  58. background: rgba(0, 0, 0, 0.5);
  59. color: #fff;
  60. font-size: 28rpx;
  61. text-align: center;
  62. line-height: 60rpx;
  63. left: 50%;
  64. top: 80rpx;
  65. padding: 0 12rpx;
  66. transform: translateX(-50%);
  67. }
  68. .col-input-number .input-number-view {
  69. width: 32rpx !important;
  70. height: 32rpx !important;
  71. }
  72. .col-input-number .input-number-img{
  73. width: 32rpx !important;
  74. height: 32rpx !important;
  75. font-size: 32rpx !important;
  76. }
  77. .col-input-number .input-number-input {
  78. height: 32rpx !important;
  79. width: 40rpx !important;
  80. font-size: 20rpx;
  81. line-height: 32rpx !important;
  82. }
  83. .vip {
  84. position: absolute;
  85. left: 10rpx;
  86. top: 20rpx;
  87. }
  88. /* 标签 */
  89. .spu .item-tag {
  90. position: absolute;
  91. right: 10rpx;
  92. top: 20rpx;
  93. width: 54rpx;
  94. height: 62rpx;
  95. z-index: 1;
  96. color: #fff;
  97. text-align: center;
  98. }
  99. .item-tag-bg {
  100. position: absolute;
  101. left: 0;
  102. top: 0;
  103. width: 54rpx;
  104. height: 62rpx;
  105. z-index: 0;
  106. }
  107. .spu .item-tag .tag-name {
  108. position: relative;
  109. padding-top: 6rpx;
  110. font-size: 20rpx;
  111. line-height: 1;
  112. font-weight: 600;
  113. z-index: 1;
  114. }
  115. .spu .item-tag .tag-name.two-word {
  116. font-size: 22rpx;
  117. padding-top: 14rpx;
  118. }
  119. .spu .spu-active {
  120. position: absolute;
  121. left: 10rpx;
  122. top: 180rpx;
  123. z-index: 9;
  124. display: flex;
  125. flex-direction: column-reverse;
  126. align-items: flex-start;
  127. }
  128. .spu .spu-active .tag {
  129. background: linear-gradient(to right, #ff5041, #ff994b);
  130. border-radius: 0 14rpx 14rpx 0;
  131. padding: 0 12rpx;
  132. height: 30rpx;
  133. font-size: 22rpx;
  134. line-height: 30rpx;
  135. color: #fff;
  136. display: inline-block;
  137. align-items: center;
  138. justify-content: center;
  139. width: auto;
  140. max-width: 180rpx;
  141. overflow: hidden;
  142. text-overflow: ellipsis;
  143. white-space: nowrap;
  144. }
  145. .spu .spu-active .tag-green {
  146. background: linear-gradient(to left, #46c8d0, #29ba9a);
  147. }
  148. .spu-play {
  149. position: absolute;
  150. left: 50%;
  151. top: 20%;
  152. width: 100rpx;
  153. height: 100rpx;
  154. margin-left: -50rpx;
  155. }
  156. .spu-play .img {
  157. width: 100%;
  158. height: 100%;
  159. }