index.fbd2c321.js 2.9 KB

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