index.less 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  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. // color: #F6C71A;
  116. // display: flex;
  117. // align-items: center;
  118. // justify-content: center;
  119. // .content {
  120. // width: 74px;
  121. // height: 88px;
  122. // font-size: 28px;
  123. // line-height: 41px;
  124. // text-align: center;
  125. // }
  126. }
  127. .buy{
  128. color: #F6C71A;
  129. display: flex;
  130. align-items: center;
  131. justify-content: center;
  132. position: relative;
  133. width: 192px;
  134. height: 84px;
  135. .bg {
  136. width: 100%;
  137. height: 100%;
  138. position: absolute;
  139. top: 0;
  140. left: 0;
  141. }
  142. .content {
  143. width: 74px;
  144. height: 80px;
  145. font-size: 28px;
  146. line-height: 41px;
  147. text-align: center;
  148. }
  149. }
  150. .share-earn {
  151. color: #fff;
  152. }
  153. .save-money,
  154. .share-earn {
  155. position: relative;
  156. width: 192px;
  157. height: 84px;
  158. .bg {
  159. width: 100%;
  160. height: 100%;
  161. position: absolute;
  162. top: 0;
  163. left: 0;
  164. }
  165. .content {
  166. position: relative;
  167. z-index: 1;
  168. height: 100%;
  169. display: flex;
  170. flex-direction: column;
  171. align-items: center;
  172. justify-content: center;
  173. font-size: 28px;
  174. // 清除Button默认样式
  175. Button {
  176. padding: 0;
  177. margin: 0;
  178. background: none;
  179. border: none;
  180. line-height: normal;
  181. height: 100%;
  182. width: 100%;
  183. display: flex;
  184. flex-direction: column;
  185. align-items: center;
  186. justify-content: center;
  187. font-size: 28px;
  188. color: #FFFFFF;
  189. &::after {
  190. border: none;
  191. }
  192. }
  193. .button-hover {
  194. background-color: transparent !important;
  195. /* 移除背景高亮 */
  196. box-shadow: none !important;
  197. /* 移除可能的阴影 */
  198. }
  199. .label,
  200. .money {
  201. line-height: 41px;
  202. }
  203. }
  204. }
  205. }
  206. }
  207. }
  208. .divider {
  209. height: 1px;
  210. margin: 0 17px 0 20px;
  211. border-top: 1px dashed #D8D8D8;
  212. }
  213. .seckill-icon {
  214. padding: 18px 0 0 17px;
  215. font-size: 26px;
  216. font-weight: bold;
  217. Image {
  218. height: 26px;
  219. width: 26px;
  220. margin-right: 10px;
  221. }
  222. }
  223. .loading {
  224. width: 100%;
  225. position: relative;
  226. height: 60px;
  227. }
  228. .no-more {
  229. width: 100%;
  230. height: 60px;
  231. text-align: center;
  232. font-size: 20px;
  233. line-height: 60px;
  234. margin-top: 20px;
  235. color: #999999;
  236. }
  237. }