index-legacy.d86274ab.js 5.6 KB

1
  1. !function(){function e(e,t,i,o,l,s,n){try{var r=e[s](n),_=r.value}catch(a){return void i(a)}r.done?t(_):Promise.resolve(_).then(o,l)}var t=document.createElement("style");t.innerHTML="._col-steps_yimhl_1{padding:0 0 0 .74667rem;overflow:hidden;background-color:#fff}._col-steps_yimhl_1 ._col-step_yimhl_1{display:block;float:none;padding:.26667rem 0;line-height:.48rem;position:relative;flex:1;color:#7a7a7a;font-size:.34667rem}._col-steps_yimhl_1 ._col-step_yimhl_1:last-child ._col-step__line_yimhl_16{border:0}._col-steps_yimhl_1 ._col-step_circle_yimhl_19{position:absolute;top:.50667rem;left:-.48rem;z-index:1;width:.48rem;height:.48rem;font-size:.32rem;border-radius:50%;background:var(--van-primary);transform:translate(-50%,-50%);text-align:center;line-height:.53333rem;color:#fff}._col-steps_yimhl_1 ._col-step__line_yimhl_16{top:.42667rem;left:-.50667rem;width:0;border-left:.02667rem dashed var(--van-primary);height:100%;position:absolute;transform:background-color .3s}._col-steps_yimhl_1 ._stepSection_yimhl_43 ._stepTitle_yimhl_43{display:flex;align-items:center;justify-content:space-between;font-size:.34667rem;color:#999}._col-steps_yimhl_1 ._stepSection_yimhl_43 ._stepTitle_yimhl_43 ._stepTitleNum_yimhl_50{font-size:.37333rem;font-weight:500}._col-steps_yimhl_1 ._stepSection_yimhl_43 ._stepTitle_yimhl_43 ._active_yimhl_54{color:var(--van-primary)}._col-steps_yimhl_1 ._stepSection_yimhl_43 ._stepContent_yimhl_57{padding-top:.26667rem;font-size:.34667rem;color:#7a7a7a;line-height:.53333rem}._col-steps_yimhl_1 ._videoText_yimhl_63{padding-top:.16rem;color:var(--van-primary);font-size:.37333rem}._col-steps_yimhl_1 ._videoImg_yimhl_68{margin-top:.26667rem;width:4rem;height:2.66667rem;position:relative;border-radius:.10667rem;overflow:hidden}._col-steps_yimhl_1 ._videoImg_yimhl_68 .van-image{width:inherit;height:inherit}._col-steps_yimhl_1 ._videoImg_yimhl_68 ._videoStop_yimhl_80{position:absolute;top:0;right:0;left:0;bottom:0;display:flex;align-items:center;justify-content:center}._videoList_yimhl_90{padding:.42667rem}._videoList_yimhl_90 ._videoTitle_yimhl_93{font-size:.48rem;font-weight:500;color:#333;line-height:.8rem;display:flex;align-items:center}._videoList_yimhl_90 ._videoTitle_yimhl_93 i{display:inline-block;width:.10667rem;height:.48rem;margin-right:.21333rem;border-radius:.05333rem;background-color:var(--van-primary)}._videoList_yimhl_90 ._videoSection_yimhl_109{padding-top:.32rem;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap}._videoList_yimhl_90 ._videoItem_yimhl_116{width:48%;border-radius:.16rem;margin-bottom:.21333rem}._videoList_yimhl_90 .plyr{min-width:50%}\n",document.head.appendChild(t),System.register(["./index-legacy.fba2875c.js","./index-legacy.57355ab1.js"],(function(t){"use strict";var i,o,l,s,n,r,_;return{setters:[function(e){i=e.d,o=e.j,l=e.z,s=e.C,n=e.w,r=e.aR},function(e){_=e.C}],execute:function(){var a={"col-steps":"_col-steps_yimhl_1","col-step":"_col-step_yimhl_1","col-step__line":"_col-step__line_yimhl_16","col-step_circle":"_col-step_circle_yimhl_19",stepSection:"_stepSection_yimhl_43",stepTitle:"_stepTitle_yimhl_43",stepTitleNum:"_stepTitleNum_yimhl_50",active:"_active_yimhl_54",stepContent:"_stepContent_yimhl_57",videoText:"_videoText_yimhl_63",videoImg:"_videoImg_yimhl_68",videoStop:"_videoStop_yimhl_80",videoList:"_videoList_yimhl_90",videoTitle:"_videoTitle_yimhl_93",videoSection:"_videoSection_yimhl_109",videoItem:"_videoItem_yimhl_116"},c=i({name:"VideoList",props:{list:{type:Array,default:[]}},render:function(){return o("div",{class:a.videoList},[o("div",{class:a.videoTitle},[o("i",null,null),l("视频列表")]),this.list.length>0?o("div",{class:a.videoSection},[this.list.map((function(e,t){return o("div",{class:a.videoItem},[o(_,{poster:"./assets/video_default.c4e3ec21.png",src:e.url,preload:"none",height:"82px",currentTime:!1},null),o("p",null,[e.startTime])])}))]):o(s,{btnStatus:!1,classImgSize:"SMALL",tips:"暂无视频"},null)])}});t("C",i({name:"CoursePlanStep",props:{courseId:{type:Number,default:0},hideVideo:{type:Boolean,default:!1},courseInfo:{type:Array,default:[]}},data:function(){return{videoStatus:!1,list:[]}},methods:{onLookVideo:function(t){var i,o=this;return(i=regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n.get("/api-student/liveRoomVideo/queryVideo",{params:{roomUid:t.roomUid}});case 3:i=e.sent,console.log(i),o.list=i.data||[],o.videoStatus=!0,e.next=11;break;case 9:e.prev=9,e.t0=e.catch(0);case 11:case"end":return e.stop()}}),e,null,[[0,9]])})),function(){var t=this,o=arguments;return new Promise((function(l,s){var n=i.apply(t,o);function r(t){e(n,l,s,r,_,"next",t)}function _(t){e(n,l,s,r,_,"throw",t)}r(void 0)}))})()}},render:function(){var e=this;return o("div",{class:a["col-steps"]},[o("div",{class:a["col-steps__items"]},[this.courseInfo.map((function(t,i){return o("div",{class:a["col-step"]},[o("div",{class:a["col-step__title"]},[e.$slots.content?e.$slots.content():o("div",{class:a.stepSection},[o("div",{class:a.stepTitle},[o("span",{class:[a.stepTitleNum,(0===e.courseId||e.courseId===t.id)&&a.active]},[l("第 "),i+1,l(" 课时")]),o("span",{class:a.stepTitleText},[t.courseTime])]),o("div",{class:a.stepContent},[o("p",null,[t.coursePlan]),2===t.liveState&&!e.hideVideo&&o("div",{class:a.videoText,onClick:function(){e.onLookVideo(t)}},[l("查看回放"),">>"])])])]),o("div",{class:a["col-step_circle"]},[i+1]),o("div",{class:a["col-step__line"]},null)])}))]),o(r,{show:this.videoStatus,"onUpdate:show":function(t){return e.videoStatus=t},closeable:!0,round:!0,style:{width:"90%"}},{default:function(){return[e.videoStatus&&o(c,{list:e.list},null)]}})])}}))}}}))}();