(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{1013:function(t,e,n){"use strict";n.r(e);var r=n(4),o=n(95),c=n(262),l=n(1030),d=n(1192),h={name:"u-video",props:{detail:Object},watch:{detail:{handler:function(t,e){var n=this;t&&this.$nextTick((function(){n.play()}))}}},mounted:function(){d.a.Hls.xhr.beforeRequest=function(t){return t.data={},t.json=!0,t.headers={token:"jy_e9b0ef00264b425b9d6688946498a82c"},t.method="post",t};var t=this,e=Object(d.a)("myvideo",{},(function(){e.on("play",(function(){t.$auth})),e.on("pause",(function(t){})),e.on("ended",(function(t){}))}))},methods:{checkLogin:function(){this.$auth.actionLogin().then((function(){location.reload()}))},play:function(){var t=Object(d.a)("myvideo");t.reset(),t.src({src:this.detail.videoUrl,poster:this.detail.videoCover,type:"video/mp4"}),t.load(this.detail.videoUrl),t.play()}}},f=(n(1164),n(8)),v=Object(f.a)(h,(function(){var t=this._self._c;return t("div",{staticClass:"video-bg"},[t("video",{ref:"video",staticClass:"video-js vjs-default-skin",attrs:{id:"myvideo",height:"490","data-setup":"{ }",nativeVideoTracks:"false",preload:"auto","webkit-playsinline":"true",playsinline:"true","x5-video-player-type":"h5","x5-video-player-fullscreen":"true","x5-video-orientation":"landscape",name:"media",controlslist:"nodownload",poster:this.detail.videoCover,controls:""}},[t("source",{attrs:{src:this.detail.videoUrl,type:"video/mp4"}})])])}),[],!1,null,"168624b2",null).exports,m={name:"inline-course-item",props:{data:{type:Object,default:{}}},methods:{clickCourse:function(){this.$emit("clickCourse",this.data)}}},y=(n(1165),Object(f.a)(m,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"course-ctn"},[e("div",{staticClass:"course-image"},[1==t.data.type?e("div",{staticClass:"video-icon"},[e("img",{attrs:{src:n(1024),alt:""}})]):t._e(),t._v(" "),e("img",{attrs:{src:t.data.cover,alt:t.data.title}})]),t._v(" "),e("div",{staticClass:"course-title"},[t._v("\n "+t._s(t.data.title)+"\n ")])])}),[],!1,null,"04793ff8",null).exports),_=n(1061),C=Object(r.Create)({name:"video-module",components:{UVideo:v,UShare:_.a,InlineCourse:y},services:["CourseService"],onInit:function(){var t=this;document.body.scrollTop=document.documentElement.scrollTop=0,window.addEventListener("scroll",this.otherCourseScroll),this.pageNum=1,this.list=this.otherCourse,this.finish=this.otherCourseFinish,this.needSendTime=!1,this.$auth.ticket&&this.computedTime();var e=this;window.addEventListener("beforeunload",(function(n){window.removeEventListener("scroll",t.otherCourseScroll),e.needSendTime&&e.addLearnTime()}))},mounted:function(){},data:function(){return{showShare:!1,times:(new Date).getTime(),needSendTime:!1,pageNum:1,list:[],finish:!0,_beforeUnload_time:""}},props:{courseDetail:{type:Object,default:{}},otherCourse:{type:Array,default:[]},otherCourseFinish:{type:Boolean,default:!0}},methods:{otherCourseScroll:function(){var t=document.getElementById("scroll-course"),e=this;t.onscroll=function(n){t.scrollHeight==t.scrollTop+t.clientHeight&&(e.finish||e.loadOtherCourse())}},loadOtherCourse:function(){var t=this;this.pageNum++;var param={pageNum:this.pageNum,pageSize:10,uid:this.courseDetail.uid};this.$service.course.getCourseRecomdList(param).then((function(e){var n=t.list.concat(e.list||[]);t.list=n,t.finish=t.pageNum>=e&&e.pages}))},computedTime:function(){var t=this;this.times=(new Date).getTime(),setTimeout((function(){t.needSendTime=!0}),1e4)},addLearnTime:function(){var t=parseInt(((new Date).getTime()-this.times)/1e3);if(!(t<30)){var e={uid:this.courseDetail.uid,duration:t};this.$auth.ticket&&this.$service.course.postLearnSatus(e).then((function(t){}))}},selectedCourse:function(data){this.needSendTime&&this.addLearnTime(),this.needSendTime=!1,this.computedTime(),this.$emit("changeCourse",data.uid)}},onLeave:function(){},filters:{forMate:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;t*=1e3;var e=Math.floor(t/864e5),n=Math.floor(t%864e5/36e5),r=Math.floor(t%864e5%36e5/6e4),s=Math.floor(t%864e5%36e5%6e4/1e3),o=n=24*e+n,c=r>9?r:"0"+r,l=s>9?s:"0"+s,text="";return s&&(text="".concat(s,"秒")),r&&(text="".concat(r,"分").concat(l,"秒")),o&&(text="".concat(o,"小时").concat(c,"分").concat(l,"秒")),text||"--"},readNums:function(t){return console.log(t),t>1e4?"".concat((t/1e4).toFixed(1),"w"):t}}}),w=(n(1166),Object(f.a)(C,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"video-module"},[e("div",{staticClass:"l-ctn"},[e("div",{staticClass:"video-bg"},[t.courseDetail?e("u-video",{attrs:{detail:t.courseDetail},on:{computedTime:t.computedTime}}):t._e()],1),t._v(" "),e("div",{staticClass:"course-info"},[e("div",{staticClass:"title"},[t._v(t._s(t.courseDetail.title))]),t._v(" "),e("div",{staticClass:"share",on:{click:function(e){t.showShare=!0}}},[e("i",{staticClass:"iconfont icon-fenxiang2"}),t._v("\n 分享\n ")]),t._v(" "),e("div",{staticClass:"share-position",style:{opacity:t.showShare?1:0}},[e("u-share",{on:{closeShare:function(e){t.showShare=!1}}})],1)]),t._v(" "),e("div",{staticClass:"course-num"},[e("span",[t._v("时长"+t._s(t._f("forMate")(t.courseDetail.videoDuration)))]),t._v(" "),e("span",{staticClass:"s1"},[t._v(t._s(t._f("readNums")(t.courseDetail.learnNum))+"人已学习")])])]),t._v(" "),e("div",{staticClass:"r-ctn"},[e("div",{staticClass:"r-title"},[t._v("相关课程")]),t._v(" "),e("div",{staticClass:"course-type"},[t._v(t._s(t.courseDetail.typeName))]),t._v(" "),e("div",{staticClass:"other-course",attrs:{id:"scroll-course"}},[t.otherCourse&&t.otherCourse.length?e("div",t._l(t.otherCourse,(function(n){return e("div",{staticClass:"course-item",on:{click:function(e){return t.selectedCourse(n)}}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.courseDetail.uid==n.uid,expression:"courseDetail.uid==item.uid"}],staticClass:"course-active"},[t._v("播放中...")]),t._v(" "),e("inline-course",{attrs:{data:n}})],1)})),0):t._e()])])])}),[],!1,null,"4d5a813a",null).exports),x={name:"course-info",props:{courseDetail:{type:Object,default:{}},recommendList:Array},components:{CourseItem:y}},L=(n(1167),Object(f.a)(x,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"course-info-bg"},[e("div",{staticClass:"course-info-ctn"},[e("div",{staticClass:"l-ctn"},[e("div",{staticClass:"info-model"},[e("div",{staticClass:"title"},[t._v("课程介绍")]),t._v(" "),t.courseDetail.intro?e("div",{staticClass:"c-text"},[t._v("\n "+t._s(t.courseDetail.intro)+"\n ")]):t._e()]),t._v(" "),e("div",{staticClass:"info-model"},[e("div",{staticClass:"title"},[t._v("图文讲解")]),t._v(" "),t.courseDetail&&t.courseDetail.description?e("div",{staticClass:"description",domProps:{innerHTML:t._s(t.courseDetail.description)}}):t._e()])]),t._v(" "),e("div",{staticClass:"r-ctn"},[t.recommendList&&t.recommendList.length?e("div",{staticClass:"info-model",staticStyle:{padding:"24px 24px 0px 18px"}},[e("div",{staticClass:"title"},[t._v("热门课程推荐")]),t._v(" "),t._l(t.recommendList,(function(n){return e("div",{staticClass:"c-ctn"},[e("span",{staticClass:"c-title"},[t._v(t._s(n.typeName))]),t._v(" "),t._l(n.coursePageList,(function(r,o){return n.coursePageList&&n.coursePageList.length&&o<2?e("div",{staticClass:"c-item"},[r?e("r-link",{attrs:{tag:"courseDetail",params:{id:r.uid},target:"_blank"}},[e("CourseItem",{attrs:{data:r}})],1):t._e()],1):t._e()}))],2)}))],2):t._e()])])])}),[],!1,null,"a7cc9ff4",null).exports),k={name:"image-detail",props:{CourseDetail:{type:Object,default:function(){return{}}},recommendList:{type:Array,default:function(){return{}}}},components:{UShare:_.a,CourseItem:y},data:function(){return{showShare:!1}},filters:{readNums:function(t){return console.log(t),t>1e4?"".concat((t/1e4).toFixed(1),"w"):t}}},D=(n(1168),Object(f.a)(k,(function(){var t=this,e=t._self._c;return t.CourseDetail?e("div",{staticClass:"detail-ctn"},[e("div",{staticClass:"l-ctn"},[e("div",{staticClass:"detail-t"},[t._v(t._s(t.CourseDetail.title))]),t._v(" "),e("div",{staticClass:"detail-i"},[e("span",{staticClass:"s1"},[t._v(t._s(t._f("readNums")(t.CourseDetail.learnNum))+"人已学习")])]),t._v(" "),e("div",{staticClass:"detail",domProps:{innerHTML:t._s(t.CourseDetail.description)}},[t._v("\n "+t._s(t.CourseDetail)+"\n ")]),t._v(" "),e("div",{staticClass:"share-bg-btns",on:{click:function(e){t.showShare=!0}}},[e("i",{staticClass:"iconfont icon-fenxiang2"}),t._v("\n 分享\n\n "),e("div",{staticClass:"share-position",style:{opacity:t.showShare?1:0}},[e("u-share",{on:{closeShare:function(e){t.showShare=!1}}})],1)])]),t._v(" "),e("div",{staticClass:"r-ctn"},[t.recommendList&&t.recommendList.length?e("div",{staticClass:"info-model",staticStyle:{padding:"0px 24px 0px 18px"}},[e("div",{staticClass:"title"},[t._v("热门课程推荐")]),t._v(" "),e("div",{staticClass:"lists-bg"},t._l(t.recommendList,(function(n){return e("div",{staticClass:"c-ctn"},[e("span",{staticClass:"c-title"},[t._v(t._s(n.typeName))]),t._v(" "),t._l(n.coursePageList,(function(r,o){return n.coursePageList&&n.coursePageList.length&&o<2?e("div",{staticClass:"c-item"},[r?e("r-link",{attrs:{tag:"courseDetail",params:{id:r.uid},target:"_blank"}},[e("CourseItem",{attrs:{data:r}})],1):t._e()],1):t._e()}))],2)})),0)]):t._e()])]):t._e()}),[],!1,null,"316d3346",null).exports);function S(t){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(){j=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,desc){t[e]=desc.value},o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",d=o.toStringTag||"@@toStringTag";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(t){h=function(t,e,n){return t[e]=n}}function f(t,e,n,o){var c=e&&e.prototype instanceof y?e:y,l=Object.create(c.prototype),d=new I(o||[]);return r(l,"_invoke",{value:T(t,n,d)}),l}function v(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var m={};function y(){}function _(){}function C(){}var w={};h(w,c,(function(){return this}));var x=Object.getPrototypeOf,L=x&&x(x($([])));L&&L!==e&&n.call(L,c)&&(w=L);var k=C.prototype=y.prototype=Object.create(w);function D(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){var o;r(this,"_invoke",{value:function(r,c){function l(){return new e((function(o,l){!function r(o,c,l,d){var h=v(t[o],t,c);if("throw"!==h.type){var f=h.arg,m=f.value;return m&&"object"==S(m)&&n.call(m,"__await")?e.resolve(m.__await).then((function(t){r("next",t,l,d)}),(function(t){r("throw",t,l,d)})):e.resolve(m).then((function(t){f.value=t,l(f)}),(function(t){return r("throw",t,l,d)}))}d(h.arg)}(r,c,o,l)}))}return o=o?o.then(l,l):l()}})}function T(t,e,n){var r="suspendedStart";return function(o,c){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw c;return z()}for(n.method=o,n.arg=c;;){var l=n.delegate;if(l){var d=E(l,n);if(d){if(d===m)continue;return d}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var h=v(t,e,n);if("normal"===h.type){if(r=n.done?"completed":"suspendedYield",h.arg===m)continue;return{value:h.arg,done:n.done}}"throw"===h.type&&(r="completed",n.method="throw",n.arg=h.arg)}}}function E(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var o=v(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,m;var c=o.arg;return c?c.done?(e[t.resultName]=c.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,m):c:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function $(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function e(){for(;++i=0;--i){var o=this.tryEntries[i],c=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),d=n.call(o,"finallyLoc");if(l&&d){if(this.prev=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--i){var e=this.tryEntries[i];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),P(e),m}},catch:function(t){for(var i=this.tryEntries.length-1;i>=0;--i){var e=this.tryEntries[i];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var r=n.arg;P(e)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:$(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),m}},t}function O(t,e,n,r,o,c,l){try{var d=t[c](l),h=d.value}catch(t){return void n(t)}d.done?e(h):Promise.resolve(h).then(r,o)}var T=Object(r.Page)({name:"course",components:{Crumbs:l.a,VideoModule:w,CourseDetail:L,ImageDetail:D},services:["CourseService","IndexService"],data:function(){return{}},onInit:function(){},asyncData:function(t){return(e=j().mark((function e(){var n,r,l,d,h,f,v,m,y,_;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.query,n=t.params,r=t.service,t.redirect,l=t.returnData,d=t.log,h=n.hashid||"",f=null,e.next=5,r(c.default).queryCourseDetail(h);case 5:if(f=e.sent){e.next=9;break}return d({needRedirect:1,logType:2,logParams:{req:{hashid:h},res:{courseDetail:f}}}),e.abrupt("return");case 9:return v=null,m=!0,e.next=13,r(c.default).getCourseRecomdList({pageNum:1,pageSize:10,uid:f.uid});case 13:return y=e.sent,v=y&&y.list||[],m=1>=(y&&y.pages||1),_=[],e.next=19,r(o.default).queryHotRecommendList();case 19:if(e.t0=e.sent,e.t0){e.next=22;break}e.t0=[];case 22:return _=e.t0,e.abrupt("return",l({hashid:h,courseDetail:f,otherCourse:v,finished:m,recommendList:_}));case 24:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var c=e.apply(t,n);function l(t){O(c,r,o,l,d,"next",t)}function d(t){O(c,r,o,l,d,"throw",t)}l(void 0)}))})();var e},methods:{changeCourse:function(t){var e=this;this.$service.course.queryCourseDetail(t).then((function(t){e.courseDetail=t}))}},computed:{path:function(){return[{tag:"index",name:"首页"},{tag:"dx",name:"成长中心"},{tag:"courseList",name:this.courseDetail.typeName,params:{pinyin:this.courseDetail.pinyin}},{name:this.courseDetail.title}]},isVideoCourse:function(){if(this.courseDetail&&this.courseDetail.uid)return 1==this.courseDetail.type}}}),E=(n(1169),Object(f.a)(T,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("layout",{attrs:{isShowTopTitle:"no",footBg:1,selected:80}},[e("template",{slot:"content"},[e("div",{staticClass:"video-bg"},[e("div",{staticClass:"video-ctn"},[e("Crumbs",{attrs:{path:t.path}}),t._v(" "),t.isVideoCourse?e("VideoModule",{attrs:{courseDetail:t.courseDetail,otherCourse:t.otherCourse,otherCourseFinish:t.finished},on:{changeCourse:t.changeCourse}}):t._e()],1),t._v(" "),t.isVideoCourse?e("CourseDetail",{attrs:{courseDetail:t.courseDetail,recommendList:t.recommendList}}):e("ImageDetail",{attrs:{CourseDetail:t.courseDetail,recommendList:t.recommendList}})],1)])],2)}),[],!1,null,"3efbc0c6",null));e.default=E.exports},1024:function(t,e,n){t.exports=n.p+"img/65ac42f.png"},1025:function(t,e,n){},1029:function(t,e,n){"use strict";n(1025)},1030:function(t,e,n){"use strict";var r={name:"crumbs",props:{path:Array}},o=(n(1029),n(8)),component=Object(o.a)(r,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"crumbs-bg"},[e("div",{staticClass:"crumbs-ctn"},[t._l(t.path,(function(link,i){return i