index.less 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. .product-list-wrap {
  2. margin: 21px 16px 0;
  3. background: #FFFFFF;
  4. border-radius: 16px;
  5. position: relative;
  6. .product-item {
  7. padding: 27px 20px 27px 17px;
  8. display: flex;
  9. align-items: center;
  10. // 单选框内容
  11. .at-checkbox::after,
  12. .at-checkbox::before {
  13. content: none;
  14. }
  15. .at-checkbox__option-wrap {
  16. padding: 0 15px 0 0;
  17. }
  18. .at-checkbox__option {
  19. padding: 0;
  20. }
  21. .at-checkbox__option--selected .at-checkbox__icon-cnt {
  22. background-color: #f6c71a;
  23. }
  24. .at-checkbox__icon-cnt {
  25. margin-right: 0;
  26. }
  27. .right {
  28. display: flex;
  29. }
  30. .product-img {
  31. width: 260px;
  32. height: 256px;
  33. margin-right: 20px;
  34. flex-shrink: 0;
  35. }
  36. .product-info {
  37. flex: 1;
  38. min-width: 0; // 解决flex布局下文本溢出问题
  39. display: flex;
  40. flex-direction: column;
  41. justify-content: space-between;
  42. .product-name {
  43. font-size: 28px;
  44. overflow: hidden;
  45. text-overflow: ellipsis;
  46. display: -webkit-box;
  47. -webkit-line-clamp: 2;
  48. /* autoprefixer: ignore next */
  49. -webkit-box-orient: vertical;
  50. line-height: 42px;
  51. .self-tag {
  52. padding: 2px 8px;
  53. background: #FFD43A;
  54. border-radius: 4px;
  55. color: #803A04;
  56. font-size: 24px;
  57. line-height: 28px;
  58. margin-right: 8px;
  59. vertical-align: middle;
  60. }
  61. }
  62. .price-line {
  63. display: flex;
  64. justify-content: space-between;
  65. align-items: center;
  66. .price-info {
  67. display: flex;
  68. align-items: baseline;
  69. .symbol {
  70. font-size: 22px;
  71. color: #FF1D17;
  72. }
  73. .price {
  74. font-size: 36px;
  75. color: #FF1D17;
  76. font-weight: bold;
  77. margin-right: 8px;
  78. }
  79. .original-price {
  80. font-size: 26px;
  81. color: #999999;
  82. text-decoration: line-through;
  83. }
  84. }
  85. .add-btn {
  86. position: relative;
  87. width: 158px;
  88. height: 58px;
  89. .join-store-bg {
  90. width: 100%;
  91. height: 100%;
  92. position: absolute;
  93. top: 0;
  94. left: 0;
  95. }
  96. .btn-text {
  97. padding-left: 8px;
  98. position: absolute;
  99. width: 100%;
  100. height: 100%;
  101. display: flex;
  102. align-items: center;
  103. justify-content: center;
  104. color: #FFFFFF;
  105. font-size: 24px;
  106. z-index: 1;
  107. }
  108. }
  109. }
  110. .profit-line {
  111. display: flex;
  112. gap: 20px;
  113. .save-money {
  114. color: #F6C71A;
  115. display: flex;
  116. align-items: center;
  117. justify-content: center;
  118. .content {
  119. width: 74px;
  120. height: 88px;
  121. font-size: 28px;
  122. line-height: 41px;
  123. text-align: center;
  124. }
  125. }
  126. .share-earn {
  127. color: #fff;
  128. }
  129. .save-money,
  130. .share-earn {
  131. position: relative;
  132. width: 192px;
  133. height: 84px;
  134. .bg {
  135. width: 100%;
  136. height: 100%;
  137. position: absolute;
  138. top: 0;
  139. left: 0;
  140. }
  141. .content {
  142. position: relative;
  143. z-index: 1;
  144. height: 100%;
  145. display: flex;
  146. flex-direction: column;
  147. align-items: center;
  148. justify-content: center;
  149. font-size: 28px;
  150. // 清除Button默认样式
  151. Button {
  152. padding: 0;
  153. margin: 0;
  154. background: none;
  155. border: none;
  156. line-height: normal;
  157. height: 100%;
  158. width: 100%;
  159. display: flex;
  160. flex-direction: column;
  161. align-items: center;
  162. justify-content: center;
  163. font-size: 28px;
  164. color: #FFFFFF;
  165. &::after {
  166. border: none;
  167. }
  168. }
  169. .button-hover {
  170. background-color: transparent !important;
  171. /* 移除背景高亮 */
  172. box-shadow: none !important;
  173. /* 移除可能的阴影 */
  174. }
  175. .label,
  176. .money {
  177. line-height: 41px;
  178. }
  179. }
  180. }
  181. }
  182. }
  183. }
  184. .divider {
  185. height: 1px;
  186. margin: 0 17px 0 20px;
  187. border-top: 1px dashed #D8D8D8;
  188. }
  189. .seckill-icon {
  190. padding: 18px 0 0 17px;
  191. font-size: 26px;
  192. font-weight: bold;
  193. Image {
  194. height: 26px;
  195. width: 26px;
  196. margin-right: 10px;
  197. }
  198. }
  199. .loading {
  200. width: 100%;
  201. position: relative;
  202. height: 60px;
  203. }
  204. .no-more {
  205. width: 100%;
  206. height: 60px;
  207. text-align: center;
  208. font-size: 20px;
  209. line-height: 60px;
  210. margin-top: 20px;
  211. color: #999999;
  212. }
  213. }