common.scss 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886
  1. page {
  2. background: #F8F8F8;
  3. color: #111111;
  4. }
  5. view {
  6. font-size: 14px;
  7. line-height: inherit;
  8. }
  9. .main {
  10. padding: 32rpx;
  11. &.white{
  12. background: #fff;
  13. }
  14. }
  15. .search {
  16. margin-bottom: 20rpx;
  17. ::v-deep .uni-searchbar__box {
  18. border: 1px solid #6e6e6e;
  19. }
  20. &.with-button {
  21. display: flex;
  22. flex-direction: row;
  23. justify-content: space-between;
  24. align-items: center;
  25. margin-bottom: 0;
  26. ::v-deep {
  27. .uni-searchbar {
  28. width: 500rpx;
  29. }
  30. .u-button {
  31. border-radius: 40rpx;
  32. }
  33. }
  34. }
  35. }
  36. .text-center{
  37. text-align: center!important;
  38. }
  39. .category {
  40. display: flex;
  41. margin-top: 40rpx;
  42. margin-bottom: 38rpx;
  43. align-items: flex-end;
  44. &.sm{
  45. .name{
  46. font-size: 32rpx;
  47. }
  48. }
  49. .name {
  50. flex: 1;
  51. font-size: 36rpx;
  52. color: #111111;
  53. font-weight: 600;
  54. display: flex;
  55. }
  56. .more {
  57. font-size: 24rpx;
  58. color: #666666;
  59. }
  60. }
  61. .artifact-list {
  62. padding-bottom: 50rpx;
  63. display: flex;
  64. flex-wrap: wrap;
  65. justify-content: space-between;
  66. .item {
  67. margin-bottom: 36rpx;
  68. position: relative;
  69. overflow: hidden;
  70. width: calc(50% - 15rpx);
  71. .image-wrap {
  72. width: 330rpx;
  73. height: 330rpx;
  74. background-size: cover;
  75. background-position: center;
  76. border-radius: 20rpx;
  77. }
  78. .name {
  79. font-weight: 800;
  80. font-size: 30rpx;
  81. color: #333333;
  82. margin-top: 20rpx;
  83. width: 100%;
  84. text-align: center;
  85. height: 40rpx;
  86. overflow: hidden;
  87. text-overflow: ellipsis;
  88. white-space: nowrap;
  89. }
  90. }
  91. }
  92. .mask {
  93. position: absolute;
  94. left: 0;
  95. top: 0;
  96. width: 100%;
  97. height: 100%;
  98. background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
  99. display: flex;
  100. align-items: center;
  101. justify-content: center;
  102. .iconfont {
  103. font-size: 80rpx;
  104. color: #fff;
  105. position: absolute;
  106. }
  107. }
  108. .post-list {
  109. display: flex;
  110. flex-wrap: wrap;
  111. justify-content: space-between;
  112. .item {
  113. padding: 0;
  114. margin-bottom: 38rpx;
  115. background: #fff;
  116. border-radius: 20rpx 20rpx 0 0;
  117. overflow: hidden;
  118. width: calc(50% - 10rpx);
  119. &:active, &.pressed {
  120. background: #efefef;
  121. }
  122. .image-wrap {
  123. position: relative;
  124. width: 330rpx;
  125. height: 440rpx;
  126. background: #fff center;
  127. background-size: cover;
  128. .like {
  129. position: absolute;
  130. right: 24rpx;
  131. bottom: 20rpx;
  132. z-index: 99;
  133. color: #fff;
  134. font-size: 24rpx;
  135. &.liked{
  136. color: #FF8719;
  137. .iconfont {
  138. color: #FF8719;
  139. }
  140. }
  141. .iconfont {
  142. font-size: 26rpx;
  143. color: #fff;
  144. display: inline-block;
  145. margin-right: 6rpx;
  146. }
  147. }
  148. }
  149. .desc {
  150. margin: 20rpx 16rpx 30rpx;
  151. text-align: justify;
  152. font-size: 28rpx;
  153. color: #666666;
  154. line-height: 48rpx;
  155. }
  156. }
  157. }
  158. .banner {
  159. margin-top: 10rpx;
  160. .swiper {
  161. overflow: hidden;
  162. height: 246rpx;
  163. border-radius: 28rpx;
  164. .item {
  165. height: 100%;
  166. image {
  167. height: 100%;
  168. width: 100%;
  169. border-radius: 28rpx;
  170. display: block;
  171. }
  172. }
  173. }
  174. }
  175. .category-tag{
  176. font-size: 24rpx;
  177. color:#fff;
  178. margin-left: 10rpx;
  179. display: flex;
  180. align-items: flex-end;
  181. text{
  182. display: inline-block;
  183. background:#FF8719;
  184. padding:6rpx 10rpx;
  185. }
  186. .triangle{
  187. padding: 0;
  188. background:#FF8719;
  189. height:10rpx; // 增加高度
  190. width:24rpx; // 调整为正方形
  191. clip-path: polygon(0 100%, 100% 0, 100% 100%);
  192. }
  193. }
  194. /** 图文列表 水平 */
  195. .complex-list-horizontal-1 {
  196. &.lg{
  197. .item{
  198. image, .image-wrapper,.u-image{
  199. width: 262rpx;
  200. height: 286rpx;
  201. overflow: hidden;
  202. }
  203. .info{
  204. .name{
  205. margin-bottom: 10rpx;
  206. }
  207. .desc{
  208. line-height: 45rpx;
  209. }
  210. }
  211. }
  212. }
  213. .item {
  214. padding: 0;
  215. margin-bottom: 30rpx;
  216. background: #fff;
  217. display: flex;
  218. position: relative;
  219. border-radius: 20rpx;
  220. overflow: hidden;
  221. image,.image-wrapper,.u-image {
  222. display: block;
  223. border-radius: 20rpx;
  224. width: 170rpx;
  225. height: 190rpx;
  226. flex-shrink: 0;
  227. margin-right: 30rpx;
  228. overflow: hidden;
  229. background-color: #efefef;
  230. }
  231. .info {
  232. padding-right: 30rpx;
  233. .name {
  234. margin-top: 32rpx;
  235. font-size: 30rpx;
  236. color: #312520;
  237. font-weight: 600;
  238. margin-bottom: 16rpx;
  239. line-height: 48rpx;
  240. }
  241. .desc {
  242. text-align: justify;
  243. font-size: 28rpx;
  244. color: #666666;
  245. line-height: 48rpx;
  246. }
  247. }
  248. }
  249. }
  250. .complex-list-horizontal-2 {
  251. display: flex;
  252. flex-wrap: wrap;
  253. justify-content: space-between;
  254. .item {
  255. padding: 0;
  256. margin-bottom: 30rpx;
  257. background: #fff;
  258. display: flex;
  259. flex-direction: column;
  260. position: relative;
  261. border-radius: 20rpx;
  262. overflow: hidden;
  263. width: calc(50% - 15rpx);
  264. image,.image-wrapper,.u-image {
  265. display: block;
  266. border-radius: 20rpx;
  267. width: 100%;
  268. height: 300rpx;
  269. flex-shrink: 0;
  270. overflow: hidden;
  271. background-color: #efefef;
  272. }
  273. .desc {
  274. text-align: justify;
  275. font-size: 28rpx;
  276. color: #666666;
  277. line-height: 48rpx;
  278. padding: 10rpx 20rpx;
  279. }
  280. }
  281. }
  282. .ellipsis-1 {
  283. display: -webkit-box;
  284. -webkit-box-orient: vertical;
  285. -webkit-line-clamp: 1;
  286. overflow: hidden;
  287. text-overflow: ellipsis;
  288. }
  289. .ellipsis-2 {
  290. display: -webkit-box;
  291. -webkit-box-orient: vertical;
  292. -webkit-line-clamp: 2;
  293. overflow: hidden;
  294. text-overflow: ellipsis;
  295. }
  296. .ellipsis-4 {
  297. display: -webkit-box;
  298. -webkit-box-orient: vertical;
  299. -webkit-line-clamp: 4;
  300. overflow: hidden;
  301. text-overflow: ellipsis;
  302. }
  303. .entrance{
  304. background: #FFFFFF;
  305. padding:24rpx 38rpx;
  306. border-radius: 20rpx;
  307. margin-bottom: 42rpx;
  308. margin-top: 10rpx;
  309. display: flex;
  310. flex-wrap: nowrap;
  311. .item{
  312. text-align: center;
  313. width: 25%;
  314. image{
  315. width: 95rpx;
  316. height: 95rpx;
  317. }
  318. .title{
  319. font-weight: 600;
  320. font-size: 28rpx;
  321. color: #111111;
  322. margin-top: 12rpx;
  323. }
  324. }
  325. }
  326. .news-simple-list-with-stats {
  327. background: #fff;
  328. padding: 32rpx 32rpx 32rpx;
  329. margin: 0 -32rpx;
  330. .item {
  331. display: flex;
  332. align-items: center;
  333. margin-bottom: 50rpx;
  334. height: 130rpx;
  335. overflow: hidden;
  336. &:last-child{
  337. margin-bottom: 0;
  338. }
  339. image,.image-wrapper,.u-image {
  340. width: 230rpx;
  341. height: 130rpx;
  342. border-radius: 10rpx;
  343. margin-right: 20rpx;
  344. }
  345. .info {
  346. flex: 1;
  347. .title {
  348. font-size: 28rpx;
  349. color: #111111;
  350. line-height: 42rpx;
  351. margin-bottom: 20rpx;
  352. }
  353. .name {
  354. min-height: 76rpx;
  355. }
  356. .extra {
  357. display: flex;
  358. font-size: 24rpx;
  359. color: #999999;
  360. text.iconfont {
  361. margin-right: 4rpx;
  362. display: inline-block;
  363. &.icon-view{
  364. margin-left: 20rpx;
  365. }
  366. &.icon-fav{
  367. margin-left: 20rpx;
  368. }
  369. }
  370. }
  371. }
  372. }
  373. }
  374. ::v-deep .swiper .wx-swiper-dot {
  375. width: 16rpx;
  376. height: 16rpx;
  377. background: rgba(0,0,0,0.5);
  378. border: 4rpx solid #fff;
  379. border-radius: 50%;
  380. transition: all 0.3s ease;
  381. }
  382. ::v-deep .swiper .wx-swiper-dot-active {
  383. width: 44rpx;
  384. height: 16rpx;
  385. background: #FF8719;
  386. border-radius: 20rpx;
  387. border: 4rpx solid #FFFFFF;
  388. opacity: 1;
  389. }
  390. ::v-deep .swiper.right-indicator .wx-swiper-dots {
  391. left: inherit;
  392. right: -20rpx;
  393. }
  394. .compound-list.scene-list {
  395. .item {
  396. flex-direction: column;
  397. height: 370rpx;
  398. image{
  399. display: block;
  400. width: 100%;
  401. height:282rpx;
  402. }
  403. .info{
  404. display: flex;
  405. padding:20rpx;
  406. justify-content: center;
  407. .name{
  408. flex:1;
  409. margin-top: 6rpx;
  410. }
  411. .desc{
  412. color:#24515D;
  413. font-size: 24rpx;
  414. text.iconfont{
  415. font-size: 24rpx;
  416. color:#999999;
  417. display: inline-block;
  418. margin-left: 6rpx;
  419. }
  420. }
  421. }
  422. }
  423. }
  424. /**
  425. 上图下标题
  426. */
  427. .complex-list-vertical-1 {
  428. display: flex;
  429. justify-content: space-between;
  430. flex-wrap: wrap;
  431. .item {
  432. width: calc(50% - 15rpx);
  433. margin-bottom: 53rpx;
  434. position: relative;
  435. image {
  436. width: 100%;
  437. height: 360rpx;
  438. display: block;
  439. }
  440. .info {
  441. text-align: center;
  442. padding-top: 20rpx;
  443. font-weight: bold;
  444. font-size: 30rpx;
  445. color: #312520;
  446. }
  447. }
  448. }
  449. .complex-list-vertical-2{
  450. .item{
  451. margin-bottom: 35rpx;
  452. image{
  453. width: 687rpx;
  454. height: 287rpx;
  455. display: block;
  456. border-radius: 10rpx;
  457. }
  458. .info{
  459. background: #FFFFFF;
  460. display: flex;
  461. padding:24rpx 20rpx 29rpx;
  462. font-size: 24rpx;
  463. color: #24515D;
  464. align-items: center;
  465. .name{
  466. flex:1;
  467. font-weight: 600;
  468. font-size: 30rpx;
  469. color: #111111
  470. }
  471. text.iconfont{
  472. color:#999999;
  473. }
  474. }
  475. }
  476. }
  477. /**
  478. 图文横向滑动
  479. **/
  480. .complex-swiper {
  481. /* 小一号的尺寸 首页用 */
  482. &.sm{
  483. .swiper{
  484. height: 254rpx;
  485. }
  486. .item{
  487. height:100%;
  488. width: 425rpx;
  489. }
  490. .name{
  491. right:28rpx;
  492. bottom: 22rpx;
  493. }
  494. }
  495. &.lg{
  496. .swiper{
  497. height: 360rpx;
  498. .swiper-item {
  499. width: 580rpx;
  500. &.active {
  501. z-index: 10;
  502. .item {
  503. transform: scale(1);
  504. }
  505. }
  506. }
  507. .item{
  508. width: 580rpx;
  509. height: 360rpx;
  510. transform: scale(0.8);
  511. transition: transform 0.3s ease;
  512. position: relative;
  513. }
  514. }
  515. }
  516. .swiper {
  517. height: 300rpx;
  518. }
  519. .item {
  520. width: 514rpx;
  521. height: 300rpx;
  522. position: relative;
  523. border-radius: 20rpx;
  524. overflow: hidden;
  525. image {
  526. width: 100%;
  527. height: 100%;
  528. }
  529. .name {
  530. position: absolute;
  531. bottom: 14rpx;
  532. right: 22rpx;
  533. left: 22rpx;
  534. color: #fff;
  535. font-weight: 600;
  536. font-size: 28rpx;
  537. }
  538. }
  539. }
  540. .threeD {
  541. width: 36rpx;
  542. height: 36rpx;
  543. background: rgba(0, 0, 0, 0.57);
  544. border-radius: 50%;
  545. position: absolute;
  546. top: 15rpx;
  547. left: 205rpx;
  548. z-index: 99;
  549. text-align: center;
  550. text {
  551. color: #fff;
  552. font-size: 24rpx;
  553. }
  554. }
  555. page > view{
  556. padding-bottom: 120rpx;
  557. }
  558. .img-banner {
  559. height: 246rpx;
  560. width: 100%;
  561. border-radius: 20rpx;
  562. margin-bottom: 40rpx;
  563. overflow: hidden;
  564. image {
  565. height: 100%;
  566. width: 100%;
  567. }
  568. }
  569. .level-info {
  570. padding: 48rpx 36rpx 36rpx;
  571. background: #FFF2E6;
  572. border-radius: 20rpx;
  573. position: relative;
  574. margin-bottom: 40rpx;
  575. > view:first-child {
  576. margin-bottom: 44rpx;
  577. }
  578. .label {
  579. font-size: 28rpx;
  580. color: #111111;
  581. display: inline-block;
  582. }
  583. .value {
  584. font-weight: bold;
  585. font-size: 28rpx;
  586. display: inline-block;
  587. color: #333333;
  588. .em {
  589. font-family: Rockwell;
  590. font-weight: 600;
  591. font-size: 30rpx;
  592. color: #FF8719;
  593. display: inline-block;
  594. margin-left: 35rpx;
  595. }
  596. }
  597. .btn {
  598. position: absolute;
  599. top: 30rpx;
  600. right: 30rpx;
  601. border-radius: 10rpx;
  602. border: 1px solid #FF8719;
  603. padding: 15rpx 20rpx;
  604. display: flex;
  605. align-items: center;
  606. font-weight: 400;
  607. font-size: 28rpx;
  608. color: #FF8719;
  609. text.iconfont {
  610. display: inline-block;
  611. margin-right: 15rpx;
  612. font-size: 40rpx;
  613. }
  614. }
  615. }
  616. .task-list{
  617. .item{
  618. display: flex;
  619. align-items: center;
  620. background: #fff;
  621. margin-bottom: 36rpx;
  622. padding:39rpx 27rpx 38rpx;
  623. text.iconfont{
  624. width: 91rpx;
  625. height: 91rpx;
  626. border-radius: 50%;
  627. border: 1px solid #25515E;
  628. text-align: center;
  629. color: #25515E;
  630. font-size: 60rpx;
  631. line-height: 91rpx;
  632. display: inline-block;
  633. margin-right: 17rpx;
  634. }
  635. .btn{
  636. background: #FF8719;
  637. border-radius: 28rpx;
  638. color:#fff;
  639. font-size: 28rpx;
  640. padding:14rpx 38rpx;
  641. &.active{
  642. background: #EFEFEF;
  643. color:#999999;
  644. }
  645. }
  646. .info{
  647. flex:1;
  648. .title{
  649. font-weight: 600;
  650. font-size: 30rpx;
  651. color: #333333;
  652. margin-bottom: 22rpx;
  653. }
  654. .desc{
  655. font-weight: 400;
  656. font-size: 24rpx;
  657. color: #999999;
  658. }
  659. }
  660. }
  661. }
  662. .people-list{
  663. display: flex;
  664. justify-content: space-between;
  665. flex-wrap: wrap;
  666. .item{
  667. width: 214rpx;
  668. background: #fff;
  669. text-align: center;
  670. position: relative;
  671. margin-bottom: 24rpx;
  672. padding-top: 80rpx;
  673. padding-bottom: 40rpx;
  674. border-radius: 10rpx;
  675. image.avatar{
  676. width: 90rpx;
  677. height: 90rpx;
  678. border-radius: 50%;
  679. margin-bottom: 38rpx;
  680. }
  681. .name{
  682. font-weight: 800;
  683. font-size: 30rpx;
  684. color: #333333;
  685. margin-bottom: 20rpx;
  686. }
  687. .days{
  688. font-weight: 500;
  689. font-size: 24rpx;
  690. color: #999999;
  691. }
  692. .rank{
  693. position: absolute;
  694. top: 35rpx;
  695. left: 17rpx;
  696. font-size: 48rpx;
  697. line-height: 35rpx;
  698. color:#B6B6B6;
  699. font-style: italic;
  700. font-family: Rockwell;
  701. &.top{
  702. color: #FF8719;
  703. font-size: 60rpx;
  704. }
  705. .num-shadow{
  706. width: 45rpx;
  707. height: 45rpx;
  708. position: absolute;
  709. left: 30rpx;
  710. top: 0;
  711. }
  712. }
  713. }
  714. }
  715. button[type="primary"] {
  716. background: #FF8719;
  717. border-radius: 16rpx;
  718. font-size: 28rpx;
  719. padding: 8rpx;
  720. color: #FFFFFF;
  721. font-weight: 600;
  722. }
  723. .address-select {
  724. position: relative;
  725. width: 100%; // 添加宽度
  726. height: 100%;
  727. }
  728. .input-wrapper {
  729. width: 100%;
  730. height: 100%;
  731. pointer-events: none; /* 禁用内部元素的点击事件 */
  732. }
  733. .bottom-actions {
  734. position: fixed;
  735. bottom: 0;
  736. left: 0;
  737. right: 0;
  738. display: flex;
  739. align-items: center;
  740. justify-content: flex-end;
  741. width: 100%;
  742. height: 75rpx;
  743. background: #FFFFFF;
  744. .action {
  745. margin-left: 48rpx;
  746. font-weight: 800;
  747. font-size: 24rpx;
  748. color: #191919;
  749. display: flex;
  750. align-items: center;
  751. &:last-child {
  752. margin-right: 70rpx;
  753. }
  754. .iconfont {
  755. font-size: 30rpx;
  756. margin-right: 14rpx;
  757. }
  758. .iconfont.icon-liked {
  759. color: #FF8719;
  760. }
  761. }
  762. }
  763. .article {
  764. .title {
  765. font-weight: 800;
  766. font-size: 36rpx;
  767. color: #1E1E1E;
  768. line-height: 60rpx;
  769. margin-top: 10rpx;
  770. }
  771. .content {
  772. padding-bottom: 100rpx;
  773. }
  774. .info {
  775. display: flex;
  776. align-items: center;
  777. margin-top: 25rpx;
  778. margin-bottom: 45rpx;
  779. .author {
  780. font-size: 24rpx;
  781. color: #FF8719;
  782. margin-right: 16rpx;
  783. }
  784. .time {
  785. font-size: 24rpx;
  786. color: #999999;
  787. }
  788. }
  789. }
  790. .main-img{
  791. width: 100%;
  792. height: 394rpx;
  793. display: block;
  794. image{
  795. height: 100%;
  796. width: 100%;
  797. }
  798. }
  799. .article {
  800. .title {
  801. font-weight: 800;
  802. font-size: 36rpx;
  803. color: #1E1E1E;
  804. line-height: 60rpx;
  805. margin-top: 10rpx;
  806. }
  807. .content {
  808. padding-bottom: 100rpx;
  809. }
  810. .info {
  811. display: flex;
  812. align-items: center;
  813. margin-top: 25rpx;
  814. margin-bottom: 45rpx;
  815. .author {
  816. font-size: 24rpx;
  817. color: #FF8719;
  818. margin-right: 16rpx;
  819. }
  820. .time {
  821. font-size: 24rpx;
  822. color: #999999;
  823. }
  824. }
  825. }