!function(){function e(e,n,t,i,o,a,r){try{var s=e[a](r),c=s.value}catch(u){return void t(u)}s.done?n(c):Promise.resolve(c).then(i,o)}var n=document.createElement("style");n.innerHTML="._video-detail_q1sek_1 ._introduction_q1sek_1{color:#7a7a7a;line-height:.61333rem;padding-bottom:.21333rem}._video-detail_q1sek_1 .van-tabs__wrap{margin-bottom:.4rem}._video-detail_q1sek_1 ._wxpopup_q1sek_9{width:100%;height:100vh;position:fixed;top:0;left:0;background:rgba(0,0,0,.5);z-index:9999}._video-detail_q1sek_1 ._wxpopup_q1sek_9 img{width:88%;margin:0 6%}\n",document.head.appendChild(n),System.register(["./icon_discount-legacy.51763f3b.js","./share-vip-tips-legacy.0d425f76.js","./share-banner-legacy.3a0e6967.js","./wx_bg-legacy.a09a21f9.js","./index-legacy.b1468693.js","./index-legacy.a48d3102.js","./index-legacy.2fe52d92.js","./index-legacy.f8641610.js","./index-legacy.d0d6a39b.js","./share-legacy.d80c4a50.js","./index-legacy.c3bbeade.js","./index-legacy.fc510843.js","./index-legacy.c8b60294.js","./index-legacy.28050159.js","./bars-legacy.72d07b27.js","./icon_album_active-legacy.d2829e23.js","./icon_music_active-legacy.cc68af68.js","./index-legacy.c36297f9.js","./icon_teacher-legacy.42ba77b1.js","./icon_timer2-legacy.b6c78faa.js","./icon-jiaozi-legacy.dd5ed0e2.js"],(function(n){"use strict";var t,i,o,a,r,s,c,u,l,d,p,f,m,g,v,y,h,_,b,w,x,j,T;return{setters:[function(e){t=e._,i=e.c,o=e.d},function(e){a=e._,r=e.a},function(e){s=e._},function(e){c=e._},function(e){u=e.C},function(e){l=e.S},function(e){d=e.U},function(e){p=e.d,f=e.b,m=e.s,g=e.p,v=e.D,y=e.e,h=e.i,_=e.B,b=e.A,w=e.$},function(e){x=e.C},function(e){j=e.s},function(e){T=e.q},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var I="_video-detail_q1sek_1",k="_introduction_q1sek_1",S="_wxpopup_q1sek_9";var U=n("getAssetsHomeFile",(function(e){var n="../images/".concat(e);return{"../images/icon-cert.png":t,"../images/icon_discount.png":i,"../images/icon_music.png":o,"../images/music-share-banner.png":a,"../images/share-banner.png":s,"../images/share-vip-tips.png":r,"../images/wx_bg.png":c}[n].default}));n("default",p({name:"VideoDetail",data:function(){var e=this.$route.query;return{userInfo:{},detailList:[],buyUserList:[],dataShow:!0,loading:!1,finished:!1,recomUserId:e.recomUserId,params:{videoLessonGroupId:e.groupId,page:1,rows:20},wxStatus:!1}},created:function(){if(f().isApp){if("STUDENT"===m.platformType){var e=this.$route.query;return e.recomUserId=e.userType&&"STUDENT"==e.userType?"":e.recomUserId,void(f().ios?window.location.replace("".concat(location.origin,"/student/#/videoDetail?").concat(T.stringify(e))):(g({api:"openWebView",content:{url:"".concat(location.origin,"/student/#/videoDetail?").concat(T.stringify(e)),orientation:1,isHideTitle:!1}}),g({api:"back"})))}"TEACHER"===m.platformType&&v.alert({title:"提示",message:"请使用酷乐秀学生端扫码打开",confirmButtonColor:"#2dc7aa"}).then((function(){g({api:"back"})}))}else this.reCall()},mounted:function(){var n,t=this;return(n=regeneratorRuntime.mark((function e(){var n,i,o,a,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,y.post("/api-teacher/open/videoShareProfit",{data:{bizId:t.params.videoLessonGroupId,userId:t.recomUserId}});case 3:n=e.sent,i=n.data||{},o=i.videoGroup,a=o.lessonGroup,r=o.detailList,t.userInfo={username:a.username,headUrl:a.avatar,isDegree:!!i.videoGroup.degreeFlag,isTeacher:!!i.videoGroup.teacherFlag,buyNum:a.countStudent,lessonNum:a.lessonCount,lessonName:a.lessonName,lessonDesc:a.lessonDesc,lessonPrice:a.lessonPrice,relationType:a.relationType,lessonCoverUrl:a.lessonCoverUrl},t.detailList=r||[],e.next=12;break;case 10:e.prev=10,e.t0=e.catch(0);case 12:case"end":return e.stop()}}),e,null,[[0,10]])})),function(){var t=this,i=arguments;return new Promise((function(o,a){var r=n.apply(t,i);function s(n){e(r,o,a,s,c,"next",n)}function c(n){e(r,o,a,s,c,"throw",n)}s(void 0)}))})()},methods:{locationReplace:function(e){history.replaceState?(history.replaceState(null,document.title,e),window.location.reload()):location.replace(e)},reCall:function(){var e=location.origin+"/student/#/videoDetail",n=this.$route.query;e+="?recomUserId=".concat(n.userType&&"STUDENT"==n.userType?"":this.recomUserId,"&groupId=").concat(n.groupId),console.log(e),j(e,{})},onShare:function(){f().weixin?this.wxStatus=!0:(this.reCall(),setTimeout((function(){window.location.href=location.origin+"/student/#/download"}),3e3))}},render:function(){var e,n,t=this;return h("div",{class:[I,"mb12"]},[h(d,{userInfo:this.userInfo,showBuy:!1},null),h(l,{border:!0},{default:function(){return[h("p",{class:k},[t.userInfo.lessonDesc])]}}),h(l,{title:"课程列表",icon:"courseList",contentStyle:{paddingTop:"0"}},(n=e=this.detailList.map((function(e){var n=(e.musicAlbumInfos||[]).map((function(e){return{relationMusicAlbum:e.relationType,musicAlbumName:e.name,musicAlbumId:e.musicAlbumId,useRelationType:t.userInfo.relationType}}));return h(u,{musicAlbumInfos:n,detail:{id:e.id,title:e.videoTitle,content:e.videoContent,imgUrl:e.coverUrl}},null)})),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!w(n)?e:{default:function(){return[e]}})),h(x,{position:"bottom"},{default:function(){return[h("div",{class:["btnGroup"],style:{paddingTop:"12px"}},[h(_,{block:!0,round:!0,type:"primary",onClick:t.onShare},{default:function(){return[b("下载酷乐秀进入课程")]}})])]}}),this.wxStatus&&h("div",{class:S,onClick:function(){t.wxStatus=!1}},[h("img",{src:U("wx_bg.png"),alt:""},null)])])}}))}}}))}();