pinrow.wxss 3.4 KB

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