1 |
- import{h as r}from"./hold.c2fff6ac.js";import{i as u,a as n}from"./lineStart.9340661e.js";import{p as c}from"./player.8b5ee2bb.js";import{d,r as p,a0 as _,g as b,c as t,a as l,F as v}from"./vendor.63aa8b19.js";const h="_itemWrap_1qjns_1",g="_albumType_1qjns_7",y="_hold_1qjns_24",j="_masker_1qjns_28",B="_showPaly_1qjns_1",f="_startImage_1qjns_83",C="_itemBottom_1qjns_107",q="_itemBottomR_1qjns_116",T="_itemBottomL_1qjns_119";var e={itemWrap:h,albumType:g,hold:y,masker:j,showPaly:B,startImage:f,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 o=b(),m=()=>{o.push({path:"/albumDetail",query:{id:a.detail.id}})};return()=>t(v,null,[t("div",{class:e.itemWrap,onClick:()=>{m()}},[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};
|