import{d as t,i as e,x as l,A as s}from"./index.7994470a.js";import{C as c}from"./index.777f4790.js";import{i as o}from"./icon_teacher.40b6f077.js";const r="_liveItem_tfo9r_1",a="_liCover_tfo9r_7",n="_liTitle_tfo9r_16",m="_liUserInfo_tfo9r_27",v="_liteachername_tfo9r_34",u="_liteacherIcon_tfo9r_39",f="_liPrice_tfo9r_47",I="_price_tfo9r_52",h="_classNum_tfo9r_62",g="_num_tfo9r_70",A="_buyNum_tfo9r_71",d="_subjectName_tfo9r_82",N="_iconTimer_tfo9r_93";var i={liveItem:r,liCover:a,liTitle:n,liUserInfo:m,liteachername:v,liteacherIcon:u,liPrice:f,price:I,classNum:h,num:g,buyNum:A,subjectName:d,iconTimer:N},b="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAAAXNSR0IArs4c6QAABFlJREFUWEftl2tsFFUUx/9ndreLtUrd3bQlUtry0MYNEAERqAa6S3gEE8TELZiY+IzhoyKW1MRPKhiTxq98NtHQJhBN0EJ2W4mpdS0J0O1KTQCDXUEQ6cPa1+7OMTOzj7nTeWwbTfjA/dTunHvv757/f849Q7hHBt0jHLgPYlRiwRk5cCtRjbQUBBCACyDwny5alPy8ZuXthcg9L5B9qbjfi/K3mLEPhPVQ9tcNBpgY55lwilk63lkbvFsqVEkg27jHHUg9coiYjgCozG+vTOb8ToU/NDwCjQA4dvvKX+3fNTdnnIAcQV4c/sHHKO9gmcOFYIEglxc9SH5XFUiKepgiX9StUcAshy2IAiHLi3qZ0ag7u1ERTSBmNTvagvplWflvSHLNNHXWbrGUyhJkW0+Pu7KuogtEYae0lvScKDb66/guK5ksQfZejbcy0TH9JkZFlGc+lwdTsowpzmqhBq8I84mPfNXw9Cdm4KYgO4eTvrLZiavMXJlPtLq+IXrdA4vxQc3jGM9mcDA1gH9kzZOkC2QukhHR6GxZdsUZE4lMQfZc62tDFh/ZOouBl31L0eJbqoa9mxrE5ekJgzs0iAKYltL3T6/a/HFJBW33L739IGxw0v4V/zJEciCHhxNITv/tNEWhOv/tqqanHEHC136sdqczN5Xa5LTqq4H6QkYODQ8gOTVumGLmKmKvx73k6+Wbbhn9J0zeMXQuBFAs/6NBY8GLrwXqsd9fq4a+89slDKogBreKHoHykhMQPtu4tdsWZHvyXAQSnzBmQ7dewQevVzVgv3+ZGvr29QtITI6JViW1vMwZxNQSDW7tsAVpTnZHiHBCOJiFRm9ULceBQJ36NDE5ivFsWksIkXpy5W368s513JidElZgoKUnGLIHCSVjIZm5II3IIGr+UqAeb1avsLVSbOwPfJj6WZBMIgp3B8P20oQT0eo04SaYSc2rallz31a5vfisYT0e9ZabwmRYRvuNIZwe+b0gmXJDe0BLYqu325tVWfGZgbP9YC6+vjkO8QbR9lZ+e0hyCyCkSMOMGZYxI8uFc2hnov7vV+/Y6Pj6KgFNl7ramLlQ0Obkw2BC0imW96YwRxdPJLX1rt15tCSQjfGTfleZ9wpAaonXhsU9b+tq0VNENMIeaWVfcNecW9iyaG26+E0ry7Jw6dm6soSHEtF7fU/u+dQs1LYNmHx44gyDQ0575NqRomlyE4R8EEUfHKvYPe82QFlrc7LLl56c7gPhMbFgFvnFyltUUKivknR5xiM1JdY8Z9mlOd4nil8yEjrB1Kx1Yrr8mFwlWp+m69SIoulpdyTxrDWEdYEwaKE0z6Pxu4dBaAWw2EmqnEYjkHD04oZMOyiS65qsZzpmRD+1MX7S7yU+yIznwbwuf0Mr/UauY2Ui5XOCTmUz2ePJLZH/9nPC7BxP/NRR485QUHaTH9ksJJnuoMI9OLD2hf//A6s0SRYWNS9pFrZFabPugxjz9C+YG4kygVcFewAAAABJRU5ErkJggg==",E=t({name:"liveItem",props:{onClick:{type:Function,default:T=>{}},liveInfo:{type:Object,default:{}},coverClass:{type:String,defualt:""}},data(){return{backgroundPic:"",avatar:""}},mounted(){this.backgroundPic=this.liveInfo.backgroundPic+"@base@tag=imgScale&h=192&w=340&m=1",this.avatar=this.liveInfo.avatar+"@base@tag=imgScale&h=80&w=80&m=1"},render(){return e(c,{center:!0,border:!1,class:i.liveItem,onClick:()=>this.onClick(this.liveInfo)},{icon:()=>e("div",{style:{position:"relative"}},[e("img",{class:[i.liCover,this.coverClass],src:this.backgroundPic,crossorigin:"anonymous",style:{objectFit:"cover"}},null),this.liveInfo.subjectName&&e("span",{class:i.subjectName},[this.liveInfo.subjectName])]),title:()=>e("div",null,[e("div",{class:[i.liTitle,"van-ellipsis","itemTitle"]},[this.liveInfo.courseGroupName]),e("div",{class:i.liUserInfo},[e("p",{class:i.liteachername},[e("img",{src:this.liveInfo.avatar?this.avatar:o,class:i.liteacherIcon,crossorigin:"anonymous",style:{objectFit:"cover"}},null),this.liveInfo.teacherName||`\u6E38\u5BA2${this.liveInfo.teacherId}`]),this.liveInfo.courseStartTime&&e("p",null,[e("img",{src:b,class:i.iconTimer},null),l(this.liveInfo.courseStartTime).format("MM\u6708DD\u65E5 HH:mm")])]),e("div",{class:i.liPrice},[e("p",null,[this.liveInfo.coursePrice>0&&e("span",{class:i.price},[e("i",null,[s("\xA5")]),this.liveInfo.coursePrice]),this.liveInfo.coursePrice==0&&e("span",{class:i.price},[s("\u514D\u8D39")]),e("span",{class:i.classNum},[this.liveInfo.courseNum,s("\u8BFE\u65F6")])]),this.liveInfo.existBuy===1&&e("span",{class:i.buyNum},[this.liveInfo.coursePrice==0?"\u5DF2\u9886\u53D6":"\u5DF2\u8D2D\u4E70"])])])})}});export{E as L};