articleDetail.scss 16 KB

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