(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{1017:function(t,e,r){"use strict";r.r(e);var n=r(4),o=r(262),c={name:"video-audio",props:{content:Object},data:function(){return{currentTime:0,isplay:!1,isShowbg:!1}},computed:{},mounted:function(){this.load()},methods:{play:function(){this.$refs.video.play(),this.isShowbg=!1},load:function(){var t=JSON.parse(localStorage.getItem("njcourse")||"{}");t["courseId".concat(this.content.courseId)]&&this.setCurrentTime(t["courseId".concat(this.content.courseId)])},getTimes:function(){this.currentTime=this.$refs.video&&this.$refs.video.currentTime},setLocalData:function(){this.getTimes();var t=JSON.parse(localStorage.getItem("njcourse")||"{}");t["courseId".concat(this.content.courseId)]=this.currentTime,localStorage.setItem("njcourse",JSON.stringify(t))},setCurrentTime:function(t){this.$refs.video.currentTime=t,this.$refs.video.play()},onPlay:function(){this.isShowbg=!1},onEnded:function(){this.isShowbg=!0}}},l=(r(1182),r(8)),d=Object(l.a)(c,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"video-audio"},[t.content.videoUrl?e("video",{ref:"video",attrs:{controls:"","x-webkit-airplay":"true","webkit-playsinline":"true",playsinline:"true","x5-playsinline":"true","x5-video-player-type":"h5","x5-video-player-fullscreen":"true","x5-video-orientation":"portraint",poster:t.content.videoCover,name:"media",controlslist:"nodownload"},on:{ended:t.onEnded,play:t.onPlay}},[e("source",{attrs:{src:t.content.videoUrl,type:"video/mp4"}})]):t._e(),t._v(" "),t.isShowbg?e("div",[e("div",{staticClass:"bg"}),t._v(" "),e("div",{staticClass:"button-text"},[e("p",{on:{click:t.play}},[e("img",{attrs:{src:r(1181),alt:""}}),t._v("重新播放")])])]):t._e()])}),[],!1,null,"ecd32414",null).exports,f=r(1091),v=r(1037),h=r(1036);function m(t){return(m="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 y(){y=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=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 f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function v(t,e,r,o){var c=e&&e.prototype instanceof w?e:w,l=Object.create(c.prototype),d=new j(o||[]);return n(l,"_invoke",{value:T(t,r,d)}),l}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=v;var _={};function w(){}function x(){}function C(){}var A={};f(A,c,(function(){return this}));var L=Object.getPrototypeOf,E=L&&L(L(P([])));E&&E!==e&&r.call(E,c)&&(A=E);var D=C.prototype=w.prototype=Object.create(A);function O(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){var o;n(this,"_invoke",{value:function(n,c){function l(){return new e((function(o,l){!function n(o,c,l,d){var f=h(t[o],t,c);if("throw"!==f.type){var v=f.arg,y=v.value;return y&&"object"==m(y)&&r.call(y,"__await")?e.resolve(y.__await).then((function(t){n("next",t,l,d)}),(function(t){n("throw",t,l,d)})):e.resolve(y).then((function(t){v.value=t,l(v)}),(function(t){return n("throw",t,l,d)}))}d(f.arg)}(n,c,o,l)}))}return o=o?o.then(l,l):l()}})}function T(t,e,r){var n="suspendedStart";return function(o,c){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw c;return z()}for(r.method=o,r.arg=c;;){var l=r.delegate;if(l){var d=k(l,r);if(d){if(d===_)continue;return d}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var f=h(t,e,r);if("normal"===f.type){if(n=r.done?"completed":"suspendedYield",f.arg===_)continue;return{value:f.arg,done:r.done}}"throw"===f.type&&(n="completed",r.method="throw",r.arg=f.arg)}}}function k(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),_;var o=h(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,_;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,_):c:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,_)}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 I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function P(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,n=function e(){for(;++i=0;--i){var o=this.tryEntries[i],c=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var l=r.call(o,"catchLoc"),d=r.call(o,"finallyLoc");if(l&&d){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev=0;--i){var e=this.tryEntries[i];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),I(e),_}},catch:function(t){for(var i=this.tryEntries.length-1;i>=0;--i){var e=this.tryEntries[i];if(e.tryLoc===t){var r=e.completion;if("throw"===r.type){var n=r.arg;I(e)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),_}},t}function _(t,e,r,n,o,c,l){try{var d=t[c](l),f=d.value}catch(t){return void r(t)}d.done?e(f):Promise.resolve(f).then(n,o)}function w(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var c=t.apply(e,r);function l(t){_(c,n,o,l,d,"next",t)}function d(t){_(c,n,o,l,d,"throw",t)}l(void 0)}))}}var x=Object(n.Page)({name:"detail",services:["CourseService"],components:{VideoAudio:d,empty:v.a,searchItem:f.a,Crumbs:h.a},data:function(){return{isInApp:!0,opacityNow:0,activeVideo:0,textEllipsis:!0,isHide:!1,finished:!1,pageNum:1,courseList:[],loading:!1,needSendTime:!1}},asyncData:function(t){return w(y().mark((function e(){var r,n,c,l,d,f,v,param,h;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.query,r=t.params,n=t.service,t.redirect,c=t.returnData,l=r.hashid||"",d=null,f=null,v=!1,e.next=7,n(o.default).queryCourseDetail(l);case 7:if(e.t0=e.sent,e.t0){e.next=10;break}e.t0={};case 10:return d=e.t0,param={pageNum:1,pageSize:10,uid:d.uid},e.next=14,n(o.default).getCourseRecomdList(param);case 14:return(h=e.sent)&&h.list&&h.list.length&&(f=h.list||[]),v=param.pageNum>=h.pages,e.abrupt("return",c({courseDetail:d,hashid:l,finished:v,courseList:f}));case 18:case"end":return e.stop()}}),e)})))()},onEnter:function(){this.needSendTime=!1,document.body.scrollTop=document.documentElement.scrollTop=window.pageYOffset=0,this.init()},methods:{init:function(){var t=this;return w(y().mark((function e(){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.myHnUserId=1*t.$auth.hnUserId,t.needSendTime=!1,t.times=(new Date).getTime(),setTimeout((function(){t.needSendTime=!0}),1e3);case 4:case"end":return e.stop()}}),e)})))()},loadingCourseList:function(){var t=this;return w(y().mark((function e(){var r,n;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.pageNum++,r={pageNum:t.pageNum,pageSize:10,uid:t.courseDetail.uid},t.loading=!0,e.next=5,t.$service.course.getCourseRecomdList(r);case 5:n=e.sent,t.loading=!1,n&&n.list&&n.list.length&&(t.courseList=t.courseList.concat(n.list)),t.finished=r.pageNum>=n.pages;case 9:case"end":return e.stop()}}),e)})))()},videoAudioPlay:function(){},handleScroll:function(){var t=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop;this.isFixed=t>44,this.opacityNow=t/44},openAll:function(){this.textEllipsis=!1,this.isHide=!0},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){}))}}},filters:{forMate:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;t*=1e3;var e=Math.floor(t/864e5),r=Math.floor(t%864e5/36e5),n=Math.floor(t%864e5%36e5/6e4),s=Math.floor(t%864e5%36e5%6e4/1e3),o=r=24*e+r,c=n>9?n:"0"+n,l=s>9?s:"0"+s,text="";return s&&(text="".concat(s,"秒")),n&&(text="".concat(n,"分").concat(l,"秒")),o&&(text="".concat(o,"小时").concat(c,"分").concat(l,"秒")),text||"--"}},computed:{path:function(){return[{tag:"mIndex",name:"首页"},{tag:"mDx",name:"成长中心"},{tag:"mCourseList",name:this.courseDetail.typeName,params:{pinyin:this.courseDetail.pinyin}}]},isVideoCourse:function(){if(this.courseDetail)return 1==this.courseDetail.type}}}),C=(r(1183),Object(l.a)(x,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"container",staticStyle:{"min-height":"100vh","background-color":"#f5f5f5"}},[e("eye-nav-bar",{staticClass:"nav-bar-fixed",attrs:{title:t.courseDetail.title}}),t._v(" "),e("Crumbs",{attrs:{path:t.path}}),t._v(" "),t.isVideoCourse?e("div",{staticClass:"fix-class"},[t.courseDetail.videoUrl?e("div",{staticClass:"u-content"},[e("div",{staticClass:"video"},[e("VideoAudio",{ref:"videoaudio",attrs:{content:t.courseDetail},on:{onplay:t.videoAudioPlay}})],1)]):t._e()]):t._e(),t._v(" "),e("div",{staticClass:"v-list"},[t.isVideoCourse?e("div",[e("van-tabs",{model:{value:t.activeVideo,callback:function(e){t.activeVideo=e},expression:"activeVideo"}},[e("div",{staticClass:"v-cont"},[e("div",{staticClass:"title"},[t._v(t._s(t.courseDetail.title))]),t._v(" "),e("div",{staticClass:"other"},[e("div",{staticClass:"time"},[e("img",{staticClass:"time-img",attrs:{src:r(1180),alt:""}}),t._v(" "),e("span",[t._v("时长"+t._s(t._f("forMate")(t.courseDetail.videoDuration)))]),t._v(" "),e("span",[t._v(t._s(t.courseDetail.learnNum)+"人已学习")])]),t._v(" "),e("div",{staticClass:"hn"},[t._v("成长中心")])]),t._v(" "),0==t.activeVideo?[e("div",{staticClass:"text",class:{"text-ellipsis":t.textEllipsis}},[e("div",[e("span",{domProps:{innerHTML:t._s(t.courseDetail.intro)}}),t._v(" "),t.courseDetail.intro&&t.courseDetail.intro.length>=55?e("span",{staticClass:"open",class:{hide:t.isHide},on:{click:function(e){return t.openAll()}}},[e("em",[t._v("...")]),t._v("展开\n ")]):t._e()])]),t._v(" "),t.courseDetail.guideImg?e("div",{staticClass:"publish"},[e("img",{attrs:{src:t.courseDetail.guideImg}})]):t._e()]:t._e()],2),t._v(" "),e("van-tab",{attrs:{title:"视频讲解"}}),t._v(" "),e("van-tab",{attrs:{title:"图文讲解"}},[t.courseDetail&&t.courseDetail.description?e("div",{staticClass:"v-cont-detail",domProps:{innerHTML:t._s(t.courseDetail.description)}}):t._e()])],1)],1):t._e(),t._v(" "),t.isVideoCourse?t._e():e("div",{staticClass:"img-course-ctn"},[e("div",{staticClass:"course-t"},[t._v(t._s(t.courseDetail.title))]),t._v(" "),e("div",{staticClass:"course-d"},[t._v(t._s(t.courseDetail.learnNum)+"人已学习 | 成长中心")]),t._v(" "),e("div",{staticClass:"img-course-detail",domProps:{innerHTML:t._s(t.courseDetail.description)}})]),t._v(" "),e("div",{staticClass:"other-course"},[e("div",{staticClass:"title"},[t._v("相关课程推荐")]),t._v(" "),e("div",{staticClass:"c-list"},[e("van-list",{attrs:{finished:t.finished,"immediate-check":!1,offset:100},on:{load:t.loadingCourseList},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},[t.courseList&&t.courseList.length?t._l(t.courseList,(function(r,n){return n>0?e("div",{key:n,staticClass:"qs-content",staticStyle:{"margin-top":"10px"}},[e("searchItem",{attrs:{data:r,flage:1}})],1):t._e()})):t._e(),t._v(" "),e("div",{staticClass:"loading",attrs:{slot:"resultLoading"},slot:"resultLoading"},[e("van-loading",{attrs:{color:"white"}}),t._v("\n 加载中...\n ")],1)],2)],1),t._v(" "),t.courseList&&!t.courseList.length?e("empty",{staticClass:"empty-container",attrs:{type:"boy"}},[e("div",[t._v("没有相关推荐课程")])]):t._e()],1)])],1)}),[],!1,null,"0ec7979f",null));e.default=C.exports},1024:function(t,e,r){t.exports=r.p+"img/65ac42f.png"},1026:function(t,e,r){t.exports=r.p+"img/cc6bc14.png"},1027:function(t,e,r){},1028:function(t,e,r){},1034:function(t,e,r){"use strict";r(1027)},1035:function(t,e,r){"use strict";r(1028)},1036:function(t,e,r){"use strict";var n={name:"crumbs",props:{path:Array}},o=(r(1034),r(8)),component=Object(o.a)(n,(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'+e+"").replace(/\\u/gi,"%u").replace(/\%u20/gi,"%20").replace(/\%ua/gi,"\n").replace(/\%u00a/gi,"
"):t.replace(/\\u/gi,"%u").replace(/\%u20/gi,"%20").replace(/\%ua/gi,"\n").replace(/\%u00a/gi,"
")}}},o=(r(1084),r(8)),component=Object(o.a)(n,(function(){var t=this,e=t._self._c;return e("r-link",{staticClass:"search-item",attrs:{tag:"mCourseDetail",params:{id:t.data.uid}}},[e("div",{staticClass:"pic"},[1==t.data.type?e("div",{staticClass:"video-icon"},[e("img",{attrs:{src:r(1024),alt:""}})]):t._e(),t._v(" "),e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.data.cover,expression:"data.cover"}],attrs:{alt:t.data.title}})]),t._v(" "),e("div",{staticClass:"text"},[e("div",{staticClass:"name",domProps:{innerHTML:t._s(t.brightenKeyword(t.data.title,t.keyword))}}),t._v(" "),e("div",{staticClass:"other"},[e("img",{staticClass:"icon-img",attrs:{src:r(1083),alt:""}}),t._v(" "),e("span",[t._v(t._s(t.data.learnNum)+"人已学习")])])])])}),[],!1,null,"59fe51a0",null);e.a=component.exports},1116:function(t,e,r){},1117:function(t,e,r){},1180:function(t,e,r){t.exports=r.p+"img/4448e15.png"},1181:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAyBJREFUSA3Fl0tsTFEYxztVReJRj3hE2kgk7aIRDRZlZ8eiGxsrmogEO9EQXbJoIiHSpYVYYM8KK9SjO61YeCQlUX2JRxULtMbvNzOnmc69dzqdMv7Jb8655zvn++6599xzvklVlaB0Or2Ibi2wF3bCOlgF1fAdBuER3IcHqVTqF2VE+GmlsRduRoz5DXRcDMfgBQzDFBTTGEb7noA1+b6s03Yd1FhNoTFcY2yj3gUNsByc2Qi8hVFwlpPgzLeAT2E1rIUzcBgfR5l9D/WggVzlZ2iYLumcgtMwAuozPIF28CZiha0OTsIrGAc1BEfCAOpnbUTe9EzReA3CwNfUvfPamb2Sr+i7BPbDIKgJuApOKD4whk6YhB+gGpNDFLcwdjv4vvVn8A6IBqaxDcLjfUZ9Q3HXs1vx0QADoN7BhUwtPGouXL0GUz7ezbO7La0HvraBq10ZXA2GVX0INy6ccehiJYbVV5r3XC8c1lFdUTDoI9eX4DhMf2K+cDeHp9AEfdBK4Ohyx1BM+NmKvR+iK7aqKkX7UvDG1JAzboHwnXaXE1RPaAekwe85SU7IPhsNvAf86N0U7kJZ4oYvM+swNnbLzBkXUt52G7sDqjeMqkTpJu9slTOumAzs/qriFkXW8g9+DfxfZGC/M1WfLSrza+D3uVDrKxMyG8XAj2EK6lnZicdetvv8fvEf1lMmdbmFO2ftrrJ7fq6TRxO0GesHyo5MLyq14PGl+qDkszc5zEwLPhfoPKd+yprq3BbZTdcJ2AQH4W9rHw71/w2uENOUKZOEFR6LZScAGYd5P8yuCTxq1XNYmWfOBM9PBOz0NxKBRh0hs9NR8FyICoOpj/mWqY+JQdkJAWOb4SX8hi9wETweo9IAJnvmScpHNNdkTx8H4A2or3AeZt8l6eTMQ/5leutqb4fE7xxbXa5PL+UnUD7ec9EpZjODuHaPy7iEfpzOHiaeZJaeu6YzfqMmAKY9yyD8relkBd/gem4iuKs9/y9MeAU0R+S7dIbuCafAVCdR8S+7oDtO3FRMkfzTtgs8w93+HO/shqEHHsK96e+UiyT9AdjF+h+qG42NAAAAAElFTkSuQmCC"},1182:function(t,e,r){"use strict";r(1116)},1183:function(t,e,r){"use strict";r(1117)}}]);