1 |
- !function(){var e=document.createElement("style");e.innerHTML="._course_rysfo_1{margin:.26667rem .37333rem 0;overflow:hidden;border-radius:.26667rem}._courseItem_rysfo_6 .van-cell__title,._courseItem_rysfo_6 .van-cell__value{flex:1 auto}._courseTimer_rysfo_10{display:flex;align-items:center;font-size:.34667rem;color:#666}._courseTimer_rysfo_10 img{margin-right:.16rem;width:.42667rem;height:.42667rem}._courseNum_rysfo_21{display:flex;align-items:center;justify-content:flex-end;font-size:.37333rem;color:#999}._courseNum_rysfo_21 img{width:.48rem;height:.48rem}._courseNum_rysfo_21 ._munis_rysfo_32{font-size:.37333rem;color:var(--van-primary)}._courseInfo_rysfo_36{display:flex;align-items:center;justify-content:space-between}._courseInfo_rysfo_36 .van-button{padding:.13333rem .4rem;opacity:1}._courseImg_rysfo_45{margin-right:.32rem;width:1.12rem;height:1.12rem;background:linear-gradient(180deg,#ffbc90 0%,#ff7021 100%);border-radius:.13333rem;display:flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0}._courseName_rysfo_57{flex:1 auto}._courseName_rysfo_57 ._name_rysfo_60{font-size:.42667rem;font-weight:500;color:#1a1a1a;line-height:.74667rem;max-width:4.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._courseName_rysfo_57 ._subject_rysfo_70{margin-right:.13333rem;background:#fff1de;border-radius:.10667rem;font-size:.32rem;color:#ff8c00;line-height:.42667rem;padding:0 .10667rem}._courseOperation_rysfo_79{padding-top:.4rem;font-size:.37333rem;color:var(--van-primary);line-height:.53333rem}._courseOperation_rysfo_79 .van-col{text-align:center}\n",document.head.appendChild(e),System.register(["./title_timers-legacy.563f8ecd.js","./icon_name_active-legacy.98cddefe.js","./icon_tips-legacy.1911ff27.js","./index-legacy.f8641610.js","./index-legacy.fc510843.js","./index-legacy.c36297f9.js","./index-legacy.8bfe8003.js","./icon_timer2-legacy.b6c78faa.js","./index-legacy.8361d47d.js"],(function(e){"use strict";var n,i,t,o,r,s,a,c,u,m,_,f,l,g,d,p,y,h,v,b,j,x,C,w,T,I,N,k,z,D,A,H;return{setters:[function(e){n=e._,i=e.a,t=e.b,o=e.c,r=e.d,s=e.e,a=e.f,c=e.g,u=e.h,m=e.i,_=e.j,f=e.k,l=e.m,g=e.n,d=e.o,p=e.p},function(e){y=e._,h=e.a,v=e.b},function(e){b=e._},function(e){j=e.d,x=e.x,C=e.p,w=e.i,T=e.A,I=e.B},function(e){N=e.C},function(e){k=e.C},function(e){z=e.R,D=e.C},function(e){A=e.i},function(e){H=e.c}],execute:function(){var O="_course_rysfo_1",R="_courseItem_rysfo_6",S="_courseTimer_rysfo_10",Y="_courseNum_rysfo_21",F="_munis_rysfo_32",M="_courseInfo_rysfo_36",B="_courseImg_rysfo_45",G="_courseName_rysfo_57",J="_name_rysfo_60",E="_subject_rysfo_70",L="_courseOperation_rysfo_79",P=function(e){var j="../../images/".concat(e);return{"../../images/icon_arrow.png":n,"../../images/icon_class_plan.png":i,"../../images/icon_education.png":y,"../../images/icon_education_active.png":h,"../../images/icon_freeze_timer.png":t,"../../images/icon_invite_student.png":o,"../../images/icon_last_timer.png":r,"../../images/icon_message.png":s,"../../images/icon_music_account.png":a,"../../images/icon_name_active.png":v,"../../images/icon_num.png":c,"../../images/icon_timers.png":u,"../../images/icon_tips.png":b,"../../images/logo.png":m,"../../images/paino_bg.png":_,"../../images/room_bg.png":f,"../../images/select_timers.png":l,"../../images/select_timers_bg.png":g,"../../images/share_bg.png":d,"../../images/title_timers.png":p}[j].default};e("C",j({name:"course",props:{item:{type:Object},operation:{type:Boolean,default:!0},onStudentAdjust:{type:Function,default:function(e){}},onTimeAdjust:{type:Function,default:function(e){}},onCourseDelete:{type:Function,default:function(e){}}},computed:{timer:function(){var e=this.item;return x(e.startTime).format("YYYY/MM/DD HH:mm")+" ~ "+x(e.endTime).format("HH:mm")}},methods:{onJoinChat:function(e){e.stopPropagation();var n=this.item;C({api:"joinChatGroup",content:{type:"multi",id:n.imGroupId}})},onDetail:function(){var e;C({api:"openCourseDetail",content:{type:"pianoRoom",courseId:null===(e=this.item)||void 0===e?void 0:e.courseId}})}},render:function(){var e=this,n=this.item;return w(k,{class:O,border:!1},{default:function(){return[w(N,{center:!0,class:R,onClick:e.onDetail},{title:function(){return w("div",{class:S},[w("img",{src:A},null),w("span",null,[e.timer])])},value:function(){return w("div",{class:Y},[w("span",null,[n.studentCount,T("人")]),w("img",{src:P("icon_num.png"),style:{marginRight:"14px"}},null),e.operation?w("img",{onClick:e.onJoinChat,src:P("icon_message.png")},null):w("span",{class:F},[T("-"),n.consumTime,T("分钟")])])}}),w(N,null,{default:function(){return[w("div",{class:M,onClick:e.onDetail},[w("div",{class:B},[T("小课")]),w("div",{class:G},[w("p",{class:J},[n.groupName]),w("p",null,[w("span",{class:E},[n.subjectName])])]),w(I,{type:"NOT_START"!==n.status?"default":"primary",round:!0,disabled:!0,size:"small"},{default:function(){return[H[n.status]]}})]),e.operation&&w(z,{class:L},{default:function(){return[w(D,{span:8,class:"van-hairline--right"},{default:function(){return[w("span",{onClick:function(){e.onStudentAdjust(e.item)}},[T("学员调整")])]}}),w(D,{span:8,class:"van-hairline--right"},{default:function(){return[w("span",{onClick:function(){e.onTimeAdjust(e.item)}},[T("时间调整")])]}}),w(D,{span:8},{default:function(){return[w("span",{onClick:function(){e.onCourseDelete(e.item)}},[T("删除课程")])]}})]}})]}})]}})}}))}}}))}();
|