articleDetail.scss 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811
  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. image {
  251. width: auto;
  252. height: 100rpx;
  253. background: #f4f4f4;
  254. flex-grow: 0;
  255. border-radius: 12rpx;
  256. margin-right: 12rpx;
  257. }
  258. .content {
  259. height: 100%;
  260. display: flex;
  261. flex-direction: column;
  262. justify-content: space-between;
  263. .tit {
  264. font-family: "PingFang SC-Bold";
  265. font-family: PingFang SC, PingFang SC;
  266. font-weight: 400;
  267. font-size: 24rpx;
  268. }
  269. .tex {
  270. font-family: "PingFang SC-Medium";
  271. font-family: PingFang SC, PingFang SC;
  272. font-size: 20rpx;
  273. color: #999999;
  274. line-height: 28rpx;
  275. }
  276. }
  277. }
  278. .meta-info {
  279. display: flex;
  280. flex-direction: row;
  281. flex-wrap: wrap;
  282. color: #999;
  283. font-size: 26rpx;
  284. .meta-item {
  285. display: flex;
  286. align-items: center;
  287. margin-right: 30rpx;
  288. margin-bottom: 10rpx;
  289. .meta-text {
  290. margin-left: 8rpx;
  291. }
  292. }
  293. }
  294. }
  295. .divider {
  296. height: 1rpx;
  297. background-color: #eee;
  298. width: 650rpx;
  299. margin: 10rpx auto 30rpx;
  300. }
  301. .article-footer {
  302. width: 100%;
  303. padding: 20rpx 0;
  304. border-top: 1rpx solid #f0f0f0;
  305. .action-bar {
  306. display: flex;
  307. justify-content: space-around;
  308. align-items: center;
  309. .action-item {
  310. display: flex;
  311. flex-direction: column;
  312. align-items: center;
  313. padding: 20rpx 0;
  314. .fa {
  315. font-size: 40rpx;
  316. color: #666;
  317. margin-bottom: 10rpx;
  318. &.liked {
  319. color: #ff5151;
  320. }
  321. }
  322. .action-text {
  323. font-size: 24rpx;
  324. color: #666;
  325. }
  326. &:active {
  327. opacity: 0.7;
  328. }
  329. }
  330. }
  331. }
  332. }
  333. .list_wish {
  334. display: flex;
  335. flex-direction: column;
  336. justify-content: flex-start;
  337. align-items: center;
  338. color: #fff;
  339. width: 750rpx;
  340. .item {
  341. margin-top: 20rpx;
  342. color: #fff;
  343. font-size: 28rpx;
  344. display: flex;
  345. flex-direction: row;
  346. justify-content: center;
  347. align-items: center;
  348. width: 690rpx;
  349. height: 156rpx;
  350. background: #28292d;
  351. border-radius: 28rpx;
  352. .avator {
  353. width: 116rpx;
  354. height: 116rpx;
  355. margin-left: 14rpx;
  356. background: #161616;
  357. border-radius: 28rpx;
  358. display: flex;
  359. flex-direction: row;
  360. justify-content: center;
  361. align-items: center;
  362. .icon {
  363. width: 100rpx;
  364. height: 100rpx;
  365. border-radius: 20rpx;
  366. }
  367. }
  368. .left {
  369. width: 370rpx;
  370. display: flex;
  371. flex-direction: column;
  372. justify-content: flex-start;
  373. align-items: flex-start;
  374. margin-left: 20rpx;
  375. .name {
  376. font-size: 32rpx;
  377. margin-bottom: 20rpx;
  378. }
  379. .jindu {
  380. display: flex;
  381. flex-direction: row;
  382. justify-content: flex-start;
  383. align-items: center;
  384. .bord {
  385. width: 216rpx;
  386. height: 20rpx;
  387. margin-left: 0rpx;
  388. background: #0f0f0f;
  389. border-radius: 24rpx;
  390. .active {
  391. width: 0%;
  392. height: 20rpx;
  393. background: linear-gradient(142deg, #ff5967 0%, #ff2a95 100%);
  394. border-radius: 24rpx;
  395. }
  396. }
  397. .tips {
  398. margin-left: 20rpx;
  399. font-weight: 400;
  400. font-size: 24rpx;
  401. color: #ff3d83;
  402. }
  403. }
  404. }
  405. .right {
  406. width: 190rpx;
  407. .btn_submit {
  408. width: 168rpx;
  409. height: 72rpx;
  410. background: linear-gradient(142deg, #ff5967 0%, #ff2a95 100%);
  411. border-radius: 28rpx 28rpx 28rpx 28rpx;
  412. display: flex;
  413. flex-direction: column;
  414. justify-content: center;
  415. align-items: center;
  416. }
  417. .state {
  418. width: 168rpx;
  419. height: 72rpx;
  420. text-align: center;
  421. line-height: 72rpx;
  422. }
  423. }
  424. }
  425. }
  426. .list_info {
  427. display: flex;
  428. flex-direction: column;
  429. justify-content: flex-start;
  430. align-items: center;
  431. color: #fff;
  432. width: 750rpx;
  433. .item {
  434. width: 690rpx;
  435. margin: 0rpx 0;
  436. color: #fff;
  437. font-size: 28rpx;
  438. padding: 20rpx 0 0rpx;
  439. display: flex;
  440. flex-direction: row;
  441. justify-content: flex-start;
  442. align-items: center;
  443. .avator {
  444. width: 88rpx;
  445. .icon {
  446. width: 72rpx;
  447. height: 72rpx;
  448. border-radius: 36rpx;
  449. }
  450. }
  451. .tit {
  452. width: 470rpx;
  453. .list1 {
  454. display: flex;
  455. flex-direction: row;
  456. justify-content: flex-start;
  457. align-items: center;
  458. .name {
  459. font-size: 32rpx;
  460. padding-right: 10rpx;
  461. height: 40rpx;
  462. line-height: 40rpx;
  463. }
  464. .sex1 {
  465. width: 76rpx;
  466. height: 40rpx;
  467. background: #423339;
  468. border-radius: 16rpx 16rpx 16rpx 16rpx;
  469. border: 2rpx solid #36d6ff;
  470. color: #36d6ff;
  471. display: flex;
  472. flex-direction: row;
  473. justify-content: flex-start;
  474. align-items: center;
  475. image {
  476. width: 24rpx;
  477. height: 24rpx;
  478. margin-left: 4rpx;
  479. margin-right: 4rpx;
  480. }
  481. }
  482. .sex2 {
  483. width: 76rpx;
  484. height: 40rpx;
  485. background: #423339;
  486. border-radius: 16rpx 16rpx 16rpx 16rpx;
  487. border: 2rpx solid #ff7d88;
  488. color: #ff7d88;
  489. display: flex;
  490. flex-direction: row;
  491. justify-content: flex-start;
  492. align-items: center;
  493. image {
  494. width: 24rpx;
  495. height: 24rpx;
  496. margin-left: 4rpx;
  497. margin-right: 4rpx;
  498. }
  499. }
  500. .xinzuo {
  501. width: 92rpx;
  502. height: 44rpx;
  503. margin-left: 10rpx;
  504. line-height: 44rpx;
  505. border-radius: 16rpx 16rpx 16rpx 16rpx;
  506. border: 2rpx solid #404040;
  507. font-size: 20rpx;
  508. color: #d0d0d0;
  509. display: flex;
  510. flex-direction: row;
  511. justify-content: center;
  512. align-items: center;
  513. }
  514. }
  515. .time {
  516. color: #d0d0d0;
  517. font-size: 24rpx;
  518. }
  519. }
  520. .state {
  521. width: 130rpx;
  522. font-size: 28rpx;
  523. font-weight: normal;
  524. text-align: right;
  525. .status_1 {
  526. color: #999;
  527. }
  528. .status_9 {
  529. color: #36d6ff;
  530. }
  531. .status_2 {
  532. color: #fe2d56;
  533. }
  534. }
  535. }
  536. .content {
  537. width: 690rpx;
  538. font-weight: 400;
  539. font-size: 28rpx;
  540. color: #ffffff;
  541. text-align: left;
  542. font-style: normal;
  543. text-transform: none;
  544. padding: 20rpx 0;
  545. padding-left: 88rpx;
  546. }
  547. .photo_list {
  548. width: 690rpx;
  549. margin-bottom: 0rpx;
  550. padding-left: 88rpx;
  551. border-radius: 28rpx;
  552. font-size: 28rpx;
  553. display: flex;
  554. flex-direction: row;
  555. align-items: center;
  556. flex-wrap: wrap;
  557. .img {
  558. width: 186rpx;
  559. height: 186rpx;
  560. margin-bottom: 24rpx;
  561. margin-right: 12rpx;
  562. image {
  563. width: 186rpx;
  564. height: 186rpx;
  565. border-radius: 28rpx;
  566. border: solid 1px rgba(255, 255, 255, 0.2);
  567. }
  568. }
  569. .right {
  570. color: #fff;
  571. }
  572. }
  573. .desc {
  574. width: 690rpx;
  575. padding: 0rpx 0 0rpx;
  576. padding-left: 88rpx;
  577. font-weight: 400;
  578. font-size: 24rpx;
  579. color: #999999;
  580. line-height: 0rpx;
  581. text-align: left;
  582. font-style: normal;
  583. text-transform: none;
  584. display: flex;
  585. flex-direction: row;
  586. justify-content: space-between;
  587. align-items: center;
  588. image {
  589. width: 40rpx;
  590. height: 40rpx;
  591. }
  592. .addr {
  593. width: 200rpx;
  594. }
  595. .img {
  596. display: flex;
  597. flex-direction: row;
  598. justify-content: center;
  599. align-items: center;
  600. padding: 0 0rpx 0 30rpx;
  601. font-size: 28rpx;
  602. color: #fff;
  603. image {
  604. margin-top: -8rpx;
  605. }
  606. }
  607. }
  608. }
  609. .btn_submit {
  610. width: 336rpx;
  611. height: 100rpx;
  612. margin: 50rpx auto;
  613. background: linear-gradient(90deg, #ff536d 0%, #ff3b84 100%);
  614. border-radius: 50rpx 50rpx 50rpx 50rpx;
  615. display: flex;
  616. flex-direction: row;
  617. justify-content: center;
  618. align-items: center;
  619. font-weight: bold;
  620. font-size: 32rpx;
  621. color: #ffffff;
  622. image {
  623. width: 44rpx;
  624. height: 44rpx;
  625. margin-right: 8rpx;
  626. margin-top: 4rpx;
  627. }
  628. }
  629. .btn {
  630. text-align: center;
  631. color: #fff;
  632. padding: 20rpx;
  633. margin: 50rpx;
  634. border-radius: 20rpx;
  635. background-color: #2979ff;
  636. }
  637. .font-awesome-import {
  638. display: none;
  639. }
  640. .fa {
  641. font-family: "FontAwesome";
  642. margin-right: 6rpx;
  643. }
  644. // 评论区域样式
  645. .comment-section {
  646. background-color: #f8f8f8;
  647. padding: 30rpx 0;
  648. margin-top: 20rpx;
  649. border-radius: 30rpx 30rpx 0 0;
  650. .section-header {
  651. display: flex;
  652. align-items: center;
  653. padding: 0 30rpx 20rpx;
  654. border-bottom: 1rpx solid #eee;
  655. margin-bottom: 20rpx;
  656. .fa {
  657. font-size: 36rpx;
  658. color: #2979ff;
  659. }
  660. .section-title {
  661. font-size: 32rpx;
  662. font-weight: bold;
  663. margin: 0 10rpx;
  664. color: #333;
  665. }
  666. .comment-count {
  667. font-size: 28rpx;
  668. color: #999;
  669. }
  670. }
  671. .comment-button {
  672. display: flex;
  673. align-items: center;
  674. justify-content: center;
  675. width: 650rpx;
  676. height: 90rpx;
  677. background-color: #2979ff;
  678. color: #fff;
  679. border-radius: 45rpx;
  680. margin: 40rpx auto 20rpx;
  681. font-size: 30rpx;
  682. box-shadow: 0 4rpx 12rpx rgba(41, 121, 255, 0.3);
  683. transition: all 0.3s ease;
  684. .fa {
  685. margin-right: 10rpx;
  686. }
  687. &:active {
  688. transform: scale(0.97);
  689. background-color: #2567db;
  690. }
  691. }
  692. }
  693. /* 确保评论按钮样式 */
  694. .comment-button {
  695. display: flex;
  696. align-items: center;
  697. justify-content: center;
  698. width: 650rpx;
  699. height: 90rpx;
  700. background-color: #2979ff;
  701. color: #fff;
  702. border-radius: 45rpx;
  703. margin: 40rpx auto 20rpx;
  704. font-size: 30rpx;
  705. box-shadow: 0 4rpx 12rpx rgba(41, 121, 255, 0.3);
  706. }
  707. .comment-button .fa {
  708. margin-right: 10rpx;
  709. }
  710. .comment-button:active {
  711. opacity: 0.9;
  712. transform: scale(0.98);
  713. }
  714. .failureReason {
  715. padding: 40rpx;
  716. padding-top: 52tpx;
  717. background: #fff;
  718. width: 600rpx;
  719. min-height: 346rpx;
  720. border-radius: 28rpx;
  721. box-sizing: border-box;
  722. .title {
  723. font-family: PingFang SC, PingFang SC;
  724. font-weight: 400;
  725. font-size: 36rpx;
  726. color: #1f1f1f;
  727. text-align: center;
  728. margin-bottom: 24rpx;
  729. }
  730. .reviewContent {
  731. font-family: PingFang SC, PingFang SC;
  732. font-weight: 400;
  733. font-size: 28rpx;
  734. color: #1f1f1f;
  735. }
  736. .btn-box {
  737. background: #1f1f1f;
  738. color: #fff;
  739. margin: 0 auto;
  740. width: 244rpx;
  741. height: 72rpx;
  742. font-size: 32rpx;
  743. font-family: "PingFang SC-Bold";
  744. background: #1f1f1f;
  745. border-radius: 12rpx;
  746. display: flex;
  747. align-items: center;
  748. justify-content: center;
  749. margin-top: 54rpx;
  750. }
  751. }
  752. .topStatusBar {
  753. width: 100%;
  754. height: 48rpx;
  755. display: flex;
  756. align-items: center;
  757. justify-content: center;
  758. &.inProgress {
  759. background: #acf934;
  760. }
  761. &.fail {
  762. background: #fd3a3a;
  763. color: #fff;
  764. }
  765. }