import{d as r,a as s,I as c,j as i,F as v}from"./vendor.a0144ce9.js";/* empty css               */import{i as n}from"./icon_teacher.40b6f077.js";const a="_videoItem_ck7bl_1",l="_viCover_ck7bl_8",t="_viSection_ck7bl_13",_="_viTitle_ck7bl_16",u="_viUserInfo_ck7bl_21",d="_viUserLogo_ck7bl_28",b="_viUserName_ck7bl_35",N="_viUserNum_ck7bl_39",U="_viPrice_ck7bl_42",m="_subjectName_ck7bl_47";var o={videoItem:a,viCover:l,viSection:t,viTitle:_,viUserInfo:u,viUserLogo:d,viUserName:b,viUserNum:N,viPrice:U,subjectName:m},f=r({name:"VideoItem",props:{item:Object,onClick:{type:Function,default:e=>{}}},render(){const e=this.item;return s("div",{class:o.videoItem,onClick:()=>{this.onClick(e)}},[s("div",{style:{position:"relative"}},[s(c,{class:o.viCover,fit:"cover",src:e==null?void 0:e.lessonCoverUrl},null),s("span",{class:o.subjectName},[e==null?void 0:e.lessonSubjectName])]),s("div",{class:o.viSection},[s("div",{class:[o.viTitle,"van-ellipsis"]},[e==null?void 0:e.lessonName]),s("div",{class:o.viUserInfo},[s(c,{src:(e==null?void 0:e.avatar)||n,class:o.viUserLogo},null),s("span",{class:[o.viUserName,"van-hairline--right"]},[(e==null?void 0:e.userName)||`\u6E38\u5BA2${(e==null?void 0:e.teacherId)||""}`]),s("span",{class:o.viUserNum},[e==null?void 0:e.countStudent,i("\u4EBA\u5DF2\u8D2D\u4E70")])]),s("div",{class:o.viPrice},[(e==null?void 0:e.lessonPrice)>0&&s(v,null,[i("\uFFE5"),e==null?void 0:e.lessonPrice,i("/")]),e==null?void 0:e.lessonCount,i("\u8BFE\u65F6")])])])}});export{f as V};
