index.module.less 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693
  1. .trainTool {
  2. .theSticky {
  3. :global {
  4. .van-sticky {
  5. background: url('./images/music-bg.png') no-repeat top center;
  6. background-size: 100% 365px;
  7. }
  8. }
  9. }
  10. :global {
  11. input,
  12. textarea {
  13. caret-color: #FE2451 !important;
  14. }
  15. // 选择框
  16. // 上拉选择 - ✅
  17. // 选择器 - ✅
  18. .van-picker {
  19. --van-picker-toolbar-height: 44px !important;
  20. --k-font-primary: #fe2451;
  21. --k-bg-4: #f2f2f2;
  22. --k-gray-1: #333333;
  23. --k-gray-2: #666666;
  24. --k-gray-3: #777777;
  25. .van-picker__toolbar {
  26. position: relative;
  27. &::after {
  28. position: absolute;
  29. box-sizing: border-box;
  30. content: ' ';
  31. pointer-events: none;
  32. right: var(--van-padding-md);
  33. bottom: 0;
  34. left: var(--van-padding-md);
  35. border-bottom: 1px solid var(--van-cell-border-color);
  36. transform: scaleY(0.5);
  37. }
  38. }
  39. .van-picker__columns {
  40. padding: 0 24px;
  41. }
  42. .van-picker-column {
  43. position: relative;
  44. z-index: 1;
  45. }
  46. .van-picker__frame {
  47. z-index: 0;
  48. &::after {
  49. background: var(--k-bg-4);
  50. border-radius: 8px;
  51. }
  52. }
  53. .van-picker__cancel,
  54. .van-picker__confirm {
  55. font-size: 15px;
  56. }
  57. .van-picker__cancel {
  58. color: var(--k-gray-3);
  59. }
  60. .van-picker__confirm {
  61. color: var(--k-font-primary);
  62. }
  63. .van-picker-column__item {
  64. color: var(--k-gray-1);
  65. font-size: 16px;
  66. }
  67. .van-picker-column__item--selected {
  68. font-weight: 600;
  69. }
  70. }
  71. }
  72. }
  73. .musicContent {
  74. position: fixed;
  75. top: 0;
  76. height: 365px;
  77. width: 100%;
  78. padding-top: 55px;
  79. z-index: 10;
  80. // background-color: rgba(0, 0, 0, 0.2);
  81. // backdrop-filter: blur(20px);
  82. // -webkit-backdrop-filter: blur(20px);
  83. // background: linear-gradient(270deg, #F5E6B4 0%, #F7A699 100%), linear-gradient(180deg, rgba(246, 246, 246, 0) 0%, #F6F6F6 100%);
  84. background: url('./images/music-bg.png') no-repeat top center;
  85. background-size: cover;
  86. }
  87. .changeSubjectSection {
  88. display: inline-flex;
  89. align-items: center;
  90. justify-content: center;
  91. border: 1px solid rgba(254, 36, 81, 0.5);
  92. border-radius: 100px;
  93. padding: 3px 8px 2px;
  94. .subjectName {
  95. font-weight: 400;
  96. font-size: 14px;
  97. color: #fe2451;
  98. line-height: 20px;
  99. padding-right: 4px;
  100. max-width: 60px;
  101. overflow: hidden;
  102. text-overflow: ellipsis;
  103. white-space: nowrap;
  104. }
  105. img {
  106. width: 9px;
  107. height: 5px;
  108. transition: 0.2s ease;
  109. &.active {
  110. transform: rotate(180deg);
  111. transition: 0.2s ease;
  112. }
  113. }
  114. }
  115. .bgImg {
  116. position: absolute;
  117. left: 0;
  118. top: 0;
  119. width: 100%;
  120. height: 265px;
  121. object-fit: cover;
  122. filter: blur(20px);
  123. backdrop-filter: blur(22px);
  124. -webkit-backdrop-filter: blur(20px);
  125. }
  126. .bg {
  127. position: relative;
  128. height: 100%;
  129. padding: 16px 0 0;
  130. z-index: 11;
  131. }
  132. .alumWrap {
  133. position: relative;
  134. // display: flex;
  135. // align-items: center;
  136. // flex-direction: column;
  137. // margin-bottom: 76px;
  138. .singleAlbum {
  139. display: flex;
  140. align-items: center;
  141. justify-content: center;
  142. padding-bottom: 2px;
  143. min-height: 130px;
  144. }
  145. :global {
  146. .swiper {
  147. --swiper-theme-color: #fe2451 !important;
  148. --swiper-pagination-bottom: 0px !important;
  149. --swiper-pagination-bullet-size: 6px !important;
  150. padding-bottom: 15px;
  151. min-height: 130px;
  152. }
  153. .swiper-pagination-bullet {
  154. background-color: #fff;
  155. opacity: 1;
  156. }
  157. .swiper-pagination-bullet-active {
  158. background-color: #fe2451;
  159. }
  160. .swiper-container {
  161. width: 100%;
  162. height: 100%;
  163. }
  164. .swiper-slide {
  165. text-align: center;
  166. font-size: 18px;
  167. // background: #fff;
  168. display: -webkit-box;
  169. display: -ms-flexbox;
  170. display: -webkit-flex;
  171. display: flex;
  172. -webkit-box-pack: center;
  173. -ms-flex-pack: center;
  174. -webkit-justify-content: center;
  175. justify-content: center;
  176. -webkit-box-align: center;
  177. -ms-flex-align: center;
  178. -webkit-align-items: center;
  179. align-items: center;
  180. transition: 300ms;
  181. transform: scale(0.8) !important;
  182. width: 53%;
  183. }
  184. .swiper-slide-active,
  185. .swiper-slide-duplicate-active {
  186. transform: scale(1) !important;
  187. }
  188. }
  189. .quota {
  190. position: absolute;
  191. right: 0;
  192. top: 0;
  193. z-index: 11;
  194. font-size: 12px;
  195. font-weight: 500;
  196. color: #ffffff;
  197. background: linear-gradient(270deg, #ff7b57 0%, #ff3460 100%);
  198. border-radius: 0px 0px 0px 6px;
  199. padding: 3px 6px 2px;
  200. }
  201. .img {
  202. margin-bottom: 10px;
  203. position: relative;
  204. width: 130px;
  205. height: 130px;
  206. flex-shrink: 0;
  207. border-radius: 6px;
  208. position: relative;
  209. z-index: 9;
  210. --van-image-error-icon-size: 130px;
  211. &::after {
  212. content: '';
  213. position: absolute;
  214. bottom: -4px;
  215. left: -9px;
  216. width: 148px;
  217. height: 10px;
  218. background: url('./images/botom-shdow.png') no-repeat center;
  219. background-size: contain;
  220. z-index: 1;
  221. }
  222. :global {
  223. .van-image {
  224. position: relative;
  225. z-index: 2;
  226. &::before {
  227. content: '';
  228. position: absolute;
  229. left: 0;
  230. top: 0;
  231. bottom: 0;
  232. width: 9px;
  233. background: linear-gradient(
  234. 270deg,
  235. rgba(0, 0, 0, 0.18) 0%,
  236. rgba(255, 255, 255, 0) 100%
  237. );
  238. }
  239. }
  240. }
  241. }
  242. .iconPian {
  243. position: absolute;
  244. right: -22px;
  245. top: 8px;
  246. z-index: -1;
  247. width: 110px;
  248. height: 110px;
  249. display: flex;
  250. align-items: center;
  251. justify-content: center;
  252. background: url('./images/icon-pian.png') no-repeat center;
  253. background-size: contain;
  254. // :global {
  255. // .van-image {
  256. // width: 60px !important;
  257. // height: 60px !important;
  258. // border-radius: 50%;
  259. // overflow: hidden;
  260. // }
  261. // }
  262. }
  263. .numContent {
  264. position: absolute;
  265. right: 4px;
  266. bottom: 4px;
  267. display: flex;
  268. align-items: center;
  269. background: rgba(255, 255, 255, 0.8);
  270. border-radius: 4px;
  271. font-size: 12px;
  272. font-weight: 500;
  273. color: #000000;
  274. padding: 2px 3px;
  275. .iconMenu {
  276. margin-top: -2px;
  277. width: 10px;
  278. height: 12px;
  279. margin-right: 4px;
  280. }
  281. }
  282. .alumTitle {
  283. padding: 0 20px;
  284. padding-bottom: 8px;
  285. font-size: 16px;
  286. font-weight: 600;
  287. color: #000000;
  288. line-height: 24px;
  289. }
  290. .alumDes {
  291. width: 100%;
  292. padding-top: 10px;
  293. padding-bottom: 12px;
  294. text-align: center;
  295. min-height: 64px;
  296. .des {
  297. padding: 0 16px;
  298. font-size: 12px;
  299. color: #777;
  300. line-height: 20px;
  301. }
  302. }
  303. }
  304. .albumPriceGroup {
  305. margin: 0 13px 12px;
  306. height: 36px;
  307. background: url('./images/tip_bg.png') no-repeat center;
  308. background-size: cover;
  309. display: flex;
  310. align-items: center;
  311. justify-content: space-between;
  312. font-size: 13px;
  313. padding: 0 12px;
  314. .albumTimer {
  315. display: flex;
  316. align-items: center;
  317. font-weight: 500;
  318. color: #5e3314;
  319. line-height: 1;
  320. }
  321. .iconTimer {
  322. width: 16px;
  323. height: 16px;
  324. margin-right: 6px;
  325. }
  326. .originPrice {
  327. font-weight: 500;
  328. color: rgba(38, 38, 38, 0.4);
  329. line-height: 18px;
  330. }
  331. .currentPrice {
  332. padding: 3px 7px;
  333. border-radius: 20px;
  334. background: #262626;
  335. margin-left: 6px;
  336. display: inline-block;
  337. span {
  338. font-weight: 500;
  339. color: #ffe1ae;
  340. line-height: 18px;
  341. background: linear-gradient(180deg, #ffffff 0%, #ffc76c 100%);
  342. -webkit-background-clip: text;
  343. -webkit-text-fill-color: transparent;
  344. }
  345. }
  346. }
  347. :global {
  348. .van-dropdown-menu__bar {
  349. background-color: transparent !important;
  350. box-shadow: none !important;
  351. padding-right: 15px !important;
  352. padding-bottom: 10px !important;
  353. height: 36px !important;
  354. }
  355. .van-dropdown-menu__title {
  356. padding-left: 0 !important;
  357. color: #131415 !important;
  358. &:after {
  359. border-color: transparent transparent rgba(0, 0, 0, 0.4)
  360. rgba(0, 0, 0, 0.4) !important;
  361. }
  362. &.van-dropdown-menu__title--active {
  363. color: #fe2451 !important;
  364. &:after {
  365. border-color: transparent transparent #fe2451 #fe2451;
  366. }
  367. }
  368. }
  369. .van-dropdown-item__content {
  370. border-radius: 0px 0px 16px 16px;
  371. }
  372. .van-dropdown-item__option {
  373. padding: 0 13px !important;
  374. // line-height: 50px;
  375. line-height: auto;
  376. .van-cell__title {
  377. text-align: center;
  378. padding: 0;
  379. color: #333333;
  380. font-size: 16px;
  381. line-height: 50px !important;
  382. // height: 50px;
  383. // display: flex;
  384. // align-items: center;
  385. // justify-content: center;
  386. }
  387. .van-cell__value {
  388. display: none;
  389. }
  390. &::after {
  391. display: none;
  392. }
  393. &:last-child {
  394. padding-bottom: 12px;
  395. }
  396. &:first-child {
  397. padding-top: 12px;
  398. }
  399. }
  400. .van-dropdown-item__option--active {
  401. .van-cell__title {
  402. font-weight: 600;
  403. color: #FE2451;
  404. text-align: center;
  405. background: rgba(254, 36, 81, 0.08);
  406. border-radius: 10px;
  407. }
  408. }
  409. }
  410. .musicList {
  411. position: relative;
  412. z-index: 12;
  413. background-color: #fff;
  414. border-radius: 16px;
  415. min-height: calc(
  416. 100vh - var(--header-height) - var(--bottom-train-tool-height, 0px) + 1px
  417. );
  418. --van-cell-background-color: transparent;
  419. --van-cell-font-size: 16px;
  420. --van-cell-text-color: #333;
  421. --van-cell-value-color: #999;
  422. --van-cell-icon-size: 10px;
  423. :global {
  424. .van-tabs {
  425. padding-bottom: 16px;
  426. }
  427. .van-tabs__nav {
  428. padding-left: 6px;
  429. padding-right: 6px;
  430. }
  431. .van-tab {
  432. font-size: 16px !important;
  433. margin-top: 15px;
  434. color: #999999;
  435. }
  436. .van-tab--active {
  437. font-size: 16px !important;
  438. color: #131415;
  439. font-weight: 600;
  440. }
  441. .van-tabs__line {
  442. width: 24px;
  443. height: 4px;
  444. background: linear-gradient(
  445. 90deg,
  446. #ff3c5e 0%,
  447. rgba(255, 118, 155, 0.5) 100%
  448. ) !important;
  449. border-radius: 36px 36px 0px 0px;
  450. }
  451. .van-tab--shrink {
  452. padding: 0 14px 0 14px;
  453. }
  454. .van-button--plain.van-button--primary {
  455. background-color: transparent;
  456. }
  457. .van-sticky--fixed {
  458. border-radius: 16px 16px 0 0;
  459. }
  460. .van-sticky--fixed .van-tabs {
  461. background-color: #fff;
  462. }
  463. .van-search {
  464. padding-top: 0;
  465. padding-bottom: 10px;
  466. background-color: #fff !important;
  467. align-items: flex-start;
  468. }
  469. .van-search__content {
  470. background-color: #f6f6f6 !important;
  471. margin-bottom: 10px !important;
  472. }
  473. }
  474. .alumnList {
  475. padding: 0 15px;
  476. &.alumnListCourseware {
  477. padding: 0 3px 3px;
  478. }
  479. :global {
  480. .van-empty {
  481. margin-top: -24px;
  482. }
  483. .songItem {
  484. &:first-child {
  485. padding-top: 0;
  486. }
  487. }
  488. .courseItem:nth-child(1) {
  489. margin-top: 0 !important;
  490. }
  491. .courseItem:nth-child(2) {
  492. margin-top: 0 !important;
  493. }
  494. .courseItem:nth-child(3) {
  495. margin-top: 0 !important;
  496. }
  497. }
  498. }
  499. }
  500. .searchResult {
  501. padding: 16px 13px 12px;
  502. overflow: hidden;
  503. margin-bottom: 20px;
  504. border-bottom: 1px solid #f2f2f2;
  505. .searchTitle {
  506. font-size: 15px;
  507. color: #333333;
  508. font-weight: 600;
  509. line-height: 22px;
  510. }
  511. }
  512. .resetting {
  513. color: #FE2451 !important;
  514. border-color: #FE2451 !important;
  515. &::before {
  516. border-color: #FE2451 !important;
  517. }
  518. }
  519. .radio-group {
  520. display: flex;
  521. margin-top: 12px;
  522. margin-bottom: 7px;
  523. flex-wrap: wrap;
  524. .radio:first-child {
  525. :global {
  526. .van-radio__label {
  527. margin-left: 0;
  528. }
  529. }
  530. }
  531. }
  532. .radio {
  533. :global {
  534. .van-radio__icon {
  535. display: none;
  536. }
  537. .van-tag--large {
  538. width: 100px;
  539. height: 34px;
  540. font-size: 13px;
  541. text-align: center;
  542. display: flex;
  543. align-items: center;
  544. justify-content: center;
  545. }
  546. .van-tag {
  547. box-sizing: border-box;
  548. width: 31% !important;
  549. }
  550. .van-tag--default {
  551. color: #333333;
  552. background: #f6f6f6;
  553. }
  554. .van-tag--primary {
  555. background: #fff3f5;
  556. border-color: #FE2451 !important;
  557. color: #FE2451 !important;
  558. &::before {
  559. border-color: #FE2451 !important;
  560. }
  561. }
  562. }
  563. }
  564. .organ-radio {
  565. :global {
  566. .van-tag--large {
  567. width: auto;
  568. padding: 0 2px;
  569. margin-bottom: 8px;
  570. margin-right: 8px;
  571. font-size: 14px;
  572. }
  573. }
  574. }
  575. .btnGroup {
  576. // border-top: 1px solid #f2f2f2;
  577. // background-color: #fff;
  578. // padding-top: 12px;
  579. // padding-left: 25px;
  580. // padding-right: 25px;
  581. // // padding-bottom: calc(12px + env(safe-area-inset-bottom));
  582. // padding-bottom: 25px;
  583. :global {
  584. .van-button {
  585. font-size: 16px;
  586. font-weight: 500;
  587. // &.van-button--disabled {
  588. // opacity: initial;
  589. // background: linear-gradient(
  590. // 270deg,
  591. // #ff7a93 0%,
  592. // #ff9daa 100%
  593. // ) !important;
  594. // }
  595. }
  596. }
  597. }
  598. .colResultBox {
  599. :global {
  600. .col-result-container {
  601. padding-top: 0;
  602. }
  603. }
  604. }