index.module.less 9.9 KB

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