1 |
- import{h as r}from"./hold.c2fff6ac.js";import{l as u,s as n}from"./lineStart.fb76406f.js";import{p as c}from"./player.8b5ee2bb.js";import{d,r as p,S as _,f as b,c as t,a as l,F as h}from"./vendor.1514baa4.js";const v="_itemWrap_1qjns_1",y="_albumType_1qjns_7",f="_hold_1qjns_24",g="_masker_1qjns_28",j="_showPaly_1qjns_1",B="_startImage_1qjns_83",C="_itemBottom_1qjns_107",q="_itemBottomR_1qjns_116",T="_itemBottomL_1qjns_119";var e={itemWrap:v,albumType:y,hold:f,masker:g,showPaly:j,startImage:B,itemBottom:C,itemBottomR:q,itemBottomL:T},S=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(s){const a=p({detail:s.detail});_(()=>s.detail,i=>{a.detail=i});const m=b(),o=()=>{m.push({path:"/albumDetail",query:{id:a.detail.id}})};return()=>t(h,null,[t("div",{class:e.itemWrap,onClick:()=>{o()}},[a.detail.paymentType==="CHARGE"&&t("span",{class:e.albumType},[l("\u4ED8\u8D39")]),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,l("\u9996")])]),t("div",{class:e.itemBottomR},[t("span",null,[a.detail.albumFavoriteCount,l("\u6536\u85CF")])])])])])}});export{S as a};
|