index.3dfdbf1b.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.ff962490.js";import{_ as z}from"./icon-xin.62588855.js";import{_ as d}from"./icon_album.ed729d4a.js";import{_ as h}from"./icon_album_active.469423f9.js";import{_ as y}from"./icon_exquisite.4b18ad76.js";import{_ as v}from"./icon_music_active.1e7b47ef.js";import{d as S,S as c,P as I,V as x,j as s,z as l,M as N}from"./index.394decd7.js";import{I as _}from"./index.ae2dd816.js";import{I as C}from"./icon-play.bc9e7aab.js";const F="_theSong_zefq7_1",T="_item_zefq7_7",A="_content_zefq7_19",M="_top_zefq7_22",P="_tag_zefq7_27",j="_user_zefq7_35",w="_name_zefq7_39",D="_tags_zefq7_50",V="_title_zefq7_60",$="_singer_zefq7_67",R="_play_zefq7_72",k="_mb100_zefq7_77",B="_pImg_zefq7_80",E="_moreSection_zefq7_87",H="_collection_zefq7_95",O="_musicInfo_zefq7_100",G="_info_zefq7_109",J="_shareIcon_zefq7_127",K="_share_zefq7_127",L="_shareMate_zefq7_137",Q="_icon_zefq7_147",U="_tagDiscount_zefq7_168",W="_exquisiteFlag_zefq7_181",X="_songAlbum_zefq7_186";var o={theSong:F,item:T,content:A,top:M,tag:P,user:j,name:w,tags:D,title:V,singer:$,play:R,mb100:k,pImg:B,moreSection:E,collection:H,musicInfo:O,info:G,shareIcon:J,share:K,shareMate:L,icon:Q,tagDiscount:U,exquisiteFlag:W,songAlbum:X};const i=t=>{const a=`../images/${t}`;return{"../images/collection.png":g,"../images/collection_active.png":r,"../images/icon-xin.png":z,"../images/icon_ai.png":p,"../images/icon_album.png":d,"../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=S({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 n=x(()=>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(N,{name:C,size:28},null)])]))])}});export{ne as S};