video-item-legacy.e3d1616d.js 2.5 KB

1
  1. !function(){var e=document.createElement("style");e.innerHTML="._videoItem_1azie_1{border-radius:.21333rem;background-color:#fff;overflow:hidden;width:4.48rem;margin-bottom:.32rem}._videoItem_1azie_1 ._viCover_1azie_8{height:2.50667rem;width:100%;vertical-align:middle}._videoItem_1azie_1 ._viSection_1azie_13{padding:.21333rem .32rem .34667rem}._videoItem_1azie_1 ._viTitle_1azie_16{font-size:.37333rem;color:#1a1a1a;line-height:.53333rem}._videoItem_1azie_1 ._viUserNum_1azie_21{padding-top:.10667rem;color:#ff802c;font-size:.32rem}._videoItem_1azie_1 ._viPrice_1azie_26{padding-top:.26667rem;font-size:.37333rem;color:#999}._videoItem_1azie_1 ._viPrice_1azie_26 ._priceNum_1azie_31{color:red;font-size:.48rem;font-weight:700}._videoItem_1azie_1 ._viPrice_1azie_26 ._priceNum_1azie_31 i{font-size:.4rem;font-style:normal}._videoItem_1azie_1 ._viPrice_1azie_26 ._label_1azie_40{padding-left:.21333rem}._videoItem_1azie_1 ._subjectName_1azie_43{position:absolute;bottom:.16rem;right:.16rem;font-size:.26667rem;padding:.08rem .13333rem;color:#fff;line-height:1;border-radius:.05333rem;background:rgba(0,0,0,.29)}\n",document.head.appendChild(e),System.register(["./index-legacy.fba2875c.js","./index-legacy.d92f7da7.js"],(function(e){"use strict";var i,o,n,_,l;return{setters:[function(e){i=e.d,o=e.j,n=e.F,_=e.z},function(e){l=e.I}],execute:function(){var t="_videoItem_1azie_1",a="_viCover_1azie_8",r="_viSection_1azie_13",s="_viTitle_1azie_16",d="_viUserNum_1azie_21",c="_viPrice_1azie_26",m="_priceNum_1azie_31",v="_label_1azie_40",u="_subjectName_1azie_43";e("V",i({name:"VideoItem",props:{item:Object,onClick:{type:Function,default:function(e){}}},render:function(){var e=this,i=this.item;return o("div",{class:t,onClick:function(){e.onClick(i)}},[o("div",{style:{position:"relative"}},[o(l,{class:a,fit:"cover",src:null==i?void 0:i.lessonCoverUrl},null),o("span",{class:u},[null==i?void 0:i.lessonSubjectName])]),o("div",{class:r},[o("div",{class:[s,"van-ellipsis"]},[null==i?void 0:i.lessonName]),o("div",{class:c},[o("span",{class:m},[(null==i?void 0:i.lessonPrice)>0&&o(n,null,[o("i",null,[_("¥")]),null==i?void 0:i.lessonPrice]),(null==i?void 0:i.lessonPrice)<=0&&0!==i.auditVersion&&o(n,null,[o("i",null,[_("¥")]),_("0")]),(null==i?void 0:i.lessonPrice)<=0&&0===i.auditVersion&&o(n,null,[_("免费")])]),o("span",{class:v},[_("/"),null==i?void 0:i.lessonCount,_("课时")])]),o("div",{class:d},[null==i?void 0:i.countStudent,_("人已"),(null==i?void 0:i.lessonPrice)<=0&&0===i.auditVersion?"领取":"购买"])])])}}))}}}))}();