!function(){function e(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,a)}return i}function t(t){for(var a=1;a0&&1===s.pageNo)){i.next=10;break}return i.abrupt("return");case 10:e.list=e.list.concat(s.rows||[]),e.finished=s.pageNo>=s.totalPage,e.params.page=s.pageNo+1,e.dataShow=e.list.length>0,i.next=20;break;case 16:i.prev=16,i.t0=i.catch(0),e.dataShow=!1,e.finished=!0;case 20:case"end":return i.stop()}}),i,null,[[0,16]])})))()},onPlay:function(e){var t=this;e.id!==Number(this.classId)&&(this.reload=!0,this.posterUrl=e.imgUrl,this.srcUrl=e.videoUrl,this.title=e.title,this.currentClassIndex=e.index,this.videoContent=e.content,this.classId=e.id,this.onSearch(),setTimeout((function(){t.reload=!1}),0))},onSubmit:function(){var e=this;return n(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,o.post("/api-teacher/videoLesson/evaluate",{data:{isTeacher:1,videoId:e.classId,content:e.message,studentId:a.user.data.userId}});case 3:s("评论成功"),e.message="",setTimeout((function(){e.onSearch()}),1e3),t.next=10;break;case 8:t.prev=8,t.t0=t.catch(0);case 10:case"end":return t.stop()}}),t,null,[[0,8]])})))()}},render:function(){var e,t,i=this;return r("div",{class:C["video-class-detail"]},[r(g,null,null),r(p,{src:this.srcUrl,poster:this.posterUrl,freeTitleStatus:this.lessonPrice>0,freeRate:Number(this.freeRate),trySee:this.trySee,height:this.videoHeight},null),r(h,{border:!1,class:C.cell,title:this.title,titleClass:C.titleInfo},{icon:function(){return r(l,{name:"video",size:18,color:"var(--van-primary)",style:{display:"flex",alignItems:"center"}},null)},value:function(){return r("div",{class:C.label},[r("span",null,[i.currentClassIndex]),c("/"),i.detailList.length,c("课时")])}}),r("div",{class:C.videoDesc},[this.videoContent]),r(b,{active:this.tabIndex,"onUpdate:active":function(e){return i.tabIndex=e},class:C.infoField,color:"var(--van-primary)",lineWidth:20,sticky:!0,lazyRender:!0,offsetTop:this.offsetTop},{default:function(){return[r(y,{title:"目录",name:1},{default:function(){return[r("div",{style:{height:"calc(100vh - 320px)",overflowY:"auto"}},[r(m,{title:"课程列表",icon:"courseList"},L(e=i.detailList.map((function(e,t){var a=(e.musicAlbumInfos||[]).map((function(e){return{relationMusicAlbum:e.relationType,musicAlbumName:e.name,musicAlbumId:e.musicAlbumId,status:e.status,useRelationType:i.useRelationType}}));return r(f,{musicAlbumInfos:a,playId:Number(i.classId),detail:{id:e.id,title:e.videoTitle,content:e.videoContent,imgUrl:e.coverUrl,videoUrl:e.videoUrl,index:t+1},onPlay:i.onPlay,onMusicAlbumDetail:function(e){i.alreadyBuy||e.status?"MUSIC"===e.relationMusicAlbum?i.$router.push({path:"/music-detail",query:{id:e.musicAlbumId}}):"ALBUM"===e.relationMusicAlbum&&i.$router.push({path:"/music-album-detail/"+e.musicAlbumId}):s("数据正在更新,请稍后再试")}},null)})))?e:{default:function(){return[e]}})])]}}),r(y,{title:"讨论",name:3},{default:function(){return[r("div",{style:{overflowY:"auto",marginBottom:"calc(var(--van-cell-vertical-padding) * 2 + var( --van-cell-line-height))"}},[i.dataShow?r(I,{loading:i.loading,"onUpdate:loading":function(e){return i.loading=e},finished:i.finished,finishedText:" ",immediateCheck:!1,onLoad:i.getList},L(t=i.list.map((function(e){return r(h,{class:[C["message-list"],1===e.isTeacher&&C["message-active"]],valueClass:C["message-time"]},{icon:function(){return r(x,{class:C.userLogo,src:e.avatar||w,fit:"cover"},null)},title:function(){return r("div",{class:C.title},[r("div",{class:C["message-name"]},[e.userName]),r("div",{class:C["message-time"]},[d(e.evaluateTime).format("YYYY年MM月DD日")])])},label:function(){return r("div",{class:C.label},[e.content])}})})))?t:{default:function(){return[t]}}):r(u,{btnStatus:!1,tips:"暂无讨论"},null)]),r("div",{class:[C.messageContainer]},[r(j,{placeholder:"快来讨论吧~",modelValue:i.message,"onUpdate:modelValue":function(e){return i.message=e}},{button:function(){return r(_,{type:"primary",disabled:!i.message,style:{padding:"0 20px"},size:"small",round:!0,onClick:i.onSubmit},{default:function(){return[c("发布")]}})}})])]}})]}})])}}))}}}))}();