cloudCoachList.vue 24 KB

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