import{h as r}from"./hold.1dbe0dcf.js";import{l as u,s as n}from"./lineStart.9115d075.js";import{p as c}from"./player.ee188b71.js";import{d,r as h,w as _,u as p,c as t,a as o,F as b}from"./index.2bf82915.js";const g="_itemWrap_1h7x4_1",v="_hold_1h7x4_7",B="_masker_1h7x4_11",x="_showPaly_1h7x4_1",C="_startImage_1h7x4_64",f="_itemBottom_1h7x4_88",y="_itemBottomR_1h7x4_97",F="_itemBottomL_1h7x4_100",e={itemWrap:g,hold:v,masker:B,showPaly:x,startImage:C,itemBottom:f,itemBottomR:y,itemBottomL:F},R=d({name:"albumItem",props:{detail:{type:Object,default:{albumCoverUrl:"",albumDesc:"",albumFavoriteCount:0,albumName:"",albumStatus:0,albumTag:"",auditVersion:0,createBy:0,createTime:"",delFlag:null,hotFlag:null,id:0,musicSheetCount:0,musicTagNames:"",sortNumber:0,topFlag:null,updateBy:34,updateTime:"",favorite:0}}},setup(l){const a=h({detail:l.detail});_(()=>l.detail,i=>{a.detail=i});const m=p(),s=()=>{m.push({path:"/albumDetail",query:{id:a.detail.id}})};return()=>t(b,null,[t("div",{class:e.itemWrap,onClick:()=>{s()}},[t("img",{class:e.startImage,src:a.detail.favorite?u:n,alt:""},null),t("div",{class:e.hold},[t("div",{class:e.masker},[t("img",{src:c,alt:""},null)]),t("img",{src:a.detail.albumCoverUrl?a.detail.albumCoverUrl:r,alt:""},null)]),t("h2",null,[a.detail.albumName]),t("div",{class:e.itemBottom},[t("div",{class:e.itemBottomL},[t("span",null,[a.detail.musicSheetCount,o("\u9996")])]),t("div",{class:e.itemBottomR},[t("span",null,[a.detail.albumFavoriteCount,o("\u6536\u85CF")])])])])])}});export{R as a};
