1 |
- import{d as l,j as e,z as o,C as d,w as c,aR as a}from"./index.e6d6174e.js";import{C as n}from"./index.4a53da74.js";const p="_stepSection_yimhl_43",_="_stepTitle_yimhl_43",u="_stepTitleNum_yimhl_50",r="_active_yimhl_54",v="_stepContent_yimhl_57",m="_videoText_yimhl_63",h="_videoImg_yimhl_68",y="_videoStop_yimhl_80",S="_videoList_yimhl_90",T="_videoTitle_yimhl_93",f="_videoSection_yimhl_109",C="_videoItem_yimhl_116";var t={"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:p,stepTitle:_,stepTitleNum:u,active:r,stepContent:v,videoText:m,videoImg:h,videoStop:y,videoList:S,videoTitle:T,videoSection:f,videoItem:C},I="./assets/video_default.c4e3ec21.png",V=l({name:"VideoList",props:{list:{type:Array,default:[]}},render(){return e("div",{class:t.videoList},[e("div",{class:t.videoTitle},[e("i",null,null),o("\u89C6\u9891\u5217\u8868")]),this.list.length>0?e("div",{class:t.videoSection},[this.list.map((s,i)=>e("div",{class:t.videoItem},[e(n,{poster:I,src:s.url,preload:"none",height:"82px",currentTime:!1},null),e("p",null,[s.startTime])]))]):e(d,{btnStatus:!1,classImgSize:"SMALL",tips:"\u6682\u65E0\u89C6\u9891"},null)])}}),x=l({name:"CoursePlanStep",props:{courseId:{type:Number,default:0},hideVideo:{type:Boolean,default:!1},courseInfo:{type:Array,default:[]}},data(){return{videoStatus:!1,list:[]}},methods:{async onLookVideo(s){try{const i=await c.get("/api-student/liveRoomVideo/queryVideo",{params:{roomUid:s.roomUid}});console.log(i),this.list=i.data||[],this.videoStatus=!0}catch{}}},render(){return e("div",{class:t["col-steps"]},[e("div",{class:t["col-steps__items"]},[this.courseInfo.map((s,i)=>e("div",{class:t["col-step"]},[e("div",{class:t["col-step__title"]},[this.$slots.content?this.$slots.content():e("div",{class:t.stepSection},[e("div",{class:t.stepTitle},[e("span",{class:[t.stepTitleNum,(this.courseId===0||this.courseId===s.id)&&t.active]},[o("\u7B2C "),i+1,o(" \u8BFE\u65F6")]),e("span",{class:t.stepTitleText},[s.courseTime])]),e("div",{class:t.stepContent},[e("p",null,[s.coursePlan]),s.liveState===2&&!this.hideVideo&&e("div",{class:t.videoText,onClick:()=>{this.onLookVideo(s)}},[o("\u67E5\u770B\u56DE\u653E"),">>"])])])]),e("div",{class:t["col-step_circle"]},[i+1]),e("div",{class:t["col-step__line"]},null)]))]),e(a,{show:this.videoStatus,"onUpdate:show":s=>this.videoStatus=s,closeable:!0,round:!0,style:{width:"90%"}},{default:()=>[this.videoStatus&&e(V,{list:this.list},null)]})])}});export{x as C};
|