1 |
- import{_ as m,a as g,b as r,c as p,d as u,e as f,f as q}from"./icon_uploader.9f387137.js";import{_ as d}from"./icon-xin.df8ab2d7.js";import{_ as z}from"./icon_album.fa329df6.js";import{_ as b}from"./icon_album_active.ce98b2a8.js";import{_ as h}from"./icon_exquisite.69e33c80.js";import{_ as y}from"./icon_music_active.3b316ab8.js";import{d as v,S as c,P as I,V as S,j as s,z as x,M as N}from"./index.e6d6174e.js";import{I as _}from"./index.67c54471.js";import{I as A}from"./icon-play.bc9e7aab.js";const C="_theSong_zefq7_1",F="_item_zefq7_7",T="_content_zefq7_19",M="_top_zefq7_22",P="_tag_zefq7_27",w="_user_zefq7_35",D="_name_zefq7_39",V="_tags_zefq7_50",$="_title_zefq7_60",j="_singer_zefq7_67",k="_play_zefq7_72",B="_mb100_zefq7_77",H="_pImg_zefq7_80",R="_moreSection_zefq7_87",E="_collection_zefq7_95",G="_musicInfo_zefq7_100",J="_info_zefq7_109",K="_shareIcon_zefq7_127",L="_share_zefq7_127",O="_shareMate_zefq7_137",Q="_icon_zefq7_147",U="_tagDiscount_zefq7_168",W="_exquisiteFlag_zefq7_181",X="_songAlbum_zefq7_186";var o={theSong:C,item:F,content:T,top:M,tag:P,user:w,name:D,tags:V,title:$,singer:j,play:k,mb100:B,pImg:H,moreSection:R,collection:E,musicInfo:G,info:J,shareIcon:K,share:L,shareMate:O,icon:Q,tagDiscount:U,exquisiteFlag:W,songAlbum:X};const n=t=>{const a=`../images/${t}`;return{"../images/collection.png":m,"../images/collection_active.png":g,"../images/icon-xin.png":d,"../images/icon_ai.png":r,"../images/icon_album.png":z,"../images/icon_album_active.png":b,"../images/icon_author.png":p,"../images/icon_download.png":u,"../images/icon_exquisite.png":h,"../images/icon_music_active.png":y,"../images/icon_share.png":f,"../images/icon_uploader.png":q}[a].default};var ie=v({name:"TheSong",props:{list:{type:Array,default:()=>[]},showPlay:{type:Boolean,default:!0},musicNameClass:{type:String},authorClass:{type:String}},emits:["detail"],setup(t,{emit:a}){c(!1),c({}),I();const i=S(()=>t.list.map(e=>(typeof e.paymentType=="string"&&(e.paymentType=e.paymentType.split(",")),{...e})));return()=>s("div",{class:o.theSong},[i.value.map(e=>s("div",{class:o.item,onClick:()=>a("detail",e)},[s("div",{class:o.content},[s("div",{class:o.top},[e.exquisiteFlag===1&&s(_,{class:o.exquisiteFlag,src:n("icon_exquisite.png")},null),e.albumNums>0&&s(_,{class:o.songAlbum,src:n("icon_album_active.png")},null),s("span",{class:[o.title,t.musicNameClass,"van-ellipsis"]},[e.musicSheetName]),s("span",{class:[o.singer,t.authorClass,"van-ellipsis"]},[x("-"),e.composer])]),s("div",{class:o.user},[e.favorite===1&&s(_,{src:n("collection_active.png"),class:o.collection},null),s("span",{class:[o.name]},[e.addName?`\u4E0A\u4F20\u8005\uFF1A${e.addName}`:`\u4F5C\u66F2\uFF1A${e.composer}`]),s("div",{class:o.tags},[e==null?void 0:e.subjectNames.split(",").map(l=>s("span",null,[l]))])])]),s("div",{class:o.play},[t.showPlay&&s(N,{name:A,size:28},null)])]))])}});export{ie as S};
|