index.module.less 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697
  1. .back {
  2. position: fixed;
  3. left: 15px;
  4. top: 17px;
  5. width: 31px;
  6. height: 31px;
  7. &>img {
  8. width: 100%;
  9. height: 100%;
  10. object-fit: cover;
  11. }
  12. &:active {
  13. opacity: 0.8;
  14. }
  15. }
  16. .musicCFixed {
  17. position: fixed;
  18. top: 17px;
  19. left: 55px;
  20. .musicName {
  21. font-size: 15px;
  22. font-weight: 600;
  23. color: #FFFFFF;
  24. line-height: 33px;
  25. }
  26. }
  27. .subjectListContainer {
  28. // font-size: 20px;
  29. --van-popover-action-width: 112px;
  30. :global {
  31. .van-hairline--bottom::after {
  32. display: none;
  33. }
  34. .van-popover__action {
  35. padding: 0;
  36. --van-line-height-md: 28px;
  37. // margin-bottom: 6px;
  38. &:last-child {
  39. margin-bottom: 0;
  40. }
  41. }
  42. .van-popover__content {
  43. max-height: 55vh;
  44. overflow-x: hidden;
  45. overflow-y: auto;
  46. padding: 8px;
  47. }
  48. }
  49. }
  50. .popoverMusic {
  51. width: 160px;
  52. // border: none;
  53. --van-popover-action-width: 100%;
  54. :global {
  55. .van-popover__action {
  56. // display: flex;
  57. // justify-content: center;
  58. // align-items: center;
  59. // padding: 0;
  60. // width: 100%;
  61. height: 36px;
  62. // color: #999;
  63. // font-size: 13px;
  64. padding: 0 12px;
  65. }
  66. .van-popover__content {
  67. max-height: 70vh;
  68. overflow-x: hidden;
  69. overflow-y: auto;
  70. }
  71. // var(--van-padding-md)
  72. .van-popover__action-text {
  73. display: block;
  74. width: 136px;
  75. overflow: hidden;
  76. text-overflow: ellipsis;
  77. white-space: nowrap;
  78. text-align: center;
  79. line-height: 36px;
  80. }
  81. }
  82. }
  83. .container {
  84. background: url('../../common/images/icon_bg.png') no-repeat center center / cover;
  85. padding: 63px 18px 18px 37px;
  86. height: 100vh;
  87. overflow: hidden;
  88. }
  89. .content {
  90. display: flex;
  91. height: calc(100vh - 81px);
  92. overflow: hidden;
  93. }
  94. .opacityBg {
  95. background: linear-gradient(134deg,
  96. rgba(255, 255, 255, 0.75) 0%,
  97. rgba(255, 255, 255, 0.34) 100%);
  98. border-radius: 18px;
  99. border: 2px solid #fff;
  100. }
  101. .leftContent {
  102. position: relative;
  103. display: flex;
  104. width: 45%;
  105. }
  106. .leftBg {
  107. position: absolute;
  108. left: 0;
  109. top: 0;
  110. width: 95px;
  111. height: 100%;
  112. background: linear-gradient(48deg, #43b2ff 0%, #159af7 100%);
  113. border: 2px solid #fff;
  114. border-radius: 18px 9px 0 18px;
  115. z-index: 1;
  116. }
  117. .leftBg2 {
  118. position: absolute;
  119. left: 0;
  120. top: 0;
  121. width: calc(100% - 12px);
  122. height: 100%;
  123. background: linear-gradient(134deg,
  124. rgba(255, 255, 255, 0.75) 0%,
  125. rgba(255, 255, 255, 0.34) 100%);
  126. border-radius: 18px;
  127. border: 2px solid #fff;
  128. }
  129. .types {
  130. position: relative;
  131. top: 2px;
  132. width: 95px;
  133. height: calc(100% - 4px);
  134. padding: 4px 0;
  135. overflow-x: hidden;
  136. overflow-y: auto;
  137. border-radius: 18px;
  138. z-index: 1;
  139. flex-shrink: 0;
  140. &::-webkit-scrollbar {
  141. width: 0;
  142. display: none;
  143. }
  144. .type {
  145. position: relative;
  146. padding: 4px 12px;
  147. &.typeActive {
  148. .typeImg {
  149. padding: 6px;
  150. border-color: #99ffd0;
  151. animation: scaleBtn 1s ease-in-out;
  152. }
  153. }
  154. }
  155. .typeImg {
  156. border: 2px solid transparent;
  157. border-radius: 6px;
  158. height: 95px;
  159. transition: 0.3s;
  160. &:active {
  161. transform: scale(0.8);
  162. }
  163. }
  164. .typeIcon {
  165. display: block;
  166. width: 100%;
  167. height: 100%;
  168. object-fit: cover;
  169. opacity: 0;
  170. transition: opacity 0.3s;
  171. }
  172. .typeIcon[loaded='true'] {
  173. opacity: 1;
  174. }
  175. }
  176. :global {
  177. .van-popover__action {
  178. height: 38px;
  179. font-size: 14px;
  180. color: #323233;
  181. }
  182. .selected {
  183. font-weight: 600;
  184. color: #1CACF1;
  185. background: #EEF8FF;
  186. border-radius: 4px;
  187. }
  188. }
  189. .center {
  190. flex: 1;
  191. position: relative;
  192. padding-right: 12px;
  193. height: 100%;
  194. overflow: hidden;
  195. .centerSearch {
  196. padding: 6px 9px;
  197. }
  198. .subjects {
  199. .subjectName {
  200. position: relative;
  201. display: flex;
  202. align-items: center;
  203. padding-left: 10px;
  204. padding-right: 8px;
  205. &.active {
  206. span {
  207. color: #1CACF1;
  208. }
  209. i {
  210. margin-top: -5px;
  211. border-bottom: 5px solid #1CACF1;
  212. transform: rotate(0deg);
  213. }
  214. }
  215. span {
  216. font-size: 14px;
  217. color: #1CACF1;
  218. line-height: 20px;
  219. max-width: 80px;
  220. text-overflow: ellipsis;
  221. white-space: nowrap;
  222. overflow: hidden;
  223. }
  224. i {
  225. display: inline-block;
  226. width: 0;
  227. height: 0;
  228. border-top: 5px solid transparent;
  229. border-left: 5px solid transparent;
  230. border-right: 5px solid transparent;
  231. border-bottom: 5px solid #1CACF1;
  232. margin-top: 6px;
  233. margin-left: 5px;
  234. transform: rotate(180deg);
  235. }
  236. // border-right: 1px solid #CCCCCC;
  237. &::after {
  238. position: absolute;
  239. right: 0;
  240. content: '';
  241. display: inline-block;
  242. width: 1px;
  243. height: 17px;
  244. background-color: #CCCCCC;
  245. }
  246. }
  247. }
  248. :global {
  249. #coai-0 {
  250. .van-search {
  251. width: 100%;
  252. z-index: 1;
  253. padding: 0px 0px;
  254. }
  255. .van-field__control::-webkit-input-placeholder {
  256. font-size: 12px;
  257. }
  258. .searchNotice {
  259. background-color: #f8f9fc !important;
  260. border-radius: 40px;
  261. .van-search__content {
  262. background: #f8f9fc !important;
  263. padding-left: 7px;
  264. }
  265. }
  266. }
  267. }
  268. }
  269. .musicContent {
  270. width: 100%;
  271. height: calc(100% - var(--van-search-input-height) - 12px - 2px);
  272. padding: 6px 12px 12px 12px;
  273. overflow-x: hidden;
  274. overflow-y: auto;
  275. &::-webkit-scrollbar {
  276. width: 0;
  277. display: none;
  278. }
  279. }
  280. .searchNotice {
  281. position: fixed;
  282. padding: 0;
  283. pointer-events: none;
  284. :global {
  285. .van-notice-bar {
  286. padding: 0;
  287. height: 100%;
  288. }
  289. }
  290. }
  291. .searchNoticeShow {
  292. :global {
  293. .van-field__control {
  294. opacity: 0;
  295. }
  296. }
  297. }
  298. .musicItem {
  299. position: relative;
  300. display: flex;
  301. align-items: center;
  302. border: 3px solid #fff;
  303. border-radius: 9px;
  304. margin-bottom: 6px;
  305. background-color: #fff;
  306. padding: 4px;
  307. transition: all 0.3s;
  308. overflow: hidden;
  309. --van-notice-bar-text-color: #333;
  310. &.disableNotic {
  311. :global {
  312. .van-notice-bar__content {
  313. transition-duration: 0s !important;
  314. transform: none !important;
  315. }
  316. }
  317. }
  318. &.musicActive {
  319. border-width: 3px;
  320. background: linear-gradient(180deg, #ffffff 0%, #bfe1ff 100%);
  321. transform: scale(1.05);
  322. box-shadow: 0px 2px 4px 0px rgba(73, 159, 228, 1);
  323. --van-notice-bar-text-color: rgba(73, 159, 228, 1);
  324. :global {
  325. .van-notice-bar__content {
  326. transition-property: transform;
  327. }
  328. }
  329. }
  330. .iconType {
  331. position: absolute;
  332. width: 28px;
  333. height: 14px;
  334. right: 0;
  335. top: 0;
  336. z-index: 9;
  337. // &.FREE {
  338. // background: url('./image/icon-music-default.png') no-repeat center;
  339. // background-size: contain;
  340. // }
  341. &.VIP {
  342. background: url('./image/icon-music-vip.png') no-repeat center;
  343. background-size: contain;
  344. border-top-right-radius: 9px;
  345. ;
  346. }
  347. }
  348. .musicAvtor {
  349. position: relative;
  350. display: block;
  351. width: 7.2vw;
  352. height: 7.2vw;
  353. border-radius: 10px;
  354. object-fit: cover;
  355. flex-shrink: 0;
  356. margin-right: 1vw;
  357. overflow: hidden;
  358. }
  359. .titleImg {
  360. width: 100%;
  361. height: 100%;
  362. opacity: 0;
  363. transition: opacity 0.3s;
  364. border-radius: 10px;
  365. }
  366. .titleImg[loaded='true'] {
  367. opacity: 1;
  368. }
  369. .musicInfo {
  370. flex: 1;
  371. .musicName {
  372. font-weight: 600;
  373. color: #333;
  374. margin-bottom: 3px;
  375. }
  376. .noticeBar {
  377. padding: 0;
  378. height: 28px;
  379. }
  380. .musicDes {
  381. width: 100%;
  382. display: flex;
  383. align-items: center;
  384. }
  385. // .musicFavitor {
  386. // border: 1px solid #ffc5c5;
  387. // color: #ff6a6a;
  388. // padding: 2px 3px 1px 14px;
  389. // border-radius: 4px;
  390. // background-color: #fff8f7;
  391. // background-image: url('./image/icon_hot.png');
  392. // background-repeat: no-repeat;
  393. // background-size: auto 75%;
  394. // background-position: 3px;
  395. // margin-right: 4px;
  396. // line-height: 1;
  397. // }
  398. .hotNum {
  399. color: #FF6A6A;
  400. font-size: 12px;
  401. padding: 2px 3px 1px;
  402. background: #FFF8F7;
  403. border-radius: 3px;
  404. border: 1px solid #FFC5C5;
  405. line-height: 1;
  406. margin-right: 0px;
  407. transform: scale(0.85);
  408. .iconFire {
  409. display: inline-block;
  410. width: 8px;
  411. height: 10px;
  412. margin-right: 3px;
  413. }
  414. }
  415. .iconPlayType {
  416. font-size: 12px;
  417. padding: 2px 3px 1px;
  418. background: #FFFFFF;
  419. border-radius: 3px;
  420. line-height: 1;
  421. margin-right: 0px;
  422. transform: scale(0.85);
  423. }
  424. .iconPlay {
  425. border: 1px solid #15B2FD;
  426. color: #15B2FD;
  427. }
  428. .iconSing {
  429. border: 1px solid #CD8613;
  430. color: #CD8613;
  431. }
  432. .musicAuthor {
  433. flex: 1;
  434. font-size: 12px;
  435. font-weight: 400;
  436. color: #777;
  437. padding-left: 2px;
  438. line-height: 12px;
  439. max-width: 9vw;
  440. }
  441. }
  442. .musicIcon {
  443. flex-shrink: 0;
  444. margin-right: 4px;
  445. }
  446. }
  447. .right {
  448. position: relative;
  449. background: #fff;
  450. overflow: hidden;
  451. border: none;
  452. width: 63%;
  453. border-radius: 18px;
  454. }
  455. .right-musicName {
  456. font-size: 15px;
  457. font-weight: 500;
  458. color: #131415;
  459. line-height: 20px;
  460. text-align: center;
  461. padding: 12px 0;
  462. }
  463. .staff {
  464. width: 100%;
  465. }
  466. .rightBox {
  467. width: 100%;
  468. height: 100%;
  469. border-radius: 18px;
  470. overflow: hidden;
  471. position: relative;
  472. .iconTransfer {
  473. position: absolute;
  474. right: 0;
  475. top: 0;
  476. background: linear-gradient(90deg, #44C9FF 0%, #259CFE 100%);
  477. border-radius: 0px 0px 0px 16px;
  478. padding: 5px 8px 4px;
  479. font-size: 11px;
  480. font-weight: 500;
  481. color: #FFFFFF;
  482. line-height: 18px;
  483. display: flex;
  484. align-items: center;
  485. &::before {
  486. content: '';
  487. display: inline-block;
  488. width: 12px;
  489. height: 11px;
  490. background: url('./image/icon-transfer.png') no-repeat center;
  491. background-size: contain;
  492. margin-right: 5px;
  493. }
  494. }
  495. .ensembleSection {
  496. // height: calc(100% - 78px);
  497. display: flex;
  498. flex-direction: column;
  499. height: 100%;
  500. .iframeSection {
  501. flex: 1 auto;
  502. iframe {
  503. height: 100%;
  504. }
  505. }
  506. .imgSection {
  507. flex: 1 auto;
  508. overflow-x: hidden;
  509. overflow-y: auto;
  510. height: 100%;
  511. }
  512. }
  513. }
  514. .rightBtns {
  515. position: absolute;
  516. bottom: 0;
  517. left: 0;
  518. right: 0;
  519. padding: 0 18px 18px 18px;
  520. display: flex;
  521. align-items: flex-end;
  522. height: 78px;
  523. background: #fff;
  524. background-image: linear-gradient(180deg,
  525. rgba(255, 255, 255, 0) 0%,
  526. #c1eeff 100%);
  527. border-radius: 0 0 18px 18px;
  528. &>img {
  529. margin: 0 4px;
  530. height: 30px;
  531. transition: 0.3s;
  532. &:active {
  533. transform: scale(0.6);
  534. }
  535. }
  536. :global {
  537. .van-popover__wrapper {
  538. display: flex;
  539. align-items: center;
  540. margin-right: 12px;
  541. }
  542. }
  543. .rightBtnsRight {
  544. transition: 0.3s;
  545. margin: 0 4px;
  546. padding: 5px 10px 0;
  547. margin-left: auto;
  548. img {
  549. height: 30px;
  550. animation: scaleBtn 1s ease-in-out infinite;
  551. }
  552. }
  553. }
  554. @keyframes scaleBtn {
  555. 0% {
  556. transform: scale(1);
  557. }
  558. 50% {
  559. transform: scale(1.1);
  560. }
  561. 100% {
  562. transform: scale(1);
  563. }
  564. }
  565. @keyframes displayIcon {
  566. to {
  567. opacity: 1;
  568. }
  569. }
  570. .loadingWrap {
  571. display: flex;
  572. justify-content: center;
  573. min-height: 80px;
  574. }
  575. .empty {
  576. margin: 0 auto;
  577. width: 60%;
  578. :global {
  579. .van-empty {
  580. padding: 0;
  581. .van-empty__bottom {
  582. margin-top: 0;
  583. }
  584. }
  585. .van-empty__image {
  586. width: 100%;
  587. height: initial;
  588. }
  589. .van-empty__description {
  590. margin-top: 0;
  591. color: #fff;
  592. padding: 0;
  593. font-size: 14px;
  594. }
  595. }
  596. }