index.module.less 13 KB

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