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.5826c51d.js";import{_ as d}from"./icon-xin.575e2987.js";import{_ as z}from"./icon_album.eca1da54.js";import{_ as h}from"./icon_album_active.a67a159e.js";import{_ as y}from"./icon_exquisite.7cf228c5.js";import{_ as v}from"./icon_music_active.5a84cf57.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.f28023e0.js";import{I as _}from"./index.7a1af785.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",$="_title_zefq7_60",R="_singer_zefq7_67",V="_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 o={theSong:A,item:F,content:T,top:j,tag:w,user:D,name:M,tags:P,title:$,singer:R,play:V,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=t=>{const a=`../images/${t}`;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(t,{emit:a}){c(!1),c({}),S();const n=N(()=>t.list.map(e=>(typeof e.paymentType=="string"&&(e.paymentType=e.paymentType.split(",")),{...e})));return()=>s("div",{class:o.theSong},[n.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:i("icon_exquisite.png")},null),e.albumNums>0&&s(_,{class:o.songAlbum,src:i("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"]},[l("-"),e.composer])]),s("div",{class:o.user},[e.favorite===1&&s(_,{src:i("collection_active.png"),class:o.collection},null),s("span",{class:[o.name]},[e.composer?`\u4F5C\u66F2\uFF1A${e.composer}`:`\u4E0A\u4F20\u8005\uFF1A${e.addName}`]),s("div",{class:o.tags},[(e==null?void 0:e.subjectNames)&&(e==null?void 0:e.subjectNames.split(",").map(m=>s("span",null,[m]))),e.musicSheetType==="CONCERT"&&s("span",null,[l("\u5408\u594F")])])])]),s("div",{class:o.play},[t.showPlay&&s(x,{name:C,size:28},null)])]))])}});export{ne as S};
|