live-item-legacy.ad0abf6d.js 5.6 KB

1
  1. !function(){var e=document.createElement("style");e.innerHTML="._liveItem_tfo9r_1{margin:.26667rem .26667rem 0;width:auto!important;border-radius:.21333rem;padding:.26667rem}._liveItem_tfo9r_1 ._liCover_tfo9r_7{width:4.53333rem;height:2.56rem;background:#c6c7cb;border-radius:.21333rem;overflow:hidden;margin-right:.21333rem;vertical-align:middle}._liveItem_tfo9r_1 ._liTitle_tfo9r_16{padding-top:.10667rem;font-size:.37333rem;font-weight:600;color:#333;line-height:.53333rem;max-width:4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._liveItem_tfo9r_1 ._liUserInfo_tfo9r_27{padding-top:.10667rem;padding-bottom:.24rem;font-size:.32rem;color:#6a6a6a;line-height:.42667rem}._liveItem_tfo9r_1 ._liteachername_tfo9r_34{display:flex;align-items:center;margin-bottom:.16rem}._liveItem_tfo9r_1 ._liteacherIcon_tfo9r_39{width:.48rem;height:.48rem;border-radius:50%;overflow:hidden;margin-right:.10667rem;flex-shrink:0}._liveItem_tfo9r_1 ._liPrice_tfo9r_47{display:flex;align-items:center;justify-content:space-between}._liveItem_tfo9r_1 ._liPrice_tfo9r_47 ._price_tfo9r_52{color:#fa6400;font-size:.37333rem;margin-right:.26667rem;font-weight:600}._liveItem_tfo9r_1 ._liPrice_tfo9r_47 ._price_tfo9r_52 i{font-style:normal;font-size:.29333rem}._liveItem_tfo9r_1 ._liPrice_tfo9r_47 ._classNum_tfo9r_62{background:#fff1de;border-radius:.10667rem;font-size:.32rem;color:#ff9300;line-height:.48rem;padding:.02667rem .10667rem}._liveItem_tfo9r_1 ._liPrice_tfo9r_47 ._num_tfo9r_70,._liveItem_tfo9r_1 ._liPrice_tfo9r_47 ._buyNum_tfo9r_71{font-size:.32rem;color:#ff802c;line-height:.48rem}._liveItem_tfo9r_1 ._liPrice_tfo9r_47 ._buyNum_tfo9r_71{color:#999;display:flex;align-items:center;line-height:1}._liveItem_tfo9r_1 ._subjectName_tfo9r_82{position:absolute;top:.21333rem;left:.21333rem;font-size:.32rem;padding:.08rem .13333rem;color:#fff;line-height:1;border-radius:.02667rem;background:rgba(0,0,0,.29)}._liveItem_tfo9r_1 ._iconTimer_tfo9r_93{width:.45333rem;height:.45333rem;vertical-align:bottom}\n",document.head.appendChild(e),System.register(["./ResizeObserver.es-legacy.8d60aee1.js","./index-legacy.610f0a70.js","./icon_teacher-legacy.42ba77b1.js"],(function(e){"use strict";var r,t,i,o,l,n,a;return{setters:[function(e){r=e.d,t=e.j,i=e.w,o=e.A,l=e.F},function(e){n=e.C},function(e){a=e.i}],execute:function(){var c="_liveItem_tfo9r_1",s="_liCover_tfo9r_7",_="_liTitle_tfo9r_16",f="_liUserInfo_tfo9r_27",m="_liteachername_tfo9r_34",u="_liteacherIcon_tfo9r_39",v="_liPrice_tfo9r_47",d="_price_tfo9r_52",g="_classNum_tfo9r_62",h="_buyNum_tfo9r_71",I="_subjectName_tfo9r_82",b="_iconTimer_tfo9r_93";e("L",r({name:"liveItem",props:{onClick:{type:Function,default:function(e){}},liveInfo:{type:Object,default:{}},coverClass:{type:String,defualt:""}},data:function(){return{backgroundPic:"",avatar:""}},mounted:function(){this.backgroundPic=this.liveInfo.backgroundPic+"?t"+ +new Date,this.avatar=this.liveInfo.avatar+"?t"+ +new Date},render:function(){var e=this;return t(n,{center:!0,border:!1,class:c,onClick:function(){return e.onClick(e.liveInfo)}},{icon:function(){return t("div",{style:{position:"relative"}},[t("img",{class:[s,e.coverClass],src:e.backgroundPic,crossorigin:"anonymous",style:{objectFit:"cover"}},null),e.liveInfo.subjectName&&t("span",{class:I},[e.liveInfo.subjectName])])},title:function(){return t("div",null,[t("div",{class:[_,"van-ellipsis","itemTitle"]},[e.liveInfo.courseGroupName]),t("div",{class:f},[t("p",{class:m},[t("img",{src:e.liveInfo.avatar?e.avatar:a,class:u,crossorigin:"anonymous",style:{objectFit:"cover"}},null),e.liveInfo.teacherName||"游客".concat(e.liveInfo.teacherId)]),e.liveInfo.courseSt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LYqu325tVWfGZgbP9YC6+vjkO8QbR9lZ+e0hyCyCkSMOMGZYxI8uFc2hnov7vV+/Y6Pj6KgFNl7ramLlQ0Obkw2BC0imW96YwRxdPJLX1rt15tCSQjfGTfleZ9wpAaonXhsU9b+tq0VNENMIeaWVfcNecW9iyaG26+E0ry7Jw6dm6soSHEtF7fU/u+dQs1LYNmHx44gyDQ0575NqRomlyE4R8EEUfHKvYPe82QFlrc7LLl56c7gPhMbFgFvnFyltUUKivknR5xiM1JdY8Z9mlOd4nil8yEjrB1Kx1Yrr8mFwlWp+m69SIoulpdyTxrDWEdYEwaKE0z6Pxu4dBaAWw2EmqnEYjkHD04oZMOyiS65qsZzpmRD+1MX7S7yU+yIznwbwuf0Mr/UauY2Ui5XOCTmUz2ePJLZH/9nPC7BxP/NRR485QUHaTH9ksJJnuoMI9OLD2hf//A6s0SRYWNS9pFrZFabPugxjz9C+YG4kygVcFewAAAABJRU5ErkJggg==",class:b},null),i(e.liveInfo.courseStartTime).format("MM月DD日 HH:mm")])]),t("div",{class:v},[t("p",null,["VIP"===e.liveInfo.payType?t("span",{class:d,style:{color:"#C76E21"}},[o("会员")]):t(l,null,[e.liveInfo.coursePrice>0&&t("span",{class:d},[t("i",null,[o("¥")]),e.liveInfo.coursePrice]),0==e.liveInfo.coursePrice&&t("span",{class:d},[o("免费")])]),t("span",{class:g},[e.liveInfo.courseNum,o("课时")])]),1===e.liveInfo.existBuy&&t("span",{class:h},[o("学习")])])])}})}}))}}}))}();