index.module.less 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573
  1. .container {
  2. position: fixed;
  3. left: 0;
  4. top: 0;
  5. width: 100vw;
  6. height: 100vh;
  7. overflow: hidden;
  8. background: url('./image/bg.png') no-repeat center center / cover;
  9. display: flex;
  10. flex-direction: column;
  11. }
  12. .head {
  13. position: relative;
  14. display: flex;
  15. align-items: center;
  16. justify-content: space-between;
  17. padding: 19px 23px 8px 30px;
  18. transition: opacity 0.3s ease-in-out;
  19. .back {
  20. display: flex;
  21. align-items: center;
  22. img {
  23. width: 34px;
  24. height: 34px;
  25. display: block;
  26. }
  27. span {
  28. padding-left: 12px;
  29. font-weight: 500;
  30. font-size: 18px;
  31. color: #333333;
  32. }
  33. }
  34. }
  35. .downBtn {
  36. width: 84px;
  37. height: 29px;
  38. background: #f8f9fc;
  39. border-radius: 16px;
  40. border: none;
  41. padding: 0;
  42. display: flex;
  43. justify-content: center;
  44. align-items: center;
  45. &.activeBtn {
  46. .icon {
  47. color: var(--van-primary-color) !important;
  48. }
  49. :global {
  50. .van-button__text {
  51. color: var(--van-primary-color) !important;
  52. }
  53. }
  54. }
  55. :global {
  56. .van-button__content {
  57. width: 100%;
  58. }
  59. .van-button__text {
  60. width: 100%;
  61. height: 100%;
  62. display: flex;
  63. justify-content: center;
  64. align-items: center;
  65. font-size: 13px;
  66. color: #333;
  67. font-weight: 400;
  68. }
  69. }
  70. .icon {
  71. width: 8px;
  72. height: 5px;
  73. margin-left: 4px;
  74. transition: transform 0.2s ease;
  75. color: #AAAAAA;
  76. }
  77. .iconUp {
  78. color: var(--van-primary-color);
  79. transform: rotate(180deg);
  80. transition: transform 0.2s ease;
  81. }
  82. }
  83. .popover {
  84. width: 83px;
  85. border: none;
  86. :global {
  87. .van-popover__action {
  88. display: flex;
  89. justify-content: center;
  90. align-items: center;
  91. padding: 0;
  92. width: 100%;
  93. height: 36px;
  94. color: #999;
  95. font-size: 13px;
  96. }
  97. .van-popover__content {
  98. max-height: 70vh;
  99. overflow-x: hidden;
  100. overflow-y: auto;
  101. }
  102. }
  103. }
  104. .content {
  105. flex: 1;
  106. display: flex;
  107. height: calc(100% - 61px);
  108. &.courseDetails {
  109. .wrap {
  110. padding: 20px 20px 20px 0;
  111. }
  112. }
  113. .wrapRight {
  114. flex: 1;
  115. overflow-y: auto;
  116. overflow-x: hidden;
  117. display: flex;
  118. &::-webkit-scrollbar {
  119. display: none;
  120. }
  121. }
  122. .wrap {
  123. position: relative;
  124. width: 100%;
  125. padding: 20px 0 20px;
  126. &.emtpyWrap {
  127. width: 100%;
  128. }
  129. }
  130. .warpSection {
  131. display: flex;
  132. justify-content: center;
  133. position: relative;
  134. background: url('./image/table-left.png') no-repeat left 138px,
  135. url('./image/table-right.png') no-repeat right 138px;
  136. background-size: auto 26px, auto 26px;
  137. width: max-content;
  138. margin: 0 auto;
  139. padding: 0 20px 15px;
  140. &::after {
  141. content: '';
  142. position: absolute;
  143. width: 55%;
  144. background: url('./image/table-center.png') repeat-x center;
  145. background-size: contain;
  146. height: 26px;
  147. top: 138px;
  148. }
  149. }
  150. :global {
  151. .van-empty__description {
  152. font-size: 14px;
  153. color: #333;
  154. }
  155. .van-empty__image {
  156. width: 200px;
  157. height: 200px;
  158. }
  159. }
  160. }
  161. .wrapItem {
  162. position: relative;
  163. width: 138px;
  164. display: flex;
  165. flex-direction: column;
  166. align-items: center;
  167. padding: 0 18px;
  168. flex-shrink: 0;
  169. z-index: 1;
  170. .item {
  171. position: relative;
  172. margin-bottom: 28px;
  173. width: 100%;
  174. height: 150px;
  175. // background-color: #edeff2;
  176. background: linear-gradient(180deg, #fff4e8 0%, #fff0dc 100%);
  177. // box-shadow: 0 5px 14px rgba(0, 0, 0, 0.4);
  178. box-shadow: 0px 6px 5px 0px rgba(0, 0, 0, 0.24);
  179. img {
  180. position: absolute;
  181. }
  182. &::before {
  183. content: '';
  184. position: absolute;
  185. top: 4px;
  186. right: -4px;
  187. width: 4px;
  188. height: calc(100% - 8px);
  189. background-color: #c5c5c5;
  190. z-index: 1;
  191. }
  192. &::after {
  193. content: '';
  194. position: absolute;
  195. top: 2px;
  196. right: -2px;
  197. width: 4px;
  198. height: calc(100% - 4px);
  199. background-color: #e7e7e7;
  200. z-index: 2;
  201. }
  202. }
  203. .name {
  204. font-size: 12px;
  205. font-weight: 400;
  206. color: #333;
  207. line-height: 16px;
  208. text-align: center;
  209. }
  210. }
  211. .containerImg {
  212. position: relative;
  213. display: block;
  214. width: 100%;
  215. height: 170px;
  216. &::before {
  217. content: '';
  218. position: absolute;
  219. top: 4px;
  220. right: -4px;
  221. width: 4px;
  222. height: calc(100% - 8px);
  223. background-color: #c5c5c5;
  224. z-index: 1;
  225. }
  226. &::after {
  227. content: '';
  228. position: absolute;
  229. top: 2px;
  230. right: -2px;
  231. width: 4px;
  232. height: calc(100% - 4px);
  233. background-color: #e7e7e7;
  234. z-index: 2;
  235. }
  236. }
  237. .cover {
  238. position: relative;
  239. z-index: 3;
  240. display: block;
  241. width: 100%;
  242. height: 150px;
  243. background-color: #edeff2;
  244. background-image: url('./image/icon_default.svg');
  245. background-repeat: no-repeat;
  246. background-position: center center;
  247. &::after {
  248. content: '';
  249. position: absolute;
  250. top: 0;
  251. left: 0;
  252. width: 100%;
  253. height: 100%;
  254. z-index: 2;
  255. background-repeat: no-repeat;
  256. background-image: linear-gradient(
  257. to right,
  258. rgba(0, 0, 0, 0.2) 0,
  259. rgba(255, 255, 255, 0.08) 0%,
  260. transparent 0.5%
  261. ),
  262. linear-gradient(
  263. to right,
  264. rgba(0, 0, 0, 0.1) 0.3%,
  265. rgba(255, 255, 255, 0.09) 1.1%,
  266. transparent 1.3%
  267. );
  268. background-size: 50% 100%, 50% 100%;
  269. background-position: 0% top, 9% top;
  270. }
  271. :global {
  272. img {
  273. width: 100%;
  274. height: 100%;
  275. opacity: 0;
  276. transition: opacity 0.3s ease-in-out;
  277. }
  278. }
  279. &.loaded {
  280. img {
  281. opacity: 1;
  282. }
  283. }
  284. }
  285. .book {
  286. position: fixed;
  287. top: 50%;
  288. left: 50%;
  289. width: 55vw;
  290. transform: translate(-50%, -50%) scale(0);
  291. z-index: 20;
  292. background-color: #fff;
  293. transition: all 0.3s ease-in-out;
  294. visibility: hidden;
  295. pointer-events: none;
  296. border-radius: 8px;
  297. box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
  298. .bookWrap {
  299. height: 60vh;
  300. overflow-y: auto;
  301. ul {
  302. list-style: circle;
  303. padding: 10px 40px;
  304. }
  305. }
  306. &.show {
  307. visibility: visible;
  308. pointer-events: auto;
  309. transform: translate(-50%, -50%) scale(1);
  310. }
  311. }
  312. .wrapLeft {
  313. display: flex;
  314. align-items: center;
  315. }
  316. .courseWrapItem {
  317. width: 254px;
  318. // 154 + 120
  319. padding: 0 30px 0 70px;
  320. .item {
  321. height: 218px;
  322. margin-bottom: 21px;
  323. }
  324. .useTime {
  325. width: 80px;
  326. height: 59px;
  327. position: absolute;
  328. top: -5.5px;
  329. right: -4.5px;
  330. z-index: 9;
  331. }
  332. .cover {
  333. height: 218px;
  334. }
  335. }
  336. .popupContainer {
  337. background: #ffffff;
  338. border-radius: 12px;
  339. width: 298px;
  340. padding-top: 12px;
  341. .searchList {
  342. padding: 0 0px 0 11px;
  343. max-height: 58vh;
  344. overflow-x: hidden;
  345. overflow-y: auto;
  346. }
  347. .popoverTitle {
  348. display: flex;
  349. align-items: center;
  350. font-size: 14px;
  351. font-weight: 600;
  352. color: #333333;
  353. &::before {
  354. content: ' ';
  355. display: inline-block;
  356. width: 4px;
  357. height: 11px;
  358. background: #2aa4fe;
  359. border-radius: 2px;
  360. margin-right: 6px;
  361. }
  362. }
  363. .popupList {
  364. display: flex;
  365. flex-flow: wrap;
  366. justify-content: flex-start;
  367. // gap: 8px 9px;
  368. padding-top: 11px;
  369. padding-bottom: 14px;
  370. :global {
  371. .van-tag {
  372. padding: 7px 24px;
  373. height: 30px;
  374. font-size: 12px;
  375. background: #f6f6f6;
  376. border: none;
  377. color: #333333;
  378. margin-right: 8px;
  379. margin-bottom: 9px;
  380. }
  381. .van-tag--plain {
  382. background: rgba(42, 164, 254, 0.08);
  383. border: none;
  384. color: #2aa4fe;
  385. }
  386. }
  387. }
  388. .subjectItem {
  389. width: 31%;
  390. height: 30px;
  391. // line-height: 30px;
  392. text-align: center;
  393. background: #f6f6f6;
  394. border-radius: 50px;
  395. font-size: 13px;
  396. color: #333333;
  397. border: 1px solid #f6f6f6;
  398. margin-bottom: 12px;
  399. display: flex;
  400. align-items: center;
  401. justify-content: center;
  402. &:nth-child(3n + 2) {
  403. margin-left: 2.333%;
  404. margin-right: 2.333%;
  405. }
  406. // &:nth-child(3n + 3) {
  407. // margin-left: 2.333%;
  408. // }
  409. &.arrow::after {
  410. content: '';
  411. display: inline-block;
  412. margin-left: 3px;
  413. width: 0;
  414. height: 0;
  415. border-left: 4px solid transparent;
  416. border-right: 4px solid transparent;
  417. border-top: 4px solid transparent;
  418. border-bottom: 4px solid #777777;
  419. transform: translateY(3px) rotate(180deg);
  420. }
  421. &.active {
  422. border: 1px solid #1cacf1;
  423. background: #ebf8ff;
  424. color: #1cacf1;
  425. &::after {
  426. border-bottom: 4px solid #1cacf1;
  427. transform: translateY(-2px) rotate(0deg);
  428. }
  429. }
  430. }
  431. // .arrow::after {
  432. // content: '';
  433. // display: inline-block;
  434. // margin-left: 3px;
  435. // width: 0;
  436. // height: 0;
  437. // border-left: 4px solid transparent;
  438. // border-right: 4px solid transparent;
  439. // border-top: 4px solid transparent;
  440. // border-bottom: 4px solid #777777;
  441. // transform: translateY(3px) rotate(180deg);
  442. // }
  443. // &.active {
  444. // border: 1px solid #1CACF1;
  445. // background: #EBF8FF;
  446. // color: #1CACF1;
  447. // &::after {
  448. // border-bottom: 4px solid #1CACF1;
  449. // transform: translateY(-2px) rotate(0deg);
  450. // }
  451. // }
  452. .btnGroup {
  453. border: 1px solid #f2f2f2;
  454. padding: 16px 12px;
  455. display: flex;
  456. align-items: center;
  457. justify-content: space-between;
  458. :global {
  459. .van-button {
  460. font-size: 15px;
  461. color: #333333;
  462. line-height: 22px;
  463. padding: 0 48px;
  464. height: 37px;
  465. font-weight: 400;
  466. }
  467. }
  468. .btnSure {
  469. background: linear-gradient(135deg, #19f1e1 0%, #0094ff 100%),
  470. linear-gradient(73deg, #5becff 0%, #259cfe 100%);
  471. border: none;
  472. color: #fff;
  473. }
  474. }
  475. }
  476. @media screen and(max-width: 800px) {
  477. .content {
  478. .warpSection {
  479. background-position-y: 113px, 113px;
  480. &::after {
  481. top: 113px;
  482. }
  483. }
  484. }
  485. .wrapItem {
  486. width: 123px;
  487. .item {
  488. height: 123px;
  489. }
  490. .cover {
  491. height: 123px;
  492. }
  493. }
  494. .courseWrapItem {
  495. width: 184px;
  496. // 127 + 70
  497. padding: 0 20px 0 40px;
  498. .item {
  499. height: 179px;
  500. }
  501. .useTime {
  502. width: 65px;
  503. height: 48px;
  504. }
  505. .cover {
  506. height: 179px;
  507. }
  508. }
  509. }