index.041659c0.js 2.8 KB

1
  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 b}from"./icon_album.fa329df6.js";import{_ as z}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,V as c,S as I,X as S,j as s,B as x,O as N}from"./index.c8a33855.js";import{I as _}from"./index.5da3180f.js";import{I as A}from"./icon-play.bc9e7aab.js";const C="_theSong_zefq7_1",F="_item_zefq7_7",T="_content_zefq7_19",w="_top_zefq7_22",D="_tag_zefq7_27",M="_user_zefq7_35",P="_name_zefq7_39",V="_tags_zefq7_50",$="_title_zefq7_60",j="_singer_zefq7_67",B="_play_zefq7_72",k="_mb100_zefq7_77",H="_pImg_zefq7_80",O="_moreSection_zefq7_87",R="_collection_zefq7_95",X="_musicInfo_zefq7_100",E="_info_zefq7_109",G="_shareIcon_zefq7_127",J="_share_zefq7_127",K="_shareMate_zefq7_137",L="_icon_zefq7_147",Q="_tagDiscount_zefq7_168",U="_exquisiteFlag_zefq7_181",W="_songAlbum_zefq7_186";var o={theSong:C,item:F,content:T,top:w,tag:D,user:M,name:P,tags:V,title:$,singer:j,play:B,mb100:k,pImg:H,moreSection:O,collection:R,musicInfo:X,info:E,shareIcon:G,share:J,shareMate:K,icon:L,tagDiscount:Q,exquisiteFlag:U,songAlbum:W};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":b,"../images/icon_album_active.png":z,"../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};