index.module.less 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662
  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: 32px;
  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. color: #333333;
  219. line-height: 20px;
  220. max-width: 80px;
  221. text-overflow: ellipsis;
  222. white-space: nowrap;
  223. overflow: hidden;
  224. }
  225. i {
  226. display: inline-block;
  227. width: 0;
  228. height: 0;
  229. border-top: 5px solid transparent;
  230. border-left: 5px solid transparent;
  231. border-right: 5px solid transparent;
  232. border-bottom: 5px solid #AAAAAA;
  233. margin-top: 6px;
  234. margin-left: 5px;
  235. transform: rotate(180deg);
  236. }
  237. // border-right: 1px solid #CCCCCC;
  238. &::after {
  239. position: absolute;
  240. right: 0;
  241. content: '';
  242. display: inline-block;
  243. width: 1px;
  244. height: 17px;
  245. background-color: #CCCCCC;
  246. }
  247. }
  248. }
  249. :global {
  250. #coai-0 {
  251. .van-search {
  252. width: 100%;
  253. z-index: 1;
  254. padding: 0px 0px;
  255. }
  256. .van-field__control::-webkit-input-placeholder {
  257. font-size: 12px;
  258. }
  259. .searchNotice {
  260. background-color: #f8f9fc !important;
  261. border-radius: 40px;
  262. .van-search__content {
  263. background: #f8f9fc !important;
  264. padding-left: 7px;
  265. }
  266. }
  267. }
  268. }
  269. }
  270. .musicContent {
  271. width: 100%;
  272. height: calc(100% - var(--van-search-input-height) - 12px - 2px);
  273. padding: 6px 12px 12px 12px;
  274. overflow-x: hidden;
  275. overflow-y: auto;
  276. &::-webkit-scrollbar {
  277. width: 0;
  278. display: none;
  279. }
  280. }
  281. .searchNotice {
  282. position: fixed;
  283. padding: 0;
  284. pointer-events: none;
  285. :global {
  286. .van-notice-bar {
  287. padding: 0;
  288. height: 100%;
  289. }
  290. }
  291. }
  292. .searchNoticeShow {
  293. :global {
  294. .van-field__control {
  295. opacity: 0;
  296. }
  297. }
  298. }
  299. .musicItem {
  300. position: relative;
  301. display: flex;
  302. align-items: center;
  303. border: 3px solid #fff;
  304. border-radius: 9px;
  305. margin-bottom: 6px;
  306. background-color: #fff;
  307. padding: 4px;
  308. transition: all 0.3s;
  309. overflow: hidden;
  310. --van-notice-bar-text-color: #333;
  311. &.disableNotic {
  312. :global {
  313. .van-notice-bar__content {
  314. transition-duration: 0s !important;
  315. transform: none !important;
  316. }
  317. }
  318. }
  319. &.musicActive {
  320. border-width: 3px;
  321. background: linear-gradient(180deg, #ffffff 0%, #bfe1ff 100%);
  322. transform: scale(1.05);
  323. box-shadow: 0px 2px 4px 0px rgba(73, 159, 228, 1);
  324. --van-notice-bar-text-color: rgba(73, 159, 228, 1);
  325. :global {
  326. .van-notice-bar__content {
  327. transition-property: transform;
  328. }
  329. }
  330. }
  331. .iconType {
  332. position: absolute;
  333. width: 28px;
  334. height: 14px;
  335. right: 0;
  336. top: 0;
  337. z-index: 9;
  338. // &.FREE {
  339. // background: url('./image/icon-music-default.png') no-repeat center;
  340. // background-size: contain;
  341. // }
  342. &.VIP {
  343. background: url('./image/icon-music-vip.png') no-repeat center;
  344. background-size: contain;
  345. border-top-right-radius: 9px;
  346. ;
  347. }
  348. }
  349. .musicAvtor {
  350. position: relative;
  351. display: block;
  352. width: 7.2vw;
  353. height: 7.2vw;
  354. border-radius: 10px;
  355. object-fit: cover;
  356. flex-shrink: 0;
  357. margin-right: 1vw;
  358. overflow: hidden;
  359. }
  360. .titleImg {
  361. width: 100%;
  362. height: 100%;
  363. opacity: 0;
  364. transition: opacity 0.3s;
  365. border-radius: 10px;
  366. }
  367. .titleImg[loaded='true'] {
  368. opacity: 1;
  369. }
  370. .musicInfo {
  371. flex: 1;
  372. .musicName {
  373. font-weight: 600;
  374. color: #333;
  375. margin-bottom: 3px;
  376. }
  377. .noticeBar {
  378. padding: 0;
  379. height: 28px;
  380. }
  381. .musicDes {
  382. width: 100%;
  383. display: flex;
  384. align-items: center;
  385. }
  386. // .musicFavitor {
  387. // border: 1px solid #ffc5c5;
  388. // color: #ff6a6a;
  389. // padding: 2px 3px 1px 14px;
  390. // border-radius: 4px;
  391. // background-color: #fff8f7;
  392. // background-image: url('./image/icon_hot.png');
  393. // background-repeat: no-repeat;
  394. // background-size: auto 75%;
  395. // background-position: 3px;
  396. // margin-right: 4px;
  397. // line-height: 1;
  398. // }
  399. .hotNum {
  400. color: #FF6A6A;
  401. font-size: 12px;
  402. padding: 2px 3px 1px;
  403. background: #FFF8F7;
  404. border-radius: 3px;
  405. border: 1px solid #FFC5C5;
  406. line-height: 1;
  407. margin-right: 3px;
  408. transform: scale(0.9);
  409. .iconFire {
  410. display: inline-block;
  411. width: 8px;
  412. height: 10px;
  413. margin-right: 3px;
  414. }
  415. }
  416. .iconPlayType {
  417. font-size: 12px;
  418. padding: 2px 3px 1px;
  419. background: #FFFFFF;
  420. border-radius: 3px;
  421. line-height: 1;
  422. margin-right: 3px;
  423. transform: scale(0.9);
  424. }
  425. .iconPlay {
  426. border: 1px solid #15B2FD;
  427. color: #15B2FD;
  428. }
  429. .iconSing {
  430. border: 1px solid #CD8613;
  431. color: #CD8613;
  432. }
  433. .musicAuthor {
  434. flex: 1;
  435. font-size: 12px;
  436. font-weight: 400;
  437. color: #777;
  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. }
  496. .rightBtns {
  497. position: absolute;
  498. bottom: 0;
  499. left: 0;
  500. right: 0;
  501. padding: 0 18px 18px 18px;
  502. display: flex;
  503. align-items: flex-end;
  504. height: 78px;
  505. background: #fff;
  506. background-image: linear-gradient(180deg,
  507. rgba(255, 255, 255, 0) 0%,
  508. #c1eeff 100%);
  509. border-radius: 0 0 18px 18px;
  510. &>img {
  511. margin: 0 4px;
  512. height: 30px;
  513. transition: 0.3s;
  514. &:active {
  515. transform: scale(0.6);
  516. }
  517. }
  518. :global {
  519. .van-popover__wrapper {
  520. display: flex;
  521. align-items: center;
  522. margin-right: 12px;
  523. }
  524. }
  525. .rightBtnsRight {
  526. transition: 0.3s;
  527. margin: 0 4px;
  528. padding: 5px 10px 0;
  529. margin-left: auto;
  530. img {
  531. height: 30px;
  532. animation: scaleBtn 1s ease-in-out infinite;
  533. }
  534. }
  535. }
  536. @keyframes scaleBtn {
  537. 0% {
  538. transform: scale(1);
  539. }
  540. 50% {
  541. transform: scale(1.1);
  542. }
  543. 100% {
  544. transform: scale(1);
  545. }
  546. }
  547. @keyframes displayIcon {
  548. to {
  549. opacity: 1;
  550. }
  551. }
  552. .loadingWrap {
  553. display: flex;
  554. justify-content: center;
  555. min-height: 80px;
  556. }
  557. .empty {
  558. :global {
  559. .van-empty__image {
  560. width: 100%;
  561. height: initial;
  562. }
  563. .van-empty__description {
  564. color: #fff;
  565. padding: 0;
  566. }
  567. }
  568. }