video-item.fffaf2b7.js 1.5 KB

1
  1. import{d as n,i as s,F as l,A as o}from"./index.6b776f4b.js";import{I as c}from"./index.7cc0b0e7.js";const a="_videoItem_1azie_1",r="_viCover_1azie_8",t="_viSection_1azie_13",v="_viTitle_1azie_16",u="_viUserNum_1azie_21",_="_viPrice_1azie_26",d="_priceNum_1azie_31",p="_label_1azie_40",N="_subjectName_1azie_43";var i={videoItem:a,viCover:r,viSection:t,viTitle:v,viUserNum:u,viPrice:_,priceNum:d,label:p,subjectName:N},C=n({name:"VideoItem",props:{item:Object,onClick:{type:Function,default:e=>{}}},render(){const e=this.item;return s("div",{class:i.videoItem,onClick:()=>{this.onClick(e)}},[s("div",{style:{position:"relative"}},[s(c,{class:i.viCover,fit:"cover",src:e==null?void 0:e.lessonCoverUrl},null),s("span",{class:i.subjectName},[e==null?void 0:e.lessonSubjectName])]),s("div",{class:i.viSection},[s("div",{class:[i.viTitle,"van-ellipsis"]},[e==null?void 0:e.lessonName]),s("div",{class:i.viPrice},[s("span",{class:i.priceNum},[(e==null?void 0:e.lessonPrice)>0&&s(l,null,[s("i",null,[o("\uFFE5")]),e==null?void 0:e.lessonPrice]),(e==null?void 0:e.lessonPrice)<=0&&e.auditVersion!==0&&s(l,null,[s("i",null,[o("\uFFE5")]),o("0")]),(e==null?void 0:e.lessonPrice)<=0&&e.auditVersion===0&&s(l,null,[o("\u514D\u8D39")])]),s("span",{class:i.label},[o("/"),e==null?void 0:e.lessonCount,o("\u8BFE\u65F6")])]),s("div",{class:i.viUserNum},[e==null?void 0:e.countStudent,o("\u4EBA\u5DF2"),(e==null?void 0:e.lessonPrice)<=0&&e.auditVersion===0?"\u9886\u53D6":"\u8D2D\u4E70"])])])}});export{C as V};