item.63afbe05.js 2.1 KB

1
  1. import{d as h,r as n,f as _,S as m,c as t,a as g}from"./vendor.402ecc1a.js";const l="_liveClass_13hh6_1",u="_badge_13hh6_21",A="_itemWrap_13hh6_28",p="_left_13hh6_49",d="_imgWrap_13hh6_54",f="_textWrap_13hh6_61",B="_authorInfo_13hh6_69",v="_icon_13hh6_79",C="_authorName_13hh6_86",W="_tagList_13hh6_91",I="_tag_13hh6_91",N="_right_13hh6_105",k="_arrow_13hh6_111",y="_touchButton_13hh6_116",w="_vip_13hh6_127",E="_free_13hh6_131",x="_charge_13hh6_135";var a={liveClass:l,badge:u,itemWrap:A,left:p,imgWrap:d,textWrap:f,authorInfo:B,icon:v,authorName:C,tagList:W,tag:I,right:N,arrow:k,touchButton:y,vip:w,free:E,charge:x},J="./assets/music.24d07fa6.png",L="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAPlJREFUWEft2LENAiEUBuB3tlaUOIyJK1gwgreAA9BZOcHlmttBK9dxBhJzuRgSCxtN4P0/kgg1kC8/JLxHJ5WPrnKfNKD2hFqCP0lwGIbDsizWGHNyzj20iG/rk494HMfNPM/316YXY8yeiUwGeu9X1tqbiOxKIJOBETVN0zqEcBWRLRuZBSyJzAaWQqqAJZBqIBsJATKRMCALCQUykHAgGkkBIpE04Afkue/7Y0px8b9A1HtNSRCFi1cBDkTi4EA0Dgpk4GBAFg4CZOLUQDZOBSyBywaWwmUBq287q2/cY+xVf32klEqIufC3GIF636MBtYm2BLUJPgHTXfIpPDsbwQAAAABJRU5ErkJggg==";const c={CHARGE:"\u70B9\u64AD",FREE:"\u514D\u8D39",VIP:"VIP"};var b=h({name:"music-item",props:{item:{type:Object,default:()=>({})},onClick:{type:Function,default:s=>{}}},setup(s){const e=n({item:s.item}),o=_();m(()=>s.item,i=>{e.item=i});const r=()=>{o.push({path:"/muiscDetial",query:{id:e.item.id}})};return()=>{var i;return t("div",{onClick:()=>{s.onClick(e.item)}},[t("div",{class:a.itemWrap,onClick:()=>r()},[t("div",{class:a.left},[t("div",{class:a.imgWrap},[t("img",{src:e.item.titleImg||J,alt:""},null)]),t("div",{class:a.textWrap},[t("p",null,[e.item.musicSheetName,t("div",{class:[a.touchButton,a[(i=e.item.chargeType)==null?void 0:i.toLocaleLowerCase()]]},[c[e.item.chargeType]?c[e.item.chargeType]:"\u70B9\u64AD"])]),t("div",{class:a.authorInfo},[t("span",null,[g("\u4F5C\u66F2: "),e.item.composer])]),t("div",{class:a.tagList},[e.item.subjectNames?t("div",{class:a.tag},[e.item.subjectNames]):null])])]),t("div",{class:a.right},[t("img",{class:a.arrow,src:L,alt:""},null)])])])}}});export{b as M,a as s};