articleDetail.scss 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824
  1. // 导入FontAwesome
  2. @import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css");
  3. page {
  4. background-color: #ffffff;
  5. width: 100%;
  6. color: #333;
  7. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
  8. Arial, sans-serif;
  9. }
  10. .page {
  11. background-color: #ffffff;
  12. width: 100%;
  13. }
  14. /* 自定义导航栏样式 */
  15. .custom-navbar {
  16. display: flex;
  17. flex-direction: row;
  18. align-items: center;
  19. justify-content: space-between;
  20. width: 100%;
  21. height: calc( 90rpx + var(--status-bar-height));
  22. padding: 0 20rpx;
  23. padding-top: var(--status-bar-height);
  24. background-color: #ffffff;
  25. position: sticky;
  26. top: 0;
  27. z-index: 100;
  28. .navbar-left {
  29. width: 80rpx;
  30. height: 80rpx;
  31. display: flex;
  32. align-items: center;
  33. justify-content: center;
  34. .fa-angle-left {
  35. font-size: 48rpx;
  36. color: #333;
  37. }
  38. }
  39. .navbar-center {
  40. flex: 1;
  41. display: flex;
  42. justify-content: flex-start;
  43. align-items: center;
  44. margin-left: 10rpx;
  45. .navbar-title {
  46. display: flex;
  47. align-items: center;
  48. .navbar-avatar {
  49. width: 50rpx;
  50. height: 50rpx;
  51. border-radius: 25rpx;
  52. margin-right: 10rpx;
  53. }
  54. .navbar-text {
  55. font-size: 32rpx;
  56. font-weight: bold;
  57. color: #333;
  58. margin-right: 10rpx;
  59. }
  60. .navbar-badge {
  61. font-size: 22rpx;
  62. color: #f0ad4e;
  63. background-color: rgba(240, 173, 78, 0.1);
  64. padding: 2rpx 10rpx;
  65. border-radius: 10rpx;
  66. border: 1rpx solid #f0ad4e;
  67. }
  68. }
  69. }
  70. .navbar-right {
  71. min-width: 80rpx;
  72. height: 80rpx;
  73. display: flex;
  74. justify-content: center;
  75. align-items: center;
  76. .fa-ellipsis-h {
  77. font-size: 36rpx;
  78. color: #333;
  79. }
  80. image {
  81. width: 64rpx;
  82. height: 64rpx;
  83. }
  84. .followTheAuthor {
  85. padding: 6rpx 20rpx 8rpx 15rpx;
  86. border-radius: 26rpx;
  87. margin-right: 16rpx;
  88. transition: all 0.6s;
  89. border: 2rpx solid transparent;
  90. &.followTheAuthor1 {
  91. color: #acf934;
  92. background: #1f1f1f;
  93. }
  94. &.followTheAuthor0 {
  95. border: 2rpx solid #1f1f1f;
  96. background: #fff;
  97. }
  98. }
  99. }
  100. }
  101. // 轮播图样式
  102. ::v-deep.swiper-box {
  103. padding-bottom: 32rpx;
  104. .uv-swiper__wrapper__item__wrapper__image {
  105. width: 100%;
  106. background-color: transparent !important;
  107. }
  108. .uv-swiper__indicator {
  109. position: absolute;
  110. bottom: 0;
  111. .uv-swiper-indicator__wrapper__dot {
  112. width: 10rpx;
  113. height: 10rpx;
  114. border-radius: 50%;
  115. background: #e1e1e1 !important;
  116. &.uv-swiper-indicator__wrapper__dot--active {
  117. background: #acf934 !important;
  118. }
  119. }
  120. }
  121. }
  122. // 评论区域样式
  123. .comment-section {
  124. background-color: #f8f8f8;
  125. padding: 30rpx 0;
  126. margin-top: 20rpx;
  127. border-radius: 30rpx 30rpx 0 0;
  128. .section-header {
  129. display: flex;
  130. align-items: center;
  131. padding: 0 30rpx 20rpx;
  132. border-bottom: 1rpx solid #eee;
  133. margin-bottom: 20rpx;
  134. .fa {
  135. font-size: 36rpx;
  136. color: #2979ff;
  137. }
  138. .section-title {
  139. font-size: 32rpx;
  140. font-weight: bold;
  141. margin: 0 10rpx;
  142. color: #333;
  143. }
  144. .comment-count {
  145. font-size: 28rpx;
  146. color: #999;
  147. }
  148. }
  149. .comment-button {
  150. display: flex;
  151. align-items: center;
  152. justify-content: center;
  153. width: 650rpx;
  154. height: 90rpx;
  155. background-color: #2979ff;
  156. color: #fff;
  157. border-radius: 45rpx;
  158. margin: 40rpx auto 20rpx;
  159. font-size: 30rpx;
  160. box-shadow: 0 4rpx 12rpx rgba(41, 121, 255, 0.3);
  161. transition: all 0.3s ease;
  162. .fa {
  163. margin-right: 10rpx;
  164. }
  165. &:active {
  166. transform: scale(0.97);
  167. background-color: #2567db;
  168. }
  169. }
  170. }
  171. /* 确保评论按钮样式 */
  172. .comment-button {
  173. display: flex;
  174. align-items: center;
  175. justify-content: center;
  176. width: 650rpx;
  177. height: 90rpx;
  178. background-color: #2979ff;
  179. color: #fff;
  180. border-radius: 45rpx;
  181. margin: 40rpx auto 20rpx;
  182. font-size: 30rpx;
  183. box-shadow: 0 4rpx 12rpx rgba(41, 121, 255, 0.3);
  184. }
  185. .header {
  186. display: flex;
  187. flex-direction: row;
  188. justify-content: flex-start;
  189. align-items: center;
  190. width: 750rpx;
  191. height: 320rpx;
  192. padding-top: calc(var(--status-bar-height) + 0rpx);
  193. .left {
  194. display: flex;
  195. flex-direction: row;
  196. width: 200rpx;
  197. height: 120rpx;
  198. justify-content: center;
  199. padding-left: 50rpx;
  200. image {
  201. width: 124rpx;
  202. height: 40rpx;
  203. }
  204. }
  205. }
  206. .body {
  207. width: 750rpx;
  208. border-radius: 40rpx 40rpx 0 0;
  209. padding-top: 30rpx;
  210. display: flex;
  211. flex-direction: column;
  212. justify-content: flex-start;
  213. align-items: flex-start;
  214. position: relative;
  215. z-index: 10;
  216. .article-header {
  217. display: flex;
  218. flex-direction: column;
  219. justify-content: flex-start;
  220. align-items: flex-start;
  221. padding: 40rpx 50rpx 20rpx;
  222. width: 100%;
  223. box-sizing: border-box;
  224. .title {
  225. font-family: "PingFang SC-Bold";
  226. font-size: 400;
  227. color: #1f1f1f;
  228. font-size: 36rpx;
  229. }
  230. .article-content {
  231. width: 100%;
  232. padding-top: 40rpx;
  233. padding-bottom: 28rpx;
  234. .content {
  235. font-family: "PingFang SCMedium";
  236. font-size: 32rpx;
  237. font-weight: 400;
  238. }
  239. }
  240. .cardLink {
  241. min-width: 340rpx;
  242. max-width: 500rpx;
  243. height: 120rpx;
  244. border-radius: 12rpx;
  245. border: 2rpx solid #f2f6f2;
  246. padding: 10rpx;
  247. box-sizing: border-box;
  248. display: flex;
  249. flex-direction: flex-start;
  250. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  251. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
  252. &:active {
  253. transform: scale(0.98);
  254. box-shadow: 0 1rpx 4rpx rgba(0, 0, 0, 0.05);
  255. }
  256. image {
  257. width: auto;
  258. height: 100rpx;
  259. background: #f4f4f4;
  260. flex-grow: 0;
  261. border-radius: 12rpx;
  262. margin-right: 12rpx;
  263. transition: all 0.3s ease;
  264. }
  265. .content {
  266. height: 100%;
  267. display: flex;
  268. flex-direction: column;
  269. justify-content: space-between;
  270. transition: all 0.3s ease;
  271. .tit {
  272. font-family: "PingFang SC-Bold";
  273. font-family: PingFang SC, PingFang SC;
  274. font-weight: 400;
  275. font-size: 24rpx;
  276. transition: all 0.3s ease;
  277. }
  278. .tex {
  279. font-family: "PingFang SC-Medium";
  280. font-family: PingFang SC, PingFang SC;
  281. font-size: 20rpx;
  282. color: #999999;
  283. line-height: 28rpx;
  284. transition: all 0.3s ease;
  285. }
  286. }
  287. }
  288. .meta-info {
  289. display: flex;
  290. flex-direction: row;
  291. flex-wrap: wrap;
  292. color: #999;
  293. font-size: 26rpx;
  294. .meta-item {
  295. display: flex;
  296. align-items: center;
  297. margin-right: 30rpx;
  298. margin-bottom: 10rpx;
  299. .meta-text {
  300. margin-left: 8rpx;
  301. }
  302. }
  303. }
  304. }
  305. .divider {
  306. height: 1rpx;
  307. background-color: #eee;
  308. width: 650rpx;
  309. margin: 10rpx auto 30rpx;
  310. }
  311. .article-footer {
  312. width: 100%;
  313. padding: 20rpx 0;
  314. border-top: 1rpx solid #f0f0f0;
  315. .action-bar {
  316. display: flex;
  317. justify-content: space-around;
  318. align-items: center;
  319. .action-item {
  320. display: flex;
  321. flex-direction: column;
  322. align-items: center;
  323. padding: 20rpx 0;
  324. .fa {
  325. font-size: 40rpx;
  326. color: #666;
  327. margin-bottom: 10rpx;
  328. &.liked {
  329. color: #ff5151;
  330. }
  331. }
  332. .action-text {
  333. font-size: 24rpx;
  334. color: #666;
  335. }
  336. &:active {
  337. opacity: 0.7;
  338. }
  339. }
  340. }
  341. }
  342. }
  343. .list_wish {
  344. display: flex;
  345. flex-direction: column;
  346. justify-content: flex-start;
  347. align-items: center;
  348. color: #fff;
  349. width: 750rpx;
  350. .item {
  351. margin-top: 20rpx;
  352. color: #fff;
  353. font-size: 28rpx;
  354. display: flex;
  355. flex-direction: row;
  356. justify-content: center;
  357. align-items: center;
  358. width: 690rpx;
  359. height: 156rpx;
  360. background: #28292d;
  361. border-radius: 28rpx;
  362. .avator {
  363. width: 116rpx;
  364. height: 116rpx;
  365. margin-left: 14rpx;
  366. background: #161616;
  367. border-radius: 28rpx;
  368. display: flex;
  369. flex-direction: row;
  370. justify-content: center;
  371. align-items: center;
  372. .icon {
  373. width: 100rpx;
  374. height: 100rpx;
  375. border-radius: 20rpx;
  376. }
  377. }
  378. .left {
  379. width: 370rpx;
  380. display: flex;
  381. flex-direction: column;
  382. justify-content: flex-start;
  383. align-items: flex-start;
  384. margin-left: 20rpx;
  385. .name {
  386. font-size: 32rpx;
  387. margin-bottom: 20rpx;
  388. }
  389. .jindu {
  390. display: flex;
  391. flex-direction: row;
  392. justify-content: flex-start;
  393. align-items: center;
  394. .bord {
  395. width: 216rpx;
  396. height: 20rpx;
  397. margin-left: 0rpx;
  398. background: #0f0f0f;
  399. border-radius: 24rpx;
  400. .active {
  401. width: 0%;
  402. height: 20rpx;
  403. background: linear-gradient(142deg, #ff5967 0%, #ff2a95 100%);
  404. border-radius: 24rpx;
  405. }
  406. }
  407. .tips {
  408. margin-left: 20rpx;
  409. font-weight: 400;
  410. font-size: 24rpx;
  411. color: #ff3d83;
  412. }
  413. }
  414. }
  415. .right {
  416. width: 190rpx;
  417. .btn_submit {
  418. width: 168rpx;
  419. height: 72rpx;
  420. background: linear-gradient(142deg, #ff5967 0%, #ff2a95 100%);
  421. border-radius: 28rpx 28rpx 28rpx 28rpx;
  422. display: flex;
  423. flex-direction: column;
  424. justify-content: center;
  425. align-items: center;
  426. }
  427. .state {
  428. width: 168rpx;
  429. height: 72rpx;
  430. text-align: center;
  431. line-height: 72rpx;
  432. }
  433. }
  434. }
  435. }
  436. .list_info {
  437. display: flex;
  438. flex-direction: column;
  439. justify-content: flex-start;
  440. align-items: center;
  441. color: #fff;
  442. width: 750rpx;
  443. .item {
  444. width: 690rpx;
  445. margin: 0rpx 0;
  446. color: #fff;
  447. font-size: 28rpx;
  448. padding: 20rpx 0 0rpx;
  449. display: flex;
  450. flex-direction: row;
  451. justify-content: flex-start;
  452. align-items: center;
  453. .avator {
  454. width: 88rpx;
  455. .icon {
  456. width: 72rpx;
  457. height: 72rpx;
  458. border-radius: 36rpx;
  459. }
  460. }
  461. .tit {
  462. width: 470rpx;
  463. .list1 {
  464. display: flex;
  465. flex-direction: row;
  466. justify-content: flex-start;
  467. align-items: center;
  468. .name {
  469. font-size: 32rpx;
  470. padding-right: 10rpx;
  471. height: 40rpx;
  472. line-height: 40rpx;
  473. }
  474. .sex1 {
  475. width: 76rpx;
  476. height: 40rpx;
  477. background: #423339;
  478. border-radius: 16rpx 16rpx 16rpx 16rpx;
  479. border: 2rpx solid #36d6ff;
  480. color: #36d6ff;
  481. display: flex;
  482. flex-direction: row;
  483. justify-content: flex-start;
  484. align-items: center;
  485. image {
  486. width: 24rpx;
  487. height: 24rpx;
  488. margin-left: 4rpx;
  489. margin-right: 4rpx;
  490. }
  491. }
  492. .sex2 {
  493. width: 76rpx;
  494. height: 40rpx;
  495. background: #423339;
  496. border-radius: 16rpx 16rpx 16rpx 16rpx;
  497. border: 2rpx solid #ff7d88;
  498. color: #ff7d88;
  499. display: flex;
  500. flex-direction: row;
  501. justify-content: flex-start;
  502. align-items: center;
  503. image {
  504. width: 24rpx;
  505. height: 24rpx;
  506. margin-left: 4rpx;
  507. margin-right: 4rpx;
  508. }
  509. }
  510. .xinzuo {
  511. width: 92rpx;
  512. height: 44rpx;
  513. margin-left: 10rpx;
  514. line-height: 44rpx;
  515. border-radius: 16rpx 16rpx 16rpx 16rpx;
  516. border: 2rpx solid #404040;
  517. font-size: 20rpx;
  518. color: #d0d0d0;
  519. display: flex;
  520. flex-direction: row;
  521. justify-content: center;
  522. align-items: center;
  523. }
  524. }
  525. .time {
  526. color: #d0d0d0;
  527. font-size: 24rpx;
  528. }
  529. }
  530. .state {
  531. width: 130rpx;
  532. font-size: 28rpx;
  533. font-weight: normal;
  534. text-align: right;
  535. .status_1 {
  536. color: #999;
  537. }
  538. .status_9 {
  539. color: #36d6ff;
  540. }
  541. .status_2 {
  542. color: #fe2d56;
  543. }
  544. }
  545. }
  546. .content {
  547. width: 690rpx;
  548. font-weight: 400;
  549. font-size: 28rpx;
  550. color: #ffffff;
  551. text-align: left;
  552. font-style: normal;
  553. text-transform: none;
  554. padding: 20rpx 0;
  555. padding-left: 88rpx;
  556. }
  557. .photo_list {
  558. width: 690rpx;
  559. margin-bottom: 0rpx;
  560. padding-left: 88rpx;
  561. border-radius: 28rpx;
  562. font-size: 28rpx;
  563. display: flex;
  564. flex-direction: row;
  565. align-items: center;
  566. flex-wrap: wrap;
  567. .img {
  568. width: 186rpx;
  569. height: 186rpx;
  570. margin-bottom: 24rpx;
  571. margin-right: 12rpx;
  572. image {
  573. width: 186rpx;
  574. height: 186rpx;
  575. border-radius: 28rpx;
  576. border: solid 1px rgba(255, 255, 255, 0.2);
  577. }
  578. }
  579. .right {
  580. color: #fff;
  581. }
  582. }
  583. .desc {
  584. width: 690rpx;
  585. padding: 0rpx 0 0rpx;
  586. padding-left: 88rpx;
  587. font-weight: 400;
  588. font-size: 24rpx;
  589. color: #999999;
  590. line-height: 0rpx;
  591. text-align: left;
  592. font-style: normal;
  593. text-transform: none;
  594. display: flex;
  595. flex-direction: row;
  596. justify-content: space-between;
  597. align-items: center;
  598. image {
  599. width: 40rpx;
  600. height: 40rpx;
  601. }
  602. .addr {
  603. width: 200rpx;
  604. }
  605. .img {
  606. display: flex;
  607. flex-direction: row;
  608. justify-content: center;
  609. align-items: center;
  610. padding: 0 0rpx 0 30rpx;
  611. font-size: 28rpx;
  612. color: #fff;
  613. image {
  614. margin-top: -8rpx;
  615. }
  616. }
  617. }
  618. }
  619. .btn_submit {
  620. width: 336rpx;
  621. height: 100rpx;
  622. margin: 50rpx auto;
  623. background: linear-gradient(90deg, #ff536d 0%, #ff3b84 100%);
  624. border-radius: 50rpx 50rpx 50rpx 50rpx;
  625. display: flex;
  626. flex-direction: row;
  627. justify-content: center;
  628. align-items: center;
  629. font-weight: bold;
  630. font-size: 32rpx;
  631. color: #ffffff;
  632. image {
  633. width: 44rpx;
  634. height: 44rpx;
  635. margin-right: 8rpx;
  636. margin-top: 4rpx;
  637. }
  638. }
  639. .btn {
  640. text-align: center;
  641. color: #fff;
  642. padding: 20rpx;
  643. margin: 50rpx;
  644. border-radius: 20rpx;
  645. background-color: #2979ff;
  646. }
  647. .font-awesome-import {
  648. display: none;
  649. }
  650. .fa {
  651. font-family: "FontAwesome";
  652. margin-right: 6rpx;
  653. }
  654. // 评论区域样式
  655. .comment-section {
  656. background-color: #f8f8f8;
  657. padding: 30rpx 0;
  658. margin-top: 20rpx;
  659. border-radius: 30rpx 30rpx 0 0;
  660. .section-header {
  661. display: flex;
  662. align-items: center;
  663. padding: 0 30rpx 20rpx;
  664. border-bottom: 1rpx solid #eee;
  665. margin-bottom: 20rpx;
  666. .fa {
  667. font-size: 36rpx;
  668. color: #2979ff;
  669. }
  670. .section-title {
  671. font-size: 32rpx;
  672. font-weight: bold;
  673. margin: 0 10rpx;
  674. color: #333;
  675. }
  676. .comment-count {
  677. font-size: 28rpx;
  678. color: #999;
  679. }
  680. }
  681. .comment-button {
  682. display: flex;
  683. align-items: center;
  684. justify-content: center;
  685. width: 650rpx;
  686. height: 90rpx;
  687. background-color: #2979ff;
  688. color: #fff;
  689. border-radius: 45rpx;
  690. margin: 40rpx auto 20rpx;
  691. font-size: 30rpx;
  692. box-shadow: 0 4rpx 12rpx rgba(41, 121, 255, 0.3);
  693. transition: all 0.3s ease;
  694. .fa {
  695. margin-right: 10rpx;
  696. }
  697. &:active {
  698. transform: scale(0.97);
  699. background-color: #2567db;
  700. }
  701. }
  702. }
  703. /* 确保评论按钮样式 */
  704. .comment-button {
  705. display: flex;
  706. align-items: center;
  707. justify-content: center;
  708. width: 650rpx;
  709. height: 90rpx;
  710. background-color: #2979ff;
  711. color: #fff;
  712. border-radius: 45rpx;
  713. margin: 40rpx auto 20rpx;
  714. font-size: 30rpx;
  715. box-shadow: 0 4rpx 12rpx rgba(41, 121, 255, 0.3);
  716. }
  717. .comment-button .fa {
  718. margin-right: 10rpx;
  719. }
  720. .comment-button:active {
  721. opacity: 0.9;
  722. transform: scale(0.98);
  723. }
  724. .failureReason {
  725. padding: 40rpx;
  726. padding-top: 52tpx;
  727. background: #fff;
  728. width: 600rpx;
  729. min-height: 346rpx;
  730. border-radius: 28rpx;
  731. box-sizing: border-box;
  732. .title {
  733. font-family: PingFang SC, PingFang SC;
  734. font-weight: 400;
  735. font-size: 36rpx;
  736. color: #1f1f1f;
  737. text-align: center;
  738. margin-bottom: 24rpx;
  739. }
  740. .reviewContent {
  741. font-family: PingFang SC, PingFang SC;
  742. font-weight: 400;
  743. font-size: 28rpx;
  744. color: #1f1f1f;
  745. }
  746. .btn-box {
  747. background: #1f1f1f;
  748. color: #fff;
  749. margin: 0 auto;
  750. width: 244rpx;
  751. height: 72rpx;
  752. font-size: 32rpx;
  753. font-family: "PingFang SC-Bold";
  754. background: #1f1f1f;
  755. border-radius: 12rpx;
  756. display: flex;
  757. align-items: center;
  758. justify-content: center;
  759. margin-top: 54rpx;
  760. }
  761. }
  762. .topStatusBar {
  763. width: 100%;
  764. height: 48rpx;
  765. display: flex;
  766. align-items: center;
  767. justify-content: center;
  768. &.inProgress {
  769. background: #acf934;
  770. }
  771. &.fail {
  772. background: #fd3a3a;
  773. color: #fff;
  774. }
  775. }