list.scss 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  1. .consult-wrapper {
  2. width: 1000px;
  3. .consult-top {
  4. position: relative;
  5. width: 100%;
  6. height: auto;
  7. background: #ffffff;
  8. border-radius: 10px;
  9. .tabs {
  10. width: 100%;
  11. height: 50px;
  12. display: flex;
  13. align-items: center;
  14. border-bottom: 1px solid #f1f1f1;
  15. .tabs-item {
  16. position: relative;
  17. width: 108px;
  18. height: 50px;
  19. line-height: 50px;
  20. font-size: 16px;
  21. font-family: PingFangSC, PingFangSC-Regular;
  22. font-weight: 400;
  23. text-align: center;
  24. color: #666666;
  25. &.active {
  26. font-size: 15px;
  27. font-family: PingFangSC, PingFangSC-Semibold;
  28. font-weight: 600;
  29. color: #222222;
  30. &:after {
  31. position: absolute;
  32. content: " ";
  33. width: 15px;
  34. height: 3px;
  35. bottom: 1px;
  36. left: calc(50% - 7.5px);
  37. background: #308eff;
  38. border-radius: 2px;
  39. }
  40. }
  41. }
  42. .add-btn {
  43. position: absolute;
  44. right: 20px;
  45. width: 96px;
  46. height: 32px;
  47. padding: 0;
  48. border: none;
  49. background: #308eff;
  50. border-radius: 5px;
  51. font-size: 11px;
  52. font-family: PingFangSC, PingFangSC-Medium;
  53. font-weight: 500;
  54. text-align: center;
  55. color: #ffffff;
  56. }
  57. }
  58. }
  59. .consult-category-wrapper {
  60. width: 100%;
  61. height: auto;
  62. padding: 15px 20px;
  63. .category-title {
  64. width: 100%;
  65. line-height: 21px;
  66. padding-bottom: 7px;
  67. font-size: 15px;
  68. font-family: PingFangSC, PingFangSC-Semibold;
  69. font-weight: 600;
  70. color: #222222;
  71. }
  72. .category-one-wrapper {
  73. position: relative;
  74. height: 40px;
  75. width: 100%;
  76. padding-right: 60px;
  77. overflow: hidden;
  78. display: flex;
  79. flex-wrap: wrap;
  80. transition: all .3s;
  81. .category-more {
  82. position: absolute;
  83. height: 30px;
  84. line-height: 30px;
  85. margin-top: 10px;
  86. padding: 0 15px;
  87. right: 0;
  88. top: 0;
  89. font-size: 13px;
  90. color: #999999;
  91. cursor: pointer;
  92. }
  93. &.expand {
  94. height: auto !important;
  95. }
  96. .category-one-item {
  97. height: 30px;
  98. line-height: 30px;
  99. padding: 0 25px;
  100. margin-top: 10px;
  101. border-radius: 4px;
  102. font-size: 14px;
  103. font-family: PingFangSC, PingFangSC-Regular;
  104. font-weight: 400;
  105. text-align: center;
  106. color: #555555;
  107. cursor: pointer;
  108. &.active {
  109. line-height: 28px;
  110. font-family: PingFangSC, PingFangSC-Medium;
  111. font-weight: 500;
  112. color: #308eff;
  113. border: 1px solid #308eff;
  114. }
  115. &:hover {
  116. color: #308eff;
  117. }
  118. }
  119. }
  120. .category-two-wrapper {
  121. position: relative;
  122. margin-top: 16px;
  123. .category-two-content {
  124. position: relative;
  125. width: 830px;
  126. height: auto;
  127. padding: 5px 20px 10px;
  128. // margin-left: 80px;
  129. background: #f7f7f7;
  130. border-radius: 8px;
  131. display: flex;
  132. flex-wrap: wrap;
  133. .category-two-item {
  134. height: 30px;
  135. line-height: 30px;
  136. margin-top: 5px;
  137. padding: 0 15px;
  138. color: #555555;
  139. border-radius: 4px;
  140. font-size: 14px;
  141. cursor: pointer;
  142. &.active {
  143. color: #308eff;
  144. background: #dcefff;
  145. }
  146. &:hover {
  147. color: #308eff;
  148. }
  149. }
  150. }
  151. }
  152. }
  153. .consult-content {
  154. width: 100%;
  155. margin-top: 10px;
  156. padding: 12px 20px 36px;
  157. background: #ffffff;
  158. border-radius: 10px;
  159. .consult-list-wrapper {
  160. position: relative;
  161. width: 100%;
  162. display: flex;
  163. flex-wrap: wrap;
  164. .consult-item {
  165. position: relative;
  166. width: 310px;
  167. height: 270px;
  168. margin-right: 15px;
  169. margin-bottom: 15px;
  170. padding: 35px 10px 17px;
  171. background: #ffffff;
  172. border-radius: 10px;
  173. overflow: hidden;
  174. box-shadow: 0px 6px 16px 0px rgba(6,10,28,0.06);
  175. display: flex;
  176. flex-direction: column;
  177. // cursor: pointer;
  178. &:nth-of-type(3n) {
  179. margin-right: 0;
  180. }
  181. .owner-info {
  182. position: relative;
  183. width: 100%;
  184. height: 106px;
  185. display: flex;
  186. .avatar {
  187. flex-shrink: 0;
  188. width: 106px;
  189. height: 106px;
  190. border-radius: 8px;
  191. }
  192. .owner-content {
  193. position: relative;
  194. flex: 1;
  195. height: 100%;
  196. margin-left: 10px;
  197. overflow: hidden;
  198. .nickname {
  199. width: 100%;
  200. height: 26px;
  201. line-height: 26px;
  202. opacity: 1;
  203. font-size: 19px;
  204. font-family: PingFangSC, PingFangSC-Medium;
  205. font-weight: 500;
  206. color: #222222;
  207. overflow: hidden;
  208. text-overflow: ellipsis;
  209. white-space: nowrap;
  210. }
  211. .company {
  212. width: 100%;
  213. margin-top: 2px;
  214. line-height: 17px;
  215. font-size: 12px;
  216. font-family: PingFangSC, PingFangSC-Regular;
  217. font-weight: 400;
  218. color: #666666;
  219. overflow: hidden;
  220. text-overflow: ellipsis;
  221. display: -webkit-box;
  222. white-space: normal;
  223. -webkit-box-orient: vertical;
  224. -webkit-line-clamp: 2;
  225. }
  226. .price {
  227. position: absolute;
  228. left: 0;
  229. bottom: 0;
  230. height: 17px;
  231. line-height: 17px;
  232. font-size: 16px;
  233. font-family: PingFangSC, PingFangSC-Semibold;
  234. font-weight: 600;
  235. color: #ff6600;
  236. span {
  237. margin-left: 2px;
  238. font-size: 12px;
  239. font-family: PingFangSC, PingFangSC-Regular;
  240. font-weight: 400;
  241. color: #666666;
  242. }
  243. }
  244. }
  245. }
  246. .consult-info {
  247. width: 100%;
  248. max-height: 47px;
  249. margin-top: 24px;
  250. overflow: hidden;
  251. .consult-info-item {
  252. width: 100%;
  253. height: 20px;
  254. line-height: 20px;
  255. margin-bottom: 7px;
  256. font-size: 14px;
  257. font-family: PingFangSC, PingFangSC-Regular;
  258. font-weight: 400;
  259. color: #333333;
  260. overflow: hidden;
  261. text-overflow: ellipsis;
  262. white-space: nowrap;
  263. &:nth-last-child(1) {
  264. margin-bottom: 0;
  265. }
  266. }
  267. }
  268. .stats-info {
  269. position: absolute;
  270. bottom: 17px;
  271. left: 10px;
  272. display: flex;
  273. align-items: center;
  274. height: 17px;
  275. line-height: 17px;
  276. font-size: 14px;
  277. font-family: PingFangSC, PingFangSC-Regular;
  278. color: #999999;
  279. .num, .rate {
  280. color: #308eff;
  281. }
  282. .line {
  283. width: 1px;
  284. height: 13px;
  285. margin: 0 15px;
  286. background: rgba(151,151,151,0.6);
  287. }
  288. }
  289. }
  290. }
  291. .pagination-wrapper {
  292. width: 100%;
  293. height: 30px;
  294. margin-top: 25px;
  295. display: flex;
  296. align-items: center;
  297. justify-content: center;
  298. }
  299. }
  300. }
  301. .mobileMain {
  302. width: 100%;
  303. margin: 0;
  304. }
  305. .consult-wrapper-mobile {
  306. position: relative;
  307. width: 100%;
  308. // min-height: 100vh;
  309. display: flex;
  310. flex-direction: column;
  311. .consult-category {
  312. position: fixed;
  313. width: 100%;
  314. height: 87px;
  315. z-index: 11;
  316. .consult-category-one {
  317. position: relative;
  318. width: 100%;
  319. height: 45px;
  320. background: #ffffff;
  321. overflow: hidden;
  322. .category-scroller {
  323. width: calc(100% - 64px);
  324. overflow-x: scroll;
  325. overflow-y: hidden;
  326. -webkit-overflow-scrolling: touch;
  327. display: flex;
  328. &::-webkit-scrollbar {
  329. display: none;
  330. }
  331. }
  332. .consult-category-one-item {
  333. position: relative;
  334. flex-shrink: 0;
  335. width: 76px;
  336. height: 45px;
  337. line-height: 45px;
  338. font-size: 16px;
  339. font-family: PingFangSC, PingFangSC-Regular;
  340. font-weight: 400;
  341. color: #666666;
  342. font-size: 15px;
  343. text-align: center;
  344. &.active {
  345. font-family: PingFangSC, PingFangSC-Semibold;
  346. font-weight: 600;
  347. color: #222222;
  348. &:after {
  349. position: absolute;
  350. content: " ";
  351. bottom: 0;
  352. left: calc(50% - 7.5px);
  353. width: 15px;
  354. height: 3px;
  355. background: #308eff;
  356. border-radius: 2px;
  357. }
  358. }
  359. }
  360. .filter-wrapper {
  361. position: absolute;
  362. top: 0;
  363. right: 0;
  364. width: 64px;
  365. height: 45px;
  366. display: flex;
  367. align-items: center;
  368. justify-content: center;
  369. z-index: 12;
  370. background: #ffffff;
  371. img {
  372. width: 24px;
  373. height: 24px;
  374. }
  375. }
  376. .filter-bg {
  377. position: absolute;
  378. width: 11px;
  379. height: 29px;
  380. right: 59px;
  381. top: 8px;
  382. opacity: 0.1;
  383. background: #000000;
  384. border-radius: 6px;
  385. filter: blur(4px);
  386. z-index: 11;
  387. }
  388. }
  389. .consult-category-two {
  390. position: relative;
  391. width: 100%;
  392. height: 42px;
  393. background: #ffffff;
  394. .consult-category-two-wrapper {
  395. position: relative;
  396. width: 100%;
  397. height: 42px;
  398. padding: 0 20px;
  399. overflow-x: scroll;
  400. overflow-y: hidden;
  401. -webkit-overflow-scrolling: touch;
  402. display: flex;
  403. &::-webkit-scrollbar {
  404. display: none;
  405. }
  406. .consult-category-two-item {
  407. position: relative;
  408. flex-shrink: 0;
  409. height: 42px;
  410. line-height: 42px;
  411. margin-right: 20px;
  412. font-size: 14px;
  413. font-family: PingFangSC, PingFangSC-Regular;
  414. font-weight: 400;
  415. color: #666666;
  416. &:last-child {
  417. margin-right: 0;
  418. }
  419. &.active {
  420. color: #308eff;
  421. }
  422. }
  423. }
  424. }
  425. }
  426. .consult-list {
  427. width: 100%;
  428. height: 100vh;
  429. padding-top: 87px;
  430. padding-bottom: 34px;
  431. overflow-x: hidden;
  432. overflow-y: auto;
  433. -webkit-overflow-scrolling: touch;
  434. display: flex;
  435. flex-direction: column;
  436. align-items: center;
  437. .consult-list-wrapper {
  438. width: 100%;
  439. height: auto;
  440. overflow: visible;
  441. .consult-item {
  442. position: relative;
  443. width: calc(100% - 20px);
  444. height: 210px;
  445. padding: 13px 10px 16px;
  446. margin: 10px auto 0;
  447. background: #ffffff;
  448. overflow: hidden;
  449. border-radius: 10px;
  450. box-shadow: 0px 6px 16px 0px rgba(6,10,28,0.06);
  451. display: flex;
  452. flex-direction: column;
  453. .owner-content {
  454. width: 100%;
  455. height: 90px;
  456. display: flex;
  457. .avatar {
  458. flex-shrink: 0;
  459. width: 90px;
  460. height: 90px;
  461. border-radius: 6px;
  462. }
  463. .owner-info {
  464. margin-left: 11px;
  465. flex: 1;
  466. .nickname {
  467. width: 100%;
  468. height: 25px;
  469. line-height: 25px;
  470. font-size: 18px;
  471. font-family: PingFangSC, PingFangSC-Semibold;
  472. font-weight: 600;
  473. color: #222222;
  474. overflow: hidden;
  475. text-overflow: ellipsis;
  476. white-space: nowrap;
  477. }
  478. .company {
  479. width: 100%;
  480. height: 16px;
  481. line-height: 16px;
  482. margin-top: 2px;
  483. font-size: 11px;
  484. font-family: PingFangSC, PingFangSC-Regular;
  485. font-weight: 400;
  486. color: #999999;
  487. overflow: hidden;
  488. text-overflow: ellipsis;
  489. white-space: nowrap;
  490. }
  491. .price {
  492. height: 18px;
  493. line-height: 18px;
  494. margin-top: 6px;
  495. font-size: 14px;
  496. font-family: PingFangSC, PingFangSC-Semibold;
  497. font-weight: 600;
  498. color: #ff6600;
  499. span {
  500. margin-left: 2px;
  501. line-height: 18px;
  502. font-size: 12px;
  503. font-family: PingFangSC, PingFangSC-Regular;
  504. font-weight: 400;
  505. color: #999999;
  506. }
  507. }
  508. }
  509. }
  510. .consult-info {
  511. width: 100%;
  512. max-height: 43px;
  513. margin-top: 16px;
  514. overflow: hidden;
  515. .consult-info-item {
  516. width: 100%;
  517. height: 18px;
  518. line-height: 18px;
  519. margin-bottom: 7px;
  520. font-size: 13px;
  521. font-family: PingFangSC, PingFangSC-Medium;
  522. font-weight: 500;
  523. color: #333333;
  524. overflow: hidden;
  525. text-overflow: ellipsis;
  526. white-space: nowrap;
  527. &:nth-last-child(1) {
  528. margin-bottom: 0;
  529. }
  530. }
  531. }
  532. .stats-info {
  533. position: absolute;
  534. bottom: 16px;
  535. left: 10px;
  536. display: flex;
  537. align-items: center;
  538. height: 17px;
  539. line-height: 17px;
  540. font-size: 12px;
  541. font-family: PingFangSC, PingFangSC-Regular;
  542. color: #999999;
  543. .num, .rate {
  544. color: #308eff;
  545. }
  546. .line {
  547. width: 1px;
  548. height: 13px;
  549. margin: 0 15px;
  550. background: rgba(151,151,151,0.6);
  551. }
  552. }
  553. }
  554. }
  555. .consult-list-tips {
  556. margin-top: 16px;
  557. width: 100%;
  558. text-align: center;
  559. }
  560. }
  561. .consult-list__showWxHeader {
  562. height: calc(100vh - 64px);
  563. }
  564. }