item.4f03a0ae.js 2.0 KB

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