import{d as i,c as e,bK as o,a as s}from"./index.5ba23dfc.js";var a=i({name:"item",props:{item:{type:Object,default:()=>({})}},render(){const t=this.item;return e("div",{class:"border border-[#E0E0E0] box-border rounded-[10px] w-[218px] m-auto overflow-hidden relative transition-all cursor-pointer",onClick:()=>{console.log(t),t.type==="video"&&this.$router.push({path:"/videoDetail",query:{id:t.id}})}},[e("div",{class:"relative"},[e(o,{class:"w-full h-[122px] align-middle",fit:"cover",src:t.backgroundPic},null),e("div",{class:"text-sm text-[#52FFDC] h-7 leading-7 px-3 flex items-center justify-end absolute left-0 right-0 bottom-0 bg-black/60"},[e("i",{class:"w-1 h-1 bg-[#52FFDC] rounded-full mr-1.5 inline-block"},null),t.studentCount,s("\u4EBA\u5DF2\u8D2D\u4E70")])]),e("div",{class:"text-base px-2.5 pt-2 text-[#666666] leading-none font-semibold whitespace-nowrap overflow-hidden text-ellipsis"},[t.courseGroupName]),t.courseStartTime&&e("p",{class:"text-[#999] text-xs px-2.5 leading-none pt-1.5"},[s("\u5F00\u8BFE\u65F6\u95F4\uFF1A"),t.courseStartTime]),e("div",{class:"mx-2.5 pt-1.5 pb-2 flex items-center justify-between"},[e("div",{class:"text-xl text-[#F90000] font-semibold leading-none"},[e("span",{class:"text-sm leading-7"},[s("\uFFE5")]),t.coursePrice]),e("div",{class:"text-base text-[#FF5F22] leading-none"},[t.courseNum,s("\u8BFE\u65F6")])])])}});export{a as I};
