list.scss 29 KB

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