articleDetail.scss 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825
  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: 60rpx;
  50. height: 60rpx;
  51. border-radius: 50%;
  52. margin-right: 10rpx;
  53. }
  54. .navbar-text {
  55. font-size: 28rpx;
  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: 48rpx;
  104. border-radius: 0 !important;
  105. .uv-swiper__wrapper__item__wrapper__image {
  106. width: 100%;
  107. border-radius: 0 !important;
  108. background-color: transparent !important;
  109. }
  110. .uv-swiper__indicator {
  111. position: absolute;
  112. bottom: 0;
  113. .uv-swiper-indicator__wrapper__dot {
  114. width: 10rpx;
  115. height: 10rpx;
  116. border-radius: 50%;
  117. background: #e1e1e1 !important;
  118. &.uv-swiper-indicator__wrapper__dot--active {
  119. background: #acf934 !important;
  120. }
  121. }
  122. }
  123. }
  124. // 评论区域样式
  125. .comment-section {
  126. background-color: #f8f8f8;
  127. padding: 30rpx 0;
  128. margin-top: 20rpx;
  129. border-radius: 30rpx 30rpx 0 0;
  130. .section-header {
  131. display: flex;
  132. align-items: center;
  133. padding: 0 30rpx 20rpx;
  134. border-bottom: 1rpx solid #eee;
  135. margin-bottom: 20rpx;
  136. .fa {
  137. font-size: 36rpx;
  138. color: #2979ff;
  139. }
  140. .section-title {
  141. font-size: 32rpx;
  142. font-weight: bold;
  143. margin: 0 10rpx;
  144. color: #333;
  145. }
  146. .comment-count {
  147. font-size: 28rpx;
  148. color: #999;
  149. }
  150. }
  151. .comment-button {
  152. display: flex;
  153. align-items: center;
  154. justify-content: center;
  155. width: 650rpx;
  156. height: 90rpx;
  157. background-color: #2979ff;
  158. color: #fff;
  159. border-radius: 45rpx;
  160. margin: 40rpx auto 20rpx;
  161. font-size: 30rpx;
  162. box-shadow: 0 4rpx 12rpx rgba(41, 121, 255, 0.3);
  163. transition: all 0.3s ease;
  164. .fa {
  165. margin-right: 10rpx;
  166. }
  167. &:active {
  168. transform: scale(0.97);
  169. background-color: #2567db;
  170. }
  171. }
  172. }
  173. /* 确保评论按钮样式 */
  174. .comment-button {
  175. display: flex;
  176. align-items: center;
  177. justify-content: center;
  178. width: 650rpx;
  179. height: 90rpx;
  180. background-color: #2979ff;
  181. color: #fff;
  182. border-radius: 45rpx;
  183. margin: 40rpx auto 20rpx;
  184. font-size: 30rpx;
  185. box-shadow: 0 4rpx 12rpx rgba(41, 121, 255, 0.3);
  186. }
  187. .header {
  188. display: flex;
  189. flex-direction: row;
  190. justify-content: flex-start;
  191. align-items: center;
  192. width: 750rpx;
  193. height: 320rpx;
  194. padding-top: calc(var(--status-bar-height) + 0rpx);
  195. .left {
  196. display: flex;
  197. flex-direction: row;
  198. width: 200rpx;
  199. height: 120rpx;
  200. justify-content: center;
  201. padding-left: 50rpx;
  202. image {
  203. width: 124rpx;
  204. height: 40rpx;
  205. }
  206. }
  207. }
  208. .body {
  209. width: 750rpx;
  210. border-radius: 40rpx 40rpx 0 0;
  211. display: flex;
  212. flex-direction: column;
  213. justify-content: flex-start;
  214. align-items: flex-start;
  215. position: relative;
  216. z-index: 10;
  217. .article-header {
  218. display: flex;
  219. flex-direction: column;
  220. justify-content: flex-start;
  221. align-items: flex-start;
  222. padding: 38rpx 32rpx 0 32rpx;
  223. width: 100%;
  224. box-sizing: border-box;
  225. .title {
  226. font-family: "PingFang SC-Bold";
  227. font-size: 400;
  228. color: #1f1f1f;
  229. font-size: 36rpx;
  230. }
  231. .article-content {
  232. width: 100%;
  233. padding-top: 12rpx;
  234. padding-bottom: 28rpx;
  235. .content {
  236. font-family: "PingFang SCMedium";
  237. font-size: 32rpx;
  238. font-weight: 400;
  239. }
  240. }
  241. .cardLink {
  242. min-width: 340rpx;
  243. max-width: 500rpx;
  244. height: 120rpx;
  245. border-radius: 12rpx;
  246. border: 4rpx solid #f2f6f2;
  247. padding: 10rpx;
  248. box-sizing: border-box;
  249. display: flex;
  250. flex-direction: flex-start;
  251. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  252. // box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
  253. &:active {
  254. transform: scale(0.98);
  255. box-shadow: 0 1rpx 4rpx rgba(0, 0, 0, 0.05);
  256. }
  257. image {
  258. width: auto;
  259. height: 100rpx;
  260. background: #f4f4f4;
  261. flex-grow: 0;
  262. border-radius: 12rpx;
  263. margin-right: 12rpx;
  264. transition: all 0.3s ease;
  265. }
  266. .content {
  267. height: 100%;
  268. display: flex;
  269. flex-direction: column;
  270. justify-content: space-between;
  271. transition: all 0.3s ease;
  272. .tit {
  273. font-family: "PingFang SC-Bold";
  274. font-weight: 400;
  275. font-size: 24rpx;
  276. transition: all 0.3s ease;
  277. color: 1f1f1f;
  278. }
  279. .tex {
  280. font-family: "PingFang SC-Medium";
  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. border-radius: 0;
  661. .section-header {
  662. display: flex;
  663. align-items: center;
  664. padding: 0 30rpx 20rpx;
  665. border-bottom: 1rpx solid #eee;
  666. margin-bottom: 20rpx;
  667. .fa {
  668. font-size: 36rpx;
  669. color: #2979ff;
  670. }
  671. .section-title {
  672. font-size: 32rpx;
  673. font-weight: bold;
  674. margin: 0 10rpx;
  675. color: #333;
  676. }
  677. .comment-count {
  678. font-size: 28rpx;
  679. color: #999;
  680. }
  681. }
  682. .comment-button {
  683. display: flex;
  684. align-items: center;
  685. justify-content: center;
  686. width: 650rpx;
  687. height: 90rpx;
  688. background-color: #2979ff;
  689. color: #fff;
  690. border-radius: 45rpx;
  691. margin: 40rpx auto 20rpx;
  692. font-size: 30rpx;
  693. box-shadow: 0 4rpx 12rpx rgba(41, 121, 255, 0.3);
  694. transition: all 0.3s ease;
  695. .fa {
  696. margin-right: 10rpx;
  697. }
  698. &:active {
  699. transform: scale(0.97);
  700. background-color: #2567db;
  701. }
  702. }
  703. }
  704. /* 确保评论按钮样式 */
  705. .comment-button {
  706. display: flex;
  707. align-items: center;
  708. justify-content: center;
  709. width: 650rpx;
  710. height: 90rpx;
  711. background-color: #2979ff;
  712. color: #fff;
  713. border-radius: 45rpx;
  714. margin: 40rpx auto 20rpx;
  715. font-size: 30rpx;
  716. box-shadow: 0 4rpx 12rpx rgba(41, 121, 255, 0.3);
  717. }
  718. .comment-button .fa {
  719. margin-right: 10rpx;
  720. }
  721. .comment-button:active {
  722. opacity: 0.9;
  723. transform: scale(0.98);
  724. }
  725. .failureReason {
  726. padding: 40rpx;
  727. padding-top: 52tpx;
  728. background: #fff;
  729. width: 600rpx;
  730. min-height: 346rpx;
  731. border-radius: 28rpx;
  732. box-sizing: border-box;
  733. .title {
  734. font-family: PingFang SC, PingFang SC;
  735. font-weight: 400;
  736. font-size: 36rpx;
  737. color: #1f1f1f;
  738. text-align: center;
  739. margin-bottom: 24rpx;
  740. }
  741. .reviewContent {
  742. font-family: PingFang SC, PingFang SC;
  743. font-weight: 400;
  744. font-size: 28rpx;
  745. color: #1f1f1f;
  746. }
  747. .btn-box {
  748. background: #1f1f1f;
  749. color: #fff;
  750. margin: 0 auto;
  751. width: 244rpx;
  752. height: 72rpx;
  753. font-size: 32rpx;
  754. font-family: "PingFang SC-Bold";
  755. background: #1f1f1f;
  756. border-radius: 12rpx;
  757. display: flex;
  758. align-items: center;
  759. justify-content: center;
  760. margin-top: 54rpx;
  761. }
  762. }
  763. .topStatusBar {
  764. width: 100%;
  765. height: 48rpx;
  766. display: flex;
  767. align-items: center;
  768. justify-content: center;
  769. &.inProgress {
  770. background: #acf934;
  771. }
  772. &.fail {
  773. background: #fd3a3a;
  774. color: #fff;
  775. }
  776. }