cloudCoachList.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794
  1. <template>
  2. <div class="cloudCoachList">
  3. <div class="headCon">
  4. <div class="headLeft">
  5. <img class="tipImg" src="@/views/Editor/CanvasTool/imgs/yp.png" alt="" />
  6. <div class="title">乐谱</div>
  7. </div>
  8. <div class="headright">
  9. <img @click="emits('close')" class="closeBtn" src="./imgs/close.png" alt="" />
  10. </div>
  11. </div>
  12. <div class="content">
  13. <div class="tabTools">
  14. <div class="tabCon">
  15. <div
  16. class="tab"
  17. @click="handleTabChange(item.value)"
  18. :class="{ active: item.value === queryData.sourceType }"
  19. v-for="item in tabData"
  20. :key="item.value"
  21. >
  22. {{ item.label }}
  23. </div>
  24. </div>
  25. <div class="query">
  26. <Input :placeholder="'请输入搜索关键词'" v-model:value="queryData.name" @enter="handleQuery">
  27. <template #prefix>
  28. <img class="img" src="./imgs/query.png" alt="" />
  29. </template>
  30. <template #suffix>
  31. <div class="queryBtn" @click="handleQuery">搜索</div>
  32. </template>
  33. </Input>
  34. </div>
  35. </div>
  36. <div class="musicListCon">
  37. <div class="queryFrom" :class="{ isExpandAct: !isExpand }">
  38. <div v-show="queryData.sourceType === 2" class="queryFromList">
  39. <div class="tit">教程:</div>
  40. <div class="queryFromCon">
  41. <div
  42. v-for="item in musicTagList"
  43. :key="item.id"
  44. @click="handleMusicTagChange(item.id)"
  45. :class="['queryTip', queryData.bookVersionId === item.id && 'active']"
  46. >
  47. {{ item.name }}
  48. </div>
  49. </div>
  50. </div>
  51. <div v-show="queryData.sourceType !== 3" class="queryFromList">
  52. <div class="tit">场景:</div>
  53. <div class="queryFromCon">
  54. <div
  55. v-for="item in audioPlayTypesOption"
  56. :key="item.value"
  57. @click="handleAudioPlayTypesChange(item.value)"
  58. :class="['queryTip', queryData.audioPlayTypes === item.value && 'active']"
  59. >
  60. {{ item.text }}
  61. </div>
  62. </div>
  63. </div>
  64. <div v-show="queryData.audioPlayTypes !== 'SING'" class="queryFromList">
  65. <div class="tit">乐器:</div>
  66. <div class="queryFromCon">
  67. <template v-for="item in subjectList">
  68. <div
  69. :class="['queryTip', queryData.subject.id === item.instruments[0].id && 'active']"
  70. @click="handleSubjectChange(item.instruments[0])"
  71. v-if="item.instruments.length === 1"
  72. :key="item.id"
  73. >
  74. {{ item.instruments[0].name }}
  75. </div>
  76. <Popover v-model:value="item.isExpand" trigger="mouseenter" v-else :offset="-4" :key="item.id + '_'">
  77. <template #content>
  78. <PopoverMenuItem
  79. @click="
  80. () => {
  81. item.isExpand = false
  82. handleSubjectChange(row)
  83. }
  84. "
  85. v-for="row in item.instruments"
  86. :key="row.id"
  87. :active="row.id === queryData.subject.id"
  88. >{{ row.name }}</PopoverMenuItem
  89. >
  90. </template>
  91. <div class="queryTip" :class="{ hoverActive: isActiveSubjectPop(item) }">
  92. <div>{{ isActiveSubjectPop(item) ? queryData.subject.name : item.name }}</div>
  93. <img src="./imgs/jt.png" alt="" />
  94. </div>
  95. </Popover>
  96. </template>
  97. </div>
  98. </div>
  99. </div>
  100. <div v-show="queryData.sourceType === 2" @click="isExpand = !isExpand" class="isExpand" :class="{ active: isExpand }">
  101. <div>{{ isExpand ? "收起" : "展开" }}</div>
  102. <img src="./imgs/jiao.png" alt="" />
  103. </div>
  104. <div class="musicListConBox" v-loading="loading">
  105. <div class="musicList" :class="{ empty: !musicList.length && !loading }">
  106. <div class="musicListBox" v-if="musicList.length && !loading">
  107. <div class="musicCon" v-for="item in musicList" :key="item.id">
  108. <div class="musicLeft">
  109. <div class="iconCon">
  110. <img class="icon" :src="item.titleImg" alt="" />
  111. <img v-if="item.sourceFrom === 'PLATFORM'" class="jxImg" src="./imgs/jx.png" alt="" />
  112. </div>
  113. <div class="musicInfo">
  114. <EllipsisScroll class="musicTit" :title="item.name || ''" />
  115. <div class="info">
  116. <div class="hotInfo" v-if="item.usedNum">
  117. <img src="./imgs/hot.png" alt="" />
  118. <div>{{ formatNumber(item.usedNum) }}</div>
  119. </div>
  120. <div class="play" v-if="item.audioPlayTypes?.includes('SING')">演唱</div>
  121. <div class="sing" v-if="item.audioPlayTypes?.includes('PLAY')">演奏</div>
  122. <div class="musicUserName">
  123. <EllipsisScroll :title="item.composer || ''" />
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. <div class="musicRight">
  129. <img class="sc" @click="handleFavorite(item)" :src="item.favoriteFlag ? scActImg : scImg" alt="" />
  130. <div class="addBtn" @click="handleAddMusic(item.id, item.name)">添加</div>
  131. </div>
  132. </div>
  133. </div>
  134. <Empty v-if="!musicList.length && !loading" />
  135. </div>
  136. <div class="pagination" v-show="musicList.length">
  137. <el-pagination layout="prev, pager, next" :default-page-size="21" @current-change="handleCurrentChange" :total="queryData.total" />
  138. </div>
  139. </div>
  140. </div>
  141. </div>
  142. </div>
  143. </template>
  144. <script setup lang="ts">
  145. import { ElLoading, ElPagination } from "element-plus"
  146. import Input from "@/components/Input.vue"
  147. import Popover from "@/components/Popover.vue"
  148. import PopoverMenuItem from "@/components/PopoverMenuItem.vue"
  149. import Empty from "@/components/Empty"
  150. import EllipsisScroll from "@/components/ellipsisScroll"
  151. import { reactive, ref } from "vue"
  152. import { getMaterialQueryPage, getSubjectListApi, getMusicTagTreeApi, favoriteApi } from "@/api/pptOperate"
  153. import { httpAjax } from "@/plugins/httpAjax"
  154. import queryParams from "@/queryParams"
  155. import scActImg from "./imgs/scAct.png"
  156. import scImg from "./imgs/sc.png"
  157. const emits = defineEmits<{
  158. (event: "update", id: string, name: string): void
  159. (event: "close"): void
  160. }>()
  161. function handleAddMusic(id: string, name: string) {
  162. emits("update", id, name)
  163. emits("close")
  164. }
  165. const tabData = [
  166. {
  167. label: "相关资源",
  168. value: 5
  169. },
  170. {
  171. label: "共享资源",
  172. value: 2
  173. },
  174. {
  175. label: "我的资源",
  176. value: 3
  177. },
  178. {
  179. label: "我的收藏",
  180. value: 4
  181. }
  182. ]
  183. // 场景
  184. const audioPlayTypesOption = [
  185. { text: "全部", value: "" },
  186. { text: "演唱", value: "SING" },
  187. { text: "演奏", value: "PLAY" },
  188. { text: "演唱+演奏", value: "PLAY,SING" }
  189. ]
  190. // 教程
  191. const musicTagList = ref<any[]>([])
  192. // 乐器
  193. const subjectList = ref<any[]>([])
  194. const queryData = reactive({
  195. page: 1,
  196. rows: 21,
  197. total: 0,
  198. sourceType: 5,
  199. name: "",
  200. bookVersionId: "",
  201. audioPlayTypes: "",
  202. subject: {
  203. id: "",
  204. name: ""
  205. }
  206. })
  207. const musicList = ref<any[]>([])
  208. const loading = ref(true)
  209. const vLoading = ElLoading.directive
  210. const isExpand = ref(true)
  211. getQueryList()
  212. function getQueryList() {
  213. Promise.all([httpAjax(getSubjectListApi), httpAjax(getMusicTagTreeApi)]).then(res => {
  214. const [subjectListRes, musicTagTreeRes] = res
  215. if (subjectListRes.code === 200) {
  216. subjectList.value = subjectListRes.data.map((item: any) => {
  217. return item.instruments.length > 1 ? Object.assign(item, { isExpand: ref(false) }) : item
  218. })
  219. // 赋默认值
  220. handleSubjectDefault()
  221. }
  222. if (musicTagTreeRes.code === 200) {
  223. musicTagList.value = [
  224. { id: "", name: "全部" },
  225. ...musicTagTreeRes.data.map((item: any) => {
  226. return {
  227. id: item.id,
  228. name: item.name
  229. }
  230. })
  231. ]
  232. }
  233. handleQuery()
  234. })
  235. }
  236. function handleSubjectDefault() {
  237. if (subjectList.value.length > 0) {
  238. const instruments = subjectList.value.reduce((arr, item) => {
  239. arr.push(...item.instruments)
  240. return arr
  241. }, [])
  242. const instrumentId = queryParams.instrumentId
  243. // 有id 就用id,没有就默认第一个
  244. const instrumentObj = instrumentId
  245. ? instruments.find((i: any) => {
  246. return i.id === instrumentId
  247. })
  248. : instruments[0]
  249. if (instrumentObj) {
  250. queryData.subject.id = instrumentObj.id
  251. queryData.subject.name = instrumentObj.name
  252. }
  253. }
  254. }
  255. function clearQueryData() {
  256. queryData.page = 1
  257. queryData.rows = 21
  258. queryData.total = 0
  259. queryData.sourceType = 5
  260. queryData.name = ""
  261. queryData.bookVersionId = ""
  262. queryData.audioPlayTypes = ""
  263. queryData.subject = {
  264. id: "",
  265. name: ""
  266. }
  267. handleSubjectDefault()
  268. }
  269. function handleTabChange(sourceType: number) {
  270. clearQueryData()
  271. isExpand.value = true
  272. queryData.sourceType = sourceType
  273. handleQuery()
  274. }
  275. function handleMusicTagChange(id: string) {
  276. queryData.bookVersionId = id
  277. handleQuery()
  278. }
  279. function handleAudioPlayTypesChange(value: string) {
  280. queryData.audioPlayTypes = value
  281. handleQuery()
  282. }
  283. function handleSubjectChange(item: any) {
  284. queryData.subject.id = item.id
  285. queryData.subject.name = item.name
  286. handleQuery()
  287. }
  288. function isActiveSubjectPop(item: any) {
  289. return item.instruments.some((i: any) => {
  290. return i.id === queryData.subject.id
  291. })
  292. }
  293. function handleCurrentChange(e: number) {
  294. queryData.page = e
  295. handleGetQuery()
  296. }
  297. function handleQuery() {
  298. queryData.page = 1
  299. queryData.rows = 21
  300. handleGetQuery()
  301. }
  302. function handleGetQuery() {
  303. loading.value = true
  304. let { sourceType, subject, audioPlayTypes, name, page, rows, bookVersionId } = queryData
  305. let musicalInstrumentId = subject.id
  306. const audioPlayTypesParams = audioPlayTypes ? audioPlayTypes.split(",") : []
  307. let params: any
  308. // 相关资源
  309. if (sourceType === 5) {
  310. if (audioPlayTypesParams[0] === "SING") {
  311. musicalInstrumentId = ""
  312. }
  313. params = {
  314. name,
  315. type: "MUSIC",
  316. sourceType,
  317. musicalInstrumentId,
  318. enableFlag: true,
  319. page,
  320. rows,
  321. audioPlayTypes: audioPlayTypesParams,
  322. lessonCoursewareKnowledgeId: queryParams.lessonCoursewareKnowledgeId
  323. }
  324. }
  325. if (sourceType === 2) {
  326. if (audioPlayTypesParams[0] === "SING") {
  327. musicalInstrumentId = ""
  328. }
  329. params = {
  330. name,
  331. type: "MUSIC",
  332. sourceType,
  333. musicalInstrumentId,
  334. enableFlag: true,
  335. page,
  336. rows,
  337. audioPlayTypes: audioPlayTypesParams,
  338. lessonCoursewareKnowledgeId: queryParams.lessonCoursewareKnowledgeId,
  339. bookVersionId
  340. }
  341. }
  342. if (sourceType === 3) {
  343. params = {
  344. name,
  345. type: "MUSIC",
  346. sourceType,
  347. musicalInstrumentId,
  348. enableFlag: true,
  349. page,
  350. rows
  351. }
  352. }
  353. if (sourceType === 4) {
  354. if (audioPlayTypesParams[0] === "SING") {
  355. musicalInstrumentId = ""
  356. }
  357. params = {
  358. name,
  359. type: "MUSIC",
  360. sourceType,
  361. musicalInstrumentId,
  362. enableFlag: true,
  363. page,
  364. rows,
  365. audioPlayTypes: audioPlayTypesParams
  366. }
  367. }
  368. httpAjax(getMaterialQueryPage, params).then(res => {
  369. if (res.code === 200) {
  370. musicList.value = res.data.rows.map((item: any) => {
  371. item.name = highlightedText(item.name, queryData.name)
  372. return item
  373. })
  374. queryData.total = res.data.total
  375. }
  376. loading.value = false
  377. })
  378. }
  379. function handleFavorite(item: any) {
  380. httpAjax(favoriteApi, {
  381. favoriteFlag: item.favoriteFlag ? 0 : 1,
  382. materialId: item.id,
  383. type: "MUSIC"
  384. }).then(res => {
  385. if (res.code === 200) {
  386. item.favoriteFlag = !item.favoriteFlag
  387. }
  388. })
  389. }
  390. function formatNumber(num: number) {
  391. return num >= 10000 ? (num / 10000).toFixed(1).replace(/\.0$/, "") + "万" : num.toString()
  392. }
  393. const highlightedText = (text: string, query: string) => {
  394. if (!text) {
  395. return ""
  396. }
  397. if (!query) {
  398. return text
  399. }
  400. const regex = new RegExp(`(${queryData.name})`, "gi")
  401. return text.replace(regex, '<span class="highlighted">$1</span>')
  402. }
  403. </script>
  404. <style lang="scss" scoped>
  405. .cloudCoachList {
  406. width: 100%;
  407. height: 100%;
  408. .headCon {
  409. width: 100%;
  410. height: 64px;
  411. border-bottom: 1px solid #eaeaea;
  412. display: flex;
  413. justify-content: space-between;
  414. align-items: center;
  415. .headLeft {
  416. margin-left: 30px;
  417. display: flex;
  418. align-items: center;
  419. .tipImg {
  420. width: 24px;
  421. height: 24px;
  422. }
  423. .title {
  424. font-weight: 600;
  425. font-size: 18px;
  426. color: #131415;
  427. margin-left: 8px;
  428. }
  429. }
  430. .headright {
  431. margin-right: 30px;
  432. display: flex;
  433. align-items: center;
  434. .closeBtn {
  435. width: 24px;
  436. height: 24px;
  437. cursor: pointer;
  438. &:hover {
  439. opacity: 0.8;
  440. }
  441. }
  442. }
  443. }
  444. .content {
  445. width: 100%;
  446. height: calc(100% - 64px);
  447. .tabTools {
  448. height: 72px;
  449. width: 100%;
  450. padding: 18px 30px;
  451. display: flex;
  452. justify-content: space-between;
  453. align-items: center;
  454. .tabCon {
  455. display: flex;
  456. .tab {
  457. margin-right: 32px;
  458. font-weight: 400;
  459. font-size: 16px;
  460. color: #8b8d98;
  461. line-height: 22px;
  462. cursor: pointer;
  463. &:hover {
  464. opacity: 0.8;
  465. }
  466. &:last-child {
  467. margin-right: 0;
  468. }
  469. &.active {
  470. font-weight: 600;
  471. color: #131415;
  472. position: relative;
  473. &::after {
  474. content: "";
  475. position: absolute;
  476. width: 100%;
  477. height: 10px;
  478. background: linear-gradient(90deg, #77bbff 0%, rgba(163, 231, 255, 0.22) 100%);
  479. bottom: 0;
  480. left: 0;
  481. z-index: -1;
  482. }
  483. }
  484. }
  485. }
  486. .query {
  487. width: 400px;
  488. height: 36px;
  489. &::v-deep(.input) {
  490. align-items: center;
  491. padding: 0 3px 0 12px;
  492. border-radius: 18px;
  493. height: 100%;
  494. &:not(.disabled):hover,
  495. &.focused {
  496. .img {
  497. opacity: 1;
  498. }
  499. .queryBtn {
  500. opacity: 1;
  501. }
  502. }
  503. input {
  504. font-size: 14px;
  505. }
  506. .img {
  507. width: 16px;
  508. height: 16px;
  509. opacity: 0.4;
  510. }
  511. .queryBtn {
  512. width: 60px;
  513. height: 30px;
  514. background: #198cfe;
  515. border-radius: 16px;
  516. font-weight: 500;
  517. font-size: 14px;
  518. color: #ffffff;
  519. line-height: 30px;
  520. text-align: center;
  521. opacity: 0.4;
  522. cursor: pointer;
  523. &:hover {
  524. opacity: 0.8 !important;
  525. }
  526. }
  527. }
  528. }
  529. }
  530. .musicListCon {
  531. width: 100%;
  532. height: calc(100% - 72px);
  533. display: flex;
  534. flex-direction: column;
  535. .queryFrom {
  536. &.isExpandAct {
  537. height: 42px;
  538. overflow: hidden;
  539. }
  540. flex-shrink: 0;
  541. padding: 0 30px;
  542. .queryFromList {
  543. display: flex;
  544. margin-bottom: 4px;
  545. .tit {
  546. flex-shrink: 0;
  547. font-weight: 500;
  548. font-size: 14px;
  549. color: #131415;
  550. line-height: 32px;
  551. margin-right: 16px;
  552. }
  553. .queryFromCon {
  554. display: flex;
  555. flex-wrap: wrap;
  556. .queryTip {
  557. margin: 0 16px 12px 0;
  558. font-weight: 400;
  559. font-size: 14px;
  560. color: rgba(0, 0, 0, 0.6);
  561. line-height: 20px;
  562. padding: 6px 16px;
  563. background: #f5f6fa;
  564. border-radius: 6px;
  565. cursor: pointer;
  566. display: flex;
  567. align-items: center;
  568. & > img {
  569. width: 7px;
  570. height: 4px;
  571. margin-left: 6px;
  572. }
  573. &.active,
  574. &:hover {
  575. background: #d2ecff;
  576. color: rgba(0, 0, 0, 1);
  577. > img {
  578. transform: rotate(180deg);
  579. }
  580. }
  581. &.hoverActive {
  582. background: #d2ecff;
  583. color: rgba(0, 0, 0, 1);
  584. }
  585. }
  586. }
  587. }
  588. }
  589. .isExpand {
  590. flex-shrink: 0;
  591. margin-bottom: 12px;
  592. cursor: pointer;
  593. display: flex;
  594. justify-content: center;
  595. font-weight: 400;
  596. font-size: 14px;
  597. color: #198cfe;
  598. line-height: 20px;
  599. align-items: center;
  600. &:hover {
  601. opacity: 0.8;
  602. }
  603. &.active > img {
  604. transform: rotate(0deg);
  605. }
  606. & > img {
  607. transform: rotate(180deg);
  608. margin-left: 4px;
  609. width: 10px;
  610. height: 10px;
  611. }
  612. }
  613. .musicListConBox {
  614. flex-grow: 1;
  615. overflow: hidden;
  616. .musicList {
  617. padding: 4px 0;
  618. height: calc(100% - 60px);
  619. overflow: auto;
  620. &.empty {
  621. display: flex;
  622. justify-content: center;
  623. align-items: center;
  624. }
  625. .musicListBox {
  626. width: calc(100% + 24px);
  627. margin-left: -24px;
  628. display: flex;
  629. flex-wrap: wrap;
  630. padding: 0 30px;
  631. .musicCon {
  632. margin-bottom: 24px;
  633. width: calc(33.3333% - 24px);
  634. margin-left: 24px;
  635. padding: 16px;
  636. background: #f5f6fa;
  637. border-radius: 12px;
  638. display: flex;
  639. justify-content: space-between;
  640. align-items: center;
  641. &:nth-last-child(-n + 3) {
  642. margin-bottom: 0;
  643. }
  644. &:hover {
  645. outline: 2px solid #198cfe;
  646. }
  647. .musicLeft {
  648. display: flex;
  649. align-items: center;
  650. margin-right: 14px;
  651. overflow: hidden;
  652. .iconCon {
  653. position: relative;
  654. .icon {
  655. width: 70px;
  656. height: 70px;
  657. border-radius: 8px;
  658. }
  659. .jxImg {
  660. position: absolute;
  661. left: 0;
  662. top: 0;
  663. width: 34px;
  664. height: 16px;
  665. }
  666. }
  667. .musicInfo {
  668. margin-left: 12px;
  669. overflow: hidden;
  670. .musicTit {
  671. font-weight: 600;
  672. font-size: 15px;
  673. color: #131415;
  674. line-height: 21px;
  675. &::v-deep(.highlighted) {
  676. color: $themeColor;
  677. }
  678. }
  679. .info {
  680. margin-top: 13px;
  681. display: flex;
  682. align-items: center;
  683. .hotInfo {
  684. margin-right: 4px;
  685. padding: 0 4px;
  686. background: #fff3f3;
  687. border-radius: 3px;
  688. border: 1px solid rgba(254, 67, 67, 0.5);
  689. display: flex;
  690. align-items: center;
  691. justify-content: center;
  692. flex-shrink: 0;
  693. line-height: 16px;
  694. & > img {
  695. width: 10px;
  696. height: 12px;
  697. }
  698. & > div {
  699. margin-left: 2px;
  700. font-weight: 400;
  701. font-size: 12px;
  702. color: #fe4343;
  703. }
  704. }
  705. .play {
  706. margin-right: 4px;
  707. flex-shrink: 0;
  708. padding: 0 4px;
  709. background: #ffffff;
  710. border-radius: 3px;
  711. border: 1px solid rgba(243, 130, 26, 0.5);
  712. font-weight: 400;
  713. font-size: 12px;
  714. color: #f3821a;
  715. line-height: 16px;
  716. text-align: center;
  717. }
  718. .sing {
  719. margin-right: 4px;
  720. flex-shrink: 0;
  721. padding: 0 4px;
  722. background: #ffffff;
  723. border-radius: 3px;
  724. border: 1px solid rgba(21, 178, 253, 0.5);
  725. font-weight: 400;
  726. font-size: 12px;
  727. color: #00adff;
  728. line-height: 16px;
  729. text-align: center;
  730. }
  731. .musicUserName {
  732. overflow: hidden;
  733. font-weight: 400;
  734. font-size: 13px;
  735. color: #777777;
  736. line-height: 16px;
  737. }
  738. }
  739. }
  740. }
  741. .musicRight {
  742. flex-shrink: 0;
  743. display: flex;
  744. align-items: center;
  745. .sc {
  746. width: 26px;
  747. height: 26px;
  748. cursor: pointer;
  749. &:hover {
  750. opacity: 0.8;
  751. }
  752. }
  753. .addBtn {
  754. margin-left: 12px;
  755. width: 58px;
  756. height: 26px;
  757. background: #198cfe;
  758. border-radius: 4px;
  759. font-weight: 600;
  760. font-size: 13px;
  761. color: #ffffff;
  762. line-height: 26px;
  763. text-align: center;
  764. cursor: pointer;
  765. &:hover {
  766. opacity: 0.8;
  767. }
  768. }
  769. }
  770. }
  771. }
  772. }
  773. .pagination {
  774. padding: 0 30px;
  775. display: flex;
  776. justify-content: flex-end;
  777. align-items: center;
  778. height: 60px;
  779. }
  780. }
  781. }
  782. }
  783. }
  784. </style>