cloudCoachList.vue 23 KB

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