index.less 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. .index {
  2. padding: 18px 16px 0 16px;
  3. box-sizing: border-box;
  4. min-height: 100vh;
  5. background-color: #f9f9f9;
  6. padding-bottom: 150px;
  7. .header-card {
  8. width: 100%;
  9. height: 256px;
  10. position: relative;
  11. padding: 80px 0 0 17px;
  12. box-sizing: border-box;
  13. .bg-image {
  14. width: 100%;
  15. height: 256px;
  16. position: absolute;
  17. top: 0;
  18. left: 0;
  19. }
  20. .user-info {
  21. position: relative;
  22. z-index: 1;
  23. display: flex;
  24. align-items: center;
  25. .avatar-wrapper {
  26. position: relative;
  27. width: 116px;
  28. height: 116px;
  29. margin-right: 28px;
  30. .avatar {
  31. width: 116px;
  32. height: 116px;
  33. border-radius: 50%;
  34. }
  35. .change-avatar-btn {
  36. position: absolute;
  37. bottom: -6px;
  38. left: 50%;
  39. transform: translateX(-50%);
  40. width: 85px;
  41. height: 26px;
  42. background: #3d3d3d;
  43. border-radius: 13px;
  44. color: #FFFFFF;
  45. font-size: 16px;
  46. display: flex;
  47. align-items: center;
  48. justify-content: center;
  49. }
  50. }
  51. .info-content {
  52. display: flex;
  53. flex-direction: column;
  54. color: #FFFFFF;
  55. .name {
  56. font-size: 34px;
  57. line-height: 40px;
  58. margin-bottom: 14px;
  59. }
  60. .desc {
  61. font-size: 18px;
  62. line-height: 40px;
  63. opacity: 0.8;
  64. }
  65. }
  66. }
  67. .share-shop {
  68. position: absolute;
  69. top: 20px;
  70. right: 20px;
  71. z-index: 1;
  72. font-size: 14px;
  73. Text {
  74. font-size: 22px;
  75. line-height: 40px;
  76. margin-right: 7px;
  77. color: #FFFFFF;
  78. }
  79. }
  80. }
  81. // 产品列表
  82. .product-list {
  83. background-color: #fff;
  84. border-radius: 20px;
  85. margin-top: -20px;
  86. padding: 30px 0;
  87. box-sizing: border-box;
  88. position: relative;
  89. z-index: 1;
  90. .product-list-title {
  91. display: flex;
  92. flex-direction: column;
  93. margin-bottom: 24px;
  94. width: 100%;
  95. justify-content: center;
  96. align-items: center;
  97. .title {
  98. color: #000000;
  99. font-size: 28px;
  100. font-weight: 700;
  101. line-height: 41px;
  102. margin-bottom: 15px;
  103. }
  104. .icon {
  105. width: 76px;
  106. height: 12px;
  107. background: linear-gradient(180deg, #FBE00F 0%, #FFCC19 100%);
  108. border-radius: 10px 10px 0px 0px;
  109. }
  110. }
  111. }
  112. // 底部购买模块
  113. .bottom-buy {
  114. width: 100%;
  115. background-color: #fff;
  116. height: 126px;
  117. padding: 19px 35px 19px 44px;
  118. box-sizing: border-box;
  119. position: fixed;
  120. bottom: 0;
  121. display: flex;
  122. justify-content: space-between;
  123. align-items: center;
  124. .bottom-buy-left {
  125. display: flex;
  126. flex-direction: column;
  127. align-items: center;
  128. image {
  129. width: 36px;
  130. height: 36px;
  131. margin-bottom: 7px;
  132. }
  133. .bottom-buy-text {
  134. font-size: 22px;
  135. line-height: 32px;
  136. color: #000000;
  137. }
  138. }
  139. .bottom-buy-right {
  140. width: 100%;
  141. height: 100%;
  142. display: flex;
  143. border-radius: 60px;
  144. overflow: hidden;
  145. .bottom-buy-right-self,
  146. .bottom-buy-right-share {
  147. line-height: 43px;
  148. font-size: 30px;
  149. width: 100%;
  150. display: flex;
  151. justify-content: center;
  152. align-items: center;
  153. image {
  154. margin-right: 9px;
  155. }
  156. }
  157. .bottom-buy-right-self {
  158. background-color: #fbe00f;
  159. color: #000000;
  160. }
  161. .bottom-buy-right-share {
  162. background-color: #ff1c14;
  163. color: #fff;
  164. }
  165. }
  166. }
  167. }
  168. // 清除Button默认样式
  169. Button {
  170. padding: 0;
  171. margin: 0;
  172. background: none;
  173. border: none;
  174. line-height: normal;
  175. height: 100%;
  176. width: 100%;
  177. display: flex;
  178. justify-content: center;
  179. align-items: center;
  180. &::after {
  181. border: none;
  182. }
  183. }
  184. .button-hover {
  185. background-color: transparent !important;
  186. /* 移除背景高亮 */
  187. box-shadow: none !important;
  188. /* 移除可能的阴影 */
  189. }
  190. // 加载中
  191. .loading-container {
  192. width: 100%;
  193. position: relative;
  194. height: 60px;
  195. }
  196. // 没有更多
  197. .no-more {
  198. padding: 20px 0;
  199. &-line {
  200. position: relative;
  201. text-align: center;
  202. &::before,
  203. &::after {
  204. content: '';
  205. position: absolute;
  206. top: 50%;
  207. width: 30%;
  208. height: 1px;
  209. background-color: #e5e5e5;
  210. }
  211. &::before {
  212. left: 10%;
  213. }
  214. &::after {
  215. right: 10%;
  216. }
  217. }
  218. &-text {
  219. display: inline-block;
  220. padding: 0 15px;
  221. font-size: 24px;
  222. color: #949494;
  223. }
  224. }