index.module.less 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  1. .container {
  2. display: flex;
  3. flex-direction: column;
  4. height: 100%;
  5. .iconBack {
  6. width: 36px;
  7. height: 36px;
  8. }
  9. :global {
  10. .n-breadcrumb .n-breadcrumb-item {
  11. font-size: max(16px, 12Px) !important;
  12. }
  13. .n-breadcrumb>ul {
  14. display: flex;
  15. align-items: center;
  16. .n-breadcrumb-item {
  17. display: flex;
  18. align-items: center;
  19. }
  20. .n-breadcrumb-item__separator {
  21. display: none;
  22. }
  23. .n-breadcrumb-item__link {
  24. padding: 5px 18px;
  25. background: #FFFFFF;
  26. border-radius: 16px;
  27. color: #21225D;
  28. line-height: 20px;
  29. }
  30. }
  31. .n-breadcrumb .n-breadcrumb-item:last-child .n-breadcrumb-item__link {
  32. color: #fff;
  33. background: var(--product-color);
  34. }
  35. }
  36. &> :global(.n-space) {
  37. height: 36px;
  38. flex-shrink: 0;
  39. }
  40. .separator {
  41. width: 9px;
  42. height: 15px;
  43. margin: 0 16px;
  44. }
  45. }
  46. .wrap {
  47. padding-top: 15px;
  48. flex: 1;
  49. transition: padding .3s;
  50. overflow: hidden;
  51. &.wrapBottom {
  52. padding-bottom: 108px;
  53. }
  54. }
  55. .content {
  56. display: flex;
  57. flex-direction: column;
  58. height: 100%;
  59. background: #DDF2FF;
  60. border-radius: 20px;
  61. // max-height: 90vh;
  62. }
  63. .tools {
  64. padding: 20px;
  65. display: flex;
  66. align-items: center;
  67. flex-shrink: 0;
  68. :global {
  69. .n-input {
  70. margin-left: auto;
  71. width: 361px;
  72. }
  73. .n-input__input-el {
  74. height: 100%;
  75. line-height: 100%;
  76. }
  77. .n-button {
  78. --n-height: 37px !important;
  79. height: 37px;
  80. padding: 0 24px;
  81. font-size: max(18px, 13Px);
  82. &.n-button--primary-type {
  83. font-weight: bold !important;
  84. color: #fff;
  85. }
  86. }
  87. }
  88. }
  89. .contentWrap {
  90. flex: 1;
  91. display: flex;
  92. padding: 0 20px 20px;
  93. overflow: hidden;
  94. gap: 0 32px;
  95. }
  96. .musicList {
  97. // width: 512px;
  98. // display: flex;
  99. // // height: 100%;
  100. // overflow-x: hidden;
  101. // overflow-y: auto;
  102. // // min-width: 330px;
  103. // // max-height: 100vh;
  104. // min-height: 71vh;
  105. // margin-right: 32px;
  106. background-color: #fff;
  107. border-radius: 16px;
  108. width: 512px;
  109. min-width: 294px;
  110. height: 100%;
  111. overflow-x: hidden;
  112. overflow-y: auto;
  113. min-width: 330Px;
  114. // position: relative;
  115. // z-index: 1;
  116. // &::before {
  117. // content: ' ';
  118. // position: absolute;
  119. // z-index: 0;
  120. // left: 0;
  121. // top: 0;
  122. // width: 512px;
  123. // min-width: 294px;
  124. // height: var(--xiaoku-music-height);
  125. // background-color: #fff;
  126. // border-radius: 16px;
  127. // }
  128. &::-webkit-scrollbar {
  129. width: 0;
  130. display: none;
  131. }
  132. .wrapList {
  133. // display: flex;
  134. // flex-direction: column;
  135. // width: 100%;
  136. // position: relative;
  137. // z-index: 1;
  138. width: 512px;
  139. min-width: 294px;
  140. min-height: 100%;
  141. // background: #fff;
  142. border-radius: 16px;
  143. }
  144. .empty {
  145. display: flex;
  146. align-items: center;
  147. justify-content: center;
  148. height: 50vh;
  149. // height: 100%;
  150. }
  151. }
  152. .itemContainer {
  153. width: 100%;
  154. border-radius: 16px;
  155. padding: 4px 8px;
  156. // background-color: #fff;
  157. &:first-child {
  158. padding-top: 8px;
  159. }
  160. &:last-child {
  161. // border-radius: 0 0 16px 16px;
  162. padding-bottom: 8px;
  163. }
  164. }
  165. .item {
  166. position: relative;
  167. display: flex;
  168. align-items: center;
  169. padding: 10px;
  170. border-radius: 12px;
  171. cursor: pointer;
  172. &:hover {
  173. background-color: rgba(0, 0, 0, .05);
  174. }
  175. &.active {
  176. background-color: #DDF2FF;
  177. .arrow {
  178. opacity: 1;
  179. }
  180. }
  181. .img {
  182. position: relative;
  183. width: 60px;
  184. height: 60px;
  185. border-radius: 8px;
  186. margin-right: 12px;
  187. // box-shadow: 0 0 10px 4px rgba(27, 35, 55, .1);
  188. overflow: hidden;
  189. flex-shrink: 0;
  190. :global {
  191. .n-image {
  192. width: 60px;
  193. height: 60px;
  194. }
  195. }
  196. img {
  197. transition: opacity .3s;
  198. opacity: 0;
  199. height: 100%;
  200. width: 100%;
  201. }
  202. img[data-loaded="true"] {
  203. opacity: 1;
  204. }
  205. }
  206. .title {
  207. flex: 1;
  208. overflow: hidden;
  209. display: flex;
  210. flex-direction: column;
  211. align-items: flex-start;
  212. .titleName {
  213. font-size: max(18px, 13Px);
  214. font-weight: 600;
  215. color: #131415;
  216. line-height: 28px;
  217. width: 100%;
  218. }
  219. .titleDes {
  220. font-size: max(14px, 11Px);
  221. font-weight: 400;
  222. color: #777777;
  223. line-height: 20px;
  224. max-width: 100%;
  225. white-space: nowrap;
  226. text-overflow: ellipsis;
  227. overflow: hidden;
  228. }
  229. }
  230. .btn {
  231. margin-left: auto;
  232. width: 84px;
  233. height: 36px;
  234. background: linear-gradient(to right, #44CAFF, #259DFE);
  235. border: none;
  236. padding: 0;
  237. font-weight: bold !important;
  238. flex-shrink: 0;
  239. min-width: 62px;
  240. min-height: 30px;
  241. font-size: max(18px, 12Px);
  242. :global {
  243. .n-button__content {
  244. &>img {
  245. margin-left: 10px;
  246. width: 9px;
  247. height: 12px;
  248. }
  249. }
  250. }
  251. }
  252. .arrow {
  253. position: absolute;
  254. top: 50%;
  255. right: 12px;
  256. transform: translate(124%, -50%);
  257. opacity: 0;
  258. }
  259. .showPlayLoading {
  260. opacity: 0;
  261. }
  262. }
  263. .loadingWrap {
  264. display: flex;
  265. justify-content: center;
  266. min-height: 80px;
  267. &.showLoading {
  268. height: 0;
  269. opacity: 0;
  270. min-height: 0;
  271. }
  272. }
  273. .musicStaff {
  274. display: flex;
  275. flex-direction: column;
  276. position: relative;
  277. left: -8px;
  278. flex: 1;
  279. background-color: #fff;
  280. border-radius: 16px;
  281. // height: 100%;
  282. z-index: 1;
  283. overflow: hidden;
  284. &::-webkit-scrollbar {
  285. width: 0;
  286. display: none;
  287. }
  288. .goBtn {
  289. position: absolute;
  290. left: 50%;
  291. bottom: 46px;
  292. transform: translateX(-50%);
  293. height: 70px;
  294. cursor: pointer;
  295. transition: all .2s ease-in;
  296. // &.goBtnBottom {
  297. // bottom: 154px;
  298. // }
  299. }
  300. .rightBtns {
  301. position: absolute;
  302. top: 20px;
  303. right: 24px;
  304. display: flex;
  305. align-items: center;
  306. .textBtn {
  307. margin-right: 24px;
  308. padding: 1px 16px !important;
  309. line-height: 37px !important;
  310. height: 37px !important;
  311. background: #F5F6FA;
  312. --n-border: #F5F6FA !important;
  313. }
  314. .transBtn {
  315. width: 45px;
  316. cursor: pointer;
  317. margin-right: 15px;
  318. }
  319. }
  320. .favitor {
  321. width: 48px;
  322. height: 48px;
  323. cursor: pointer;
  324. transition: all .3s;
  325. &:hover {
  326. transform: scale(1.1);
  327. }
  328. &>img {
  329. display: block;
  330. width: 100%;
  331. height: 100%;
  332. filter: drop-shadow(0 0 10px rgba(27, 35, 55, .1));
  333. }
  334. }
  335. }
  336. .musicName {
  337. padding-top: 30px;
  338. font-size: 26px;
  339. font-weight: 500;
  340. color: #333;
  341. line-height: 24px;
  342. text-align: center;
  343. }
  344. .staffImgs {
  345. flex: 1;
  346. overflow-y: auto;
  347. height: 100%;
  348. padding: 0 30px;
  349. &>img {
  350. width: 100%;
  351. }
  352. }
  353. :global {
  354. .van-fade-enter-active,
  355. .van-fade-leave-active {
  356. transition: all 0.3s;
  357. }
  358. .van-fade-enter-from,
  359. .van-fade-leave-to {
  360. opacity: 0;
  361. }
  362. }
  363. .previewWindow {
  364. width: 85%;
  365. height: 85vh;
  366. position: relative;
  367. .previewClose {
  368. position: absolute;
  369. left: 40px;
  370. top: 40px;
  371. width: 60px;
  372. height: 65px;
  373. }
  374. .previewIframe {
  375. width: 100%;
  376. height: 85vh;
  377. background-color: #fff;
  378. border-radius: 16px;
  379. }
  380. }
  381. .popSelect {
  382. font-size: 16px;
  383. width: 300px;
  384. max-height: 500px;
  385. overflow-y: scroll;
  386. box-shadow: 0px 2px 16px 0px rgba(0, 0, 0, 0.08);
  387. border-radius: 11px;
  388. --n-option-height: 34px;
  389. :global {
  390. .n-base-select-option__content {
  391. width: 80% !important;
  392. }
  393. }
  394. }
  395. .popSelect1 {
  396. font-size: 16px;
  397. width: 240px;
  398. // max-height: 500px;
  399. // overflow-y: scroll;
  400. box-shadow: 0px 2px 16px 0px rgba(0, 0, 0, 0.08);
  401. border-radius: 11px;
  402. --n-option-height: 34px;
  403. :global {
  404. .n-base-select-option__content {
  405. width: 80% !important;
  406. }
  407. }
  408. }
  409. .popTrans {
  410. font-size: 16px;
  411. width: 200px;
  412. overflow-y: scroll;
  413. box-shadow: 0px 2 16px 0px rgba(0, 0, 0, 0.08);
  414. border-radius: 11px;
  415. --n-option-height: 34px;
  416. :global {
  417. .n-base-select-option__content {
  418. width: 80% !important;
  419. }
  420. }
  421. }
  422. .textBtn {
  423. .iconArrow {
  424. display: inline-block;
  425. margin-left: 8px;
  426. margin-top: 2px;
  427. width: 8px;
  428. height: 5px;
  429. background: url('./images/icon-arrow.svg') no-repeat center center / contain;
  430. transform: rotate(180deg);
  431. color: #131415;
  432. fill: #131415;
  433. }
  434. &:hover,
  435. &.textBtnActive {
  436. background: #198CFE !important;
  437. font-weight: 500 !important;
  438. color: #fff !important;
  439. .iconArrow {
  440. transform: rotate(0deg);
  441. background: url('./images/icon-arrow2.svg') no-repeat center center / contain;
  442. color: #fff;
  443. fill: #fff;
  444. margin-top: 0;
  445. }
  446. }
  447. }