list.scss 18 KB

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