seckillItem.wxss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. .seckill-item {
  2. position: relative;
  3. display: flex;
  4. padding: 20rpx 20rpx 30rpx;
  5. }
  6. .img {
  7. width: 240rpx;
  8. height: 240rpx;
  9. border-radius: 10rpx;
  10. overflow: hidden;
  11. }
  12. .img .img-class {
  13. width: 240rpx;
  14. height: 240rpx;
  15. }
  16. .seckill-item .item-right {
  17. flex: 1;
  18. width: 100%;
  19. box-sizing: border-box;
  20. margin-left: 20rpx;
  21. display: flex;
  22. flex-direction: column;
  23. justify-content: space-between;
  24. }
  25. .seckill-item .title {
  26. color: #333;
  27. font-size: 30rpx;
  28. height: 40rpx;
  29. line-height: 40rpx;
  30. width: 350rpx;
  31. margin-bottom: 12rpx;
  32. font-weight: bold;
  33. overflow: hidden;
  34. text-overflow: ellipsis;
  35. white-space: nowrap;
  36. }
  37. .seckill-item .item-right .desc {
  38. font-size: 26rpx;
  39. line-height: 32rpx;
  40. color: #999;
  41. width: 400rpx;
  42. height: 32rpx;
  43. margin-bottom: 12rpx;
  44. overflow: hidden;
  45. text-overflow: ellipsis;
  46. white-space: nowrap;
  47. }
  48. .seckill-item .spu-price {
  49. display: flex;
  50. align-items: flex-end;
  51. font-size: 26rpx;
  52. line-height: 26rpx;
  53. overflow: hidden;
  54. margin-bottom: 10rpx;
  55. }
  56. .seckill-item .spu-price .sale-price {
  57. color: #ff5344;
  58. margin-right: 12rpx;
  59. }
  60. .seckill-item .spu-price .sale-price .span {
  61. font-size: 46rpx;
  62. line-height: 42rpx;
  63. margin: 0;
  64. font-weight: bold;
  65. }
  66. .seckill-item .spu-price .market-price {
  67. text-decoration: line-through;
  68. color: #999;
  69. margin-right: 30rpx;
  70. }
  71. .seckill-item .add-cart {
  72. height: 52rpx;
  73. line-height: 52rpx;
  74. padding: 0 20rpx;
  75. margin: 0;
  76. position: absolute;
  77. right: 20rpx;
  78. bottom: 30rpx;
  79. display: flex;
  80. align-items: center;
  81. justify-content: center;
  82. border-radius: 26rpx;
  83. background: linear-gradient(90deg, #ff5041 0%, #ff695c 100%);
  84. color: #fff;
  85. font-size: 24rpx;
  86. }
  87. .seckill-item .add-cart.disabled {
  88. background: #ccc;
  89. }
  90. .progress-box {
  91. display: flex;
  92. color: #999;
  93. font-size: 22rpx;
  94. margin-top: auto;
  95. margin-bottom: 20rpx;
  96. }
  97. .progress-wrap {
  98. width: 160rpx;
  99. margin-right: 10rpx;
  100. }
  101. .flex {
  102. flex-direction: column;
  103. color: #666;
  104. font-size: 24rpx;
  105. }
  106. .flex .progress-wrap {
  107. width: 100%;
  108. margin-right: 0;
  109. margin-bottom: 10rpx;
  110. }
  111. .seckill-item .mask {
  112. background: rgba(255, 255, 255, 0.5);
  113. width: 240rpx;
  114. height: 240rpx;
  115. position: absolute;
  116. left: 20rpx;
  117. top: 20rpx;
  118. }
  119. .seckill-item .act-end {
  120. position: absolute;
  121. height: 60rpx;
  122. border-radius: 10rpx;
  123. background: rgba(0, 0, 0, 0.5);
  124. color: #fff;
  125. font-size: 28rpx;
  126. text-align: center;
  127. line-height: 60rpx;
  128. left: 140rpx;
  129. top: 112rpx;
  130. padding: 0 12rpx;
  131. transform: translateX(-50%);
  132. }
  133. .seckill-item .act-end.act-out {
  134. left: 140rpx;
  135. }