index.scss 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465
  1. @font-face {
  2. font-family: "CustomFont";
  3. src: url("@/static/fonts/alibaba.otf") format("opentype");
  4. font-weight: normal;
  5. font-style: normal;
  6. }
  7. .page-top {
  8. background: url("/static/home/home-top.png") 518rpx
  9. calc(-10rpx + var(--status-bar-height)) / 212rpx 296rpx no-repeat,
  10. url("/static/home/home-t.png") top center/100% auto no-repeat,
  11. linear-gradient(to top, #d0ffa5, #acff5f);
  12. }
  13. .tab-nav {
  14. display: flex;
  15. justify-content: flex-start;
  16. padding: 20rpx 20rpx;
  17. // padding-top: 5rpx;
  18. box-sizing: border-box;
  19. background: #ffffff;
  20. .tab-item {
  21. padding: 15rpx 38rpx;
  22. color: #1f1f1f;
  23. font-size: 28rpx;
  24. background: #f2f6f2;
  25. margin-right: 20rpx;
  26. border-radius: 30rpx;
  27. position: relative;
  28. left: 0;
  29. top: 0;
  30. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  31. // box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
  32. line-height: 1;
  33. &:active {
  34. transform: scale(0.95);
  35. // box-shadow: 0 1rpx 4rpx rgba(0, 0, 0, 0.05);
  36. }
  37. .indicator-triangle {
  38. position: absolute;
  39. bottom: -10rpx;
  40. left: 50%;
  41. transform: translateX(-50%);
  42. width: 0;
  43. height: 0;
  44. border-left: 10rpx solid transparent;
  45. border-right: 10rpx solid transparent;
  46. border-top: 10rpx solid #acf934;
  47. display: none;
  48. transition: all 0.3s ease;
  49. }
  50. &.active {
  51. background: #acf934;
  52. font-family: "CustomFont" !important;
  53. box-shadow: 0 4rpx 12rpx rgba(172, 249, 52, 0.3);
  54. .indicator-triangle {
  55. display: block;
  56. transform: translateX(-50%) scale(1.2);
  57. }
  58. }
  59. }
  60. }
  61. .hot-topics {
  62. padding: 20rpx 28rpx;// background: #fff;
  63. margin:0 20rpx;
  64. margin-top: 0;
  65. border-radius: 20rpx;
  66. border: #000000 solid 2rpx;
  67. background: url("../../static/home/hot-topice-bg.png") center/120% 100%
  68. no-repeat;
  69. .hot-topics-header {
  70. margin-bottom: 20rpx;
  71. .hot-topics-title {
  72. width: 140rpx;
  73. height: 34rpx;
  74. }
  75. }
  76. .hot-topics-swiper {
  77. height: 220rpx;
  78. box-sizing: border-box;
  79. }
  80. .hot-topics-list {
  81. // padding: 0 26rpx;
  82. padding-bottom: 0;
  83. height: 100%;
  84. display: flex;
  85. flex-direction: column;
  86. justify-content: flex-start;
  87. min-height: 220rpx;
  88. }
  89. .topic-item {
  90. display: flex;
  91. align-items: center;
  92. padding: 10rpx 0;
  93. justify-content: space-between;
  94. width: 100%;
  95. min-height: 50rpx;
  96. margin-bottom: 10rpx;
  97. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  98. &:active {
  99. transform: scale(0.98);
  100. }
  101. &:last-child {
  102. margin-bottom: 0;
  103. }
  104. .hot-topics-left {
  105. display: flex;
  106. transition: all 0.3s ease;
  107. align-items: center;
  108. .topic-index {
  109. width: 30rpx;
  110. height: 30rpx;
  111. font-weight: 700;
  112. font-size: 24rpx;
  113. display: inline-flex;
  114. align-items: center;
  115. justify-content: center;
  116. color: #fff;
  117. border-radius: 5rpx;
  118. margin-right: 18rpx;
  119. background: #c4c4c4;
  120. transition: all 0.3s ease;
  121. border-radius: 8rpx;
  122. &.topic-index-img {
  123. background: transparent;
  124. color: transparent;
  125. width: 36rpx;
  126. height: 36rpx;
  127. position: relative;
  128. left: -2rpx;
  129. top: 0;
  130. }
  131. }
  132. .topic-content {
  133. font-size: 28rpx;
  134. max-width: 380rpx;
  135. overflow: hidden;
  136. text-overflow: ellipsis;
  137. white-space: nowrap;
  138. transition: all 0.3s ease;
  139. }
  140. }
  141. .topic-participants {
  142. font-size: 24rpx;
  143. color: #999;
  144. transition: all 0.3s ease;
  145. }
  146. .hot-tag {
  147. width: 46rpx;
  148. height: 22rpx;
  149. margin: auto;
  150. margin-left: 10rpx;
  151. transition: all 0.3s ease;
  152. }
  153. }
  154. .indicator-dots {
  155. display: flex;
  156. justify-content: center;
  157. margin-top: 20rpx;
  158. .dot {
  159. width: 8rpx;
  160. height: 8rpx;
  161. border-radius: 6rpx;
  162. background: #cecece;
  163. margin: 0 6rpx;
  164. &.active {
  165. width: 20rpx;
  166. background: #1f1f1f;
  167. }
  168. }
  169. }
  170. }
  171. .follow-list {
  172. padding: 20rpx 0rpx;
  173. background: #fff;
  174. margin: 0rpx;
  175. border-radius: 0rpx;
  176. .works-list {
  177. display: flex;
  178. flex-wrap: wrap;
  179. padding: 10rpx;
  180. .work-item {
  181. width: 48%;
  182. margin: 1%;
  183. margin-bottom: 20rpx;
  184. .work-image {
  185. width: 100%;
  186. aspect-ratio: 1;
  187. border-radius: 12rpx;
  188. }
  189. .work-title {
  190. font-size: 28rpx;
  191. color: #ffffff;
  192. margin-top: 10rpx;
  193. padding: 0 10rpx;
  194. white-space: nowrap;
  195. overflow: hidden;
  196. text-overflow: ellipsis;
  197. }
  198. }
  199. }
  200. .no-data {
  201. display: flex;
  202. flex-direction: column;
  203. align-items: center;
  204. justify-content: center;
  205. padding: 60rpx 0;
  206. background-color: #fff;
  207. text {
  208. color: #808080;
  209. font-size: 28rpx;
  210. }
  211. }
  212. }
  213. .no-data {
  214. text-align: center;
  215. padding: 40rpx 0;
  216. color: #808080;
  217. font-size: 28rpx;
  218. }
  219. .news-list {
  220. padding: 20rpx 0rpx;
  221. background: #fff;
  222. .news-grid {
  223. display: flex;
  224. flex-wrap: wrap;
  225. justify-content: space-between;
  226. .news-item {
  227. width: 48%;
  228. margin-bottom: 30rpx;
  229. background: #28292d;
  230. border-radius: 12rpx;
  231. overflow: hidden;
  232. .news-image {
  233. width: 100%;
  234. aspect-ratio: 1;
  235. height: auto;
  236. border-radius: 12rpx 12rpx 0 0;
  237. }
  238. .news-title {
  239. font-size: 28rpx;
  240. color: #ffffff;
  241. padding: 15rpx;
  242. white-space: nowrap;
  243. overflow: hidden;
  244. text-overflow: ellipsis;
  245. height: 60rpx;
  246. line-height: 60rpx;
  247. }
  248. .news-footer {
  249. display: flex;
  250. justify-content: space-between;
  251. align-items: center;
  252. padding: 0 15rpx 15rpx;
  253. .news-author {
  254. font-size: 24rpx;
  255. color: #808080;
  256. max-width: 60%;
  257. white-space: nowrap;
  258. overflow: hidden;
  259. text-overflow: ellipsis;
  260. }
  261. .news-views {
  262. display: flex;
  263. align-items: center;
  264. font-size: 24rpx;
  265. color: #808080;
  266. .view-icon {
  267. width: 26rpx;
  268. height: 18rpx;
  269. margin-right: 6rpx;
  270. }
  271. }
  272. }
  273. }
  274. }
  275. }
  276. .float-btn {
  277. position: fixed;
  278. right: 30rpx;
  279. bottom: 145rpx;
  280. width: 120rpx;
  281. height: 120rpx;
  282. border-radius: 50%;
  283. display: flex;
  284. justify-content: center;
  285. align-items: center;
  286. z-index: 999;
  287. .float-btn-icon {
  288. width: 100%;
  289. height: 100%;
  290. }
  291. }
  292. .blankHeight {
  293. // width: 500rpx;
  294. // height: 500rpx;
  295. width: 100%;
  296. height: 144rpx;
  297. }
  298. .benner-box {
  299. box-sizing: border-box;
  300. padding: 20rpx;
  301. background: #fff;
  302. border-top-left-radius: 40rpx;
  303. border-top-right-radius: 40rpx;
  304. ::v-deep.uv-swiper {
  305. border-radius: 20rpx !important;
  306. overflow: hidden;
  307. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  308. &:active {
  309. transform: scale(0.98);
  310. }
  311. }
  312. .classModel {
  313. display: flex;
  314. justify-content: space-between;
  315. align-items: center;
  316. position: relative;
  317. left: 0;
  318. right: 0;
  319. .benner-iconBom {
  320. height: 18rpx;
  321. width: 50rpx;
  322. position: absolute;
  323. top: calc(55% + 18rpx);
  324. left: 50%;
  325. transform: translateX(-50%);
  326. z-index: 99;
  327. }
  328. .benner-icontop {
  329. width: 45rpx;
  330. height: 20rpx;
  331. position: absolute;
  332. top: 55%;
  333. left: 50%;
  334. transform: translateX(-50%);
  335. }
  336. .benner-box {
  337. height: 256rpx;
  338. width: 344rpx;
  339. position: relative;
  340. }
  341. .benner-left-box {
  342. background: url("../../static/home/benner-left.-bg.png") center/100% 99%
  343. no-repeat;
  344. .text1 {
  345. color: rgba(255, 255, 255, 0.8);
  346. color: 28rpx;
  347. position: absolute;
  348. left: 26rpx;
  349. top: 88rpx;
  350. }
  351. .btn {
  352. font-size: 24rpx;
  353. background: #1f1f1f;
  354. color: #acf934;
  355. display: inline-block;
  356. border-radius: 390rpx;
  357. padding: 8rpx 24rpx;
  358. padding-bottom: 10rpx;
  359. position: absolute;
  360. bottom: 38rpx;
  361. left: 26rpx;
  362. }
  363. }
  364. .benner-right-box {
  365. background: url("../../static/home/benner-right-bg.png") center/100% 99%
  366. no-repeat;
  367. display: flex;
  368. flex-direction: column;
  369. justify-content: space-evenly;
  370. align-items: center;
  371. height: 256rpx;
  372. .text {
  373. color: #999;
  374. font-size: 20rpx;
  375. position: absolute;
  376. top: 56rpx;
  377. left: 26rpx;
  378. }
  379. .guard {
  380. position: relative;
  381. left: 0;
  382. top: 0;
  383. width: 312rpx;
  384. height: 104rpx;
  385. background: url("../../static/home/benner-right-btnTop.png") center/100%
  386. no-repeat;
  387. margin-bottom: 10rpx;
  388. }
  389. .match {
  390. position: relative;
  391. left: 0;
  392. top: 0;
  393. width: 312rpx;
  394. height: 104rpx;
  395. background: url("../../static/home/benner-right-btnBom.png") center/100%
  396. no-repeat;
  397. }
  398. }
  399. }
  400. }
  401. .waterfall-list-container {
  402. background: #fff;
  403. }
  404. .navCenter {
  405. .topBox {
  406. display: flex;
  407. flex-direction: row;
  408. justify-content: center;
  409. align-items: center;
  410. }
  411. }
  412. .lhSelectCity {
  413. background-color: #fff;
  414. position: fixed;
  415. left: 0;
  416. right: 0;
  417. width: 100%;
  418. height: 100vh;
  419. padding: 0 25rpx;
  420. padding-top: var(--status-bar-height);
  421. }
  422. .homePage {
  423. ::v-deep.zp-scroll-view-super {
  424. // padding-top: 22rpx;
  425. border-top-left-radius: 40rpx;
  426. border-top-right-radius: 40rpx;
  427. background-color: #fff;
  428. }
  429. }