1 |
- !function(){function e(e,i,t,o,l,s,n){try{var r=e[s](n),_=r.value}catch(c){return void t(c)}r.done?i(_):Promise.resolve(_).then(o,l)}var i=document.createElement("style");i.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(i),System.register(["./index-legacy.b2528a15.js","./index-legacy.cc0fd5e8.js"],(function(i){"use strict";var t,o,l,s,n,r,_;return{setters:[function(e){t=e.d,o=e.i,l=e.A,s=e.C,n=e.e,r=e.aT},function(e){_=e.C}],execute:function(){var c={"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"},a=t({name:"VideoList",props:{list:{type:Array,default:[]}},render:function(){return o("div",{class:c.videoList},[o("div",{class:c.videoTitle},[o("i",null,null),l("视频列表")]),this.list.length>0?o("div",{class:c.videoSection},[this.list.map((function(e,i){return o("div",{class:c.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)])}});i("C",t({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(i){var t,o=this;return(t=regeneratorRuntime.mark((function e(){var t;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:i.roomUid}});case 3:t=e.sent,console.log(t),o.list=t.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 i=this,o=arguments;return new Promise((function(l,s){var n=t.apply(i,o);function r(i){e(n,l,s,r,_,"next",i)}function _(i){e(n,l,s,r,_,"throw",i)}r(void 0)}))})()}},render:function(){var e=this;return o("div",{class:c["col-steps"]},[o("div",{class:c["col-steps__items"]},[this.courseInfo.map((function(i,t){return o("div",{class:c["col-step"]},[o("div",{class:c["col-step__title"]},[e.$slots.content?e.$slots.content():o("div",{class:c.stepSection},[o("div",{class:c.stepTitle},[o("span",{class:[c.stepTitleNum,(0===e.courseId||e.courseId===i.id)&&c.active]},[l("第 "),t+1,l(" 课时")]),o("span",{class:c.stepTitleText},[i.courseTime])]),o("div",{class:c.stepContent},[o("p",null,[i.coursePlan]),2===i.liveState&&!e.hideVideo&&o("div",{class:c.videoText,onClick:function(){e.onLookVideo(i)}},[l("查看回放"),">>"])])])]),o("div",{class:c["col-step_circle"]},[t+1]),o("div",{class:c["col-step__line"]},null)])}))]),o(r,{show:this.videoStatus,"onUpdate:show":function(i){return e.videoStatus=i},closeable:!0,round:!0,style:{width:"90%"}},{default:function(){return[e.videoStatus&&o(a,{list:e.list},null)]}})])}}))}}}))}();
|