提交 4778c3a8 authored 作者: GOD_ZYX's avatar GOD_ZYX

v1.1.3

PC-1.1.3 / 2019-07-19
==================
* 修改 video currentTime 突然获取 超大值,增加判断 提示播放器异常,刷新重看
PC-1.1.2 / 2019-07-16
==================
* 修改 currentVideoProvider 先全部默认为 1
PC-1.1.1 / 2019-07-16
==================
* 修改 判断,不进行错误接口请求
PC-1.1.0 / 2019-07-15
==================
......
......@@ -14,7 +14,7 @@ const $GLOBAL = {
ResPath: 'resources/[name].[hash:8].[ext]',
BaseConfig: {},
webConf: {
'devDomain': '//api.ezijing.com',
'devDomain': 'http://dev.ezijing.com:12002',
'apiBaseURL': '/api',
'CDN_PATH': 'https://zws-imgs-pub.ezijing.com/static/build/learn-enterprise/'
}
......
......@@ -15,4 +15,4 @@
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/console-polyfill.js"></script>
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/html5shiv.min.js"></script>
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/respond.min.js"></script>
<![endif]--><script type="text/javascript" src="https://zws-imgs-pub.ezijing.com/static/build/learn-enterprise/resources/manifest.eebb1f34.js"></script><script type="text/javascript" src="https://zws-imgs-pub.ezijing.com/static/build/learn-enterprise/resources/vendor.bb1c6d7c.js"></script><script type="text/javascript" src="https://zws-imgs-pub.ezijing.com/static/build/learn-enterprise/resources/app.9af0fd04.js"></script></body></html>
\ No newline at end of file
<![endif]--><script type="text/javascript" src="https://zws-imgs-pub.ezijing.com/static/build/learn-enterprise/resources/manifest.d0f7b5d2.js"></script><script type="text/javascript" src="https://zws-imgs-pub.ezijing.com/static/build/learn-enterprise/resources/vendor.bb1c6d7c.js"></script><script type="text/javascript" src="https://zws-imgs-pub.ezijing.com/static/build/learn-enterprise/resources/app.52a83f60.js"></script></body></html>
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{269:function(e,t,i){"use strict";i.r(t);var n=i(455),s=i(359);for(var r in s)"default"!==r&&function(e){i.d(t,e,function(){return s[e]})}(r);var a=i(1),o=Object(a.a)(s.default,n.a,n.b,!1,null,null,null);o.options.__file="chapterVideo.vue",t.default=o.exports},359:function(e,t,i){"use strict";i.r(t);var n=i(360),s=i.n(n);for(var r in n)"default"!==r&&function(e){i.d(t,e,function(){return n[e]})}(r);t.default=s.a},360:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(i(419)),s=a(i(421)),r=a(i(422)),d=a(i(74));function a(e){return e&&e.__esModule?e:{default:e}}var o=1e4;t.default={components:{eVideo:n.default,eVideoH5:s.default,ePpt:r.default},props:{chapterId:{type:String,require:!1},chapterName:{type:String,require:!1},chapterVideo:{type:Object,require:!1},ppts:{type:Array,require:!1,default:[]},sid:{type:String,require:!1},cid:{type:String,require:!1},id:{type:String,require:!1},videoType:{type:String,require:!1}},data:function(){return{state:{pptIndex:0,pptBoxOnly:!1,pptBoxShow:!1,skipBegin:/skip=1/.test(document.cookie),calculatedSize:!1},videoFlash:{lastTime:null,speed:1,isSeek:!1,isFinish:!1,queueFrames:[],mapFrames:[],videoWidth:550,videoHeight:360,username:window.G.UserInfo&&window.G.UserInfo.username||""},resizeVideo:null,hearBeat:null,_rProgress:{},isPlaying:!1}},mounted:function(){var e=this.getCalculateSize();e.video.w&&(this.videoFlash.videoWidth=e.video.w,this.videoFlash.videoHeight=e.video.h),this.resizeVideo||(this.resizeVideo=d.default.debounce(this.jdugeSize.bind(this),200)),setTimeout(this.jdugeSize,600),window.addEventListener("resize",this.resizeVideo),this.createHeartTime(o)},destroyed:function(){window.removeEventListener("resize",this.resizeVideo),this.destroyHeartTime(),this.hearBeatFunc(o)},watch:{id:{handler:function(){this.id&&(this.state.pptBoxShow=!1,this.state.pptBoxOnly=!1,this._rProgress={},setTimeout(this.jdugeSize,0))}}},methods:{togglePptBox:function(){this.state.pptBoxShow=!this.state.pptBoxShow,this.state.pptBoxOnly=!1,setTimeout(this.jdugeSize,0)},togglePptBoxOnly:function(){this.state.pptBoxOnly=!this.state.pptBoxOnly,setTimeout(this.jdugeSize,0)},toggleSkipBegin:function(){var e=!this.state.skipBegin,t=new Date;t.setMonth(t.getMonth()+1),document.cookie="skip="+ +e+";path=/;domain=.ezijing.com;expires="+t.toGMTString(),e&&this.$refs.video&&this.$refs.video.skipBegin(),this.state.skipBegin=e},onVideoTimeChange:function(e){var t=e.time;this.videoFlash.speed=parseFloat(e.quality.split(" ")[1]||1),this.videoFlash.isSeek=e.isSeek,this.videoFlash.lastTime!==t&&(this.videoFlash.lastTime=t,this.isPlaying=!0,e.isSeek||this.videoFlash.queueFrames.push(t),this.setPptIndexByTime(t),this.$emit("handlePlayTime",t))},onVideoPlayFinish:function(e){if(this.chapterVideo){if(this._rProgress&&this._rProgress.id);else{this._rProgress=d.default.assignIn({},this.chapterVideo.progress);for(var t=[],i=this.chapterVideo.video_length||1,n=0;n<i;n++)t.push(0);this.videoFlash.mapFrames=this._rProgress.map.length?this._rProgress.map:t,this._rProgress.map=this.videoFlash.mapFrames}this._rProgress.pt+10*this.videoFlash.speed>=e.time&&(this.isPlaying=!0,this.hearBeatFunc(o))}},changeVideoArr:function(e){this.$emit("changeVideoArr",e)},setPptIndexByTime:function(e){for(var t=this.ppts||[],i=0;i<t.length&&!(e<t[i].ppt_point);i++);this.state.pptIndex!==i-1&&(this.state.pptIndex=i-1)},setVideoTime:function(e){this.$refs.video&&this.$refs.video.setTimeTo(e)},jdugeSize:function(){var e=this.$refs.box,t=this.getCalculateSize(),i=0,n=0;this.state.pptBoxOnly?(n=t.ppt.w,i=t.ppt.h,this.$refs.ppt&&this.$refs.ppt.setSize(n,i)):this.state.pptBoxShow?(this.$refs.ppt&&this.$refs.ppt.setSize(t.ppt.w,t.ppt.h),this.$refs.video&&this.$refs.video.setSize(t.video.w,t.video.h),n=t.ppt.w+t.video.w,i=t.video.h):(n=t.video.w,i=t.video.h,this.$refs.video&&this.$refs.video.setSize(n,i)),this.state.calculatedSize=!0,e.style.paddingLeft=(t.space.w-n)/2+15+"px",e.style.paddingTop=(t.space.h-i)/2+10+"px"},getCalculateSize:function(){var e=this.$refs.container,t=e.offsetWidth-30,i=e.offsetHeight-53-20,n=550/363,s=336/236,r={space:{w:t,h:i},video:{w:0,h:0},ppt:{w:0,h:0}};if(this.state.pptBoxOnly)r.ppt.w=t<i*s?t:i*s,r.ppt.h=i<t/s?i:t/s;else if(this.state.pptBoxShow){var a=t/2,o=a<i*n?a:i*n,l=i<a/n?i:a/n,d=l,p=d*s;r.video.w=o,r.video.h=l,r.ppt.w=p,r.ppt.h=d}else r.video.w=t<i*n?t:i*n,r.video.h=i<t/n?i:t/n;return r},hearBeatFunc:function(e){if(this.chapterVideo&&this.isPlaying){if(this._rProgress&&this._rProgress.id);else{this._rProgress=d.default.assignIn({},this.chapterVideo.progress);for(var t=[],i=this.chapterVideo.video_length||1,n=0;n<i;n++)t.push(0);this.videoFlash.mapFrames=this._rProgress.map.length?this._rProgress.map:t,this._rProgress.map=this.videoFlash.mapFrames}var s=this._rProgress,r=this.videoFlash.lastTime,a=this.videoFlash.speed,o=this.videoFlash.isSeek,l=this.videoFlash.queueFrames;0===s.cpt&&0===s.mpt&&0===s.pt&&/skip=1/.test(document.cookie)&&(s.pt=7),o||(s.pt+=e/1e3*a,s.cpt=r,s.mpt=r>s.mpt?r:s.mpt,s.ps=l,s.vid=this.id,this.$emit("updateProgress",this._rProgress)),this.isPlaying=!1}},createHeartTime:function(e){var t=this,i=e||1e4;this.destroyHeartTime(),this.hearBeat=setInterval(function(){t.hearBeatFunc(i)},i)},destroyHeartTime:function(){this.hearBeat&&clearInterval(this.hearBeat)}}}},361:function(e,t,i){"use strict";i.r(t);var n=i(362),s=i.n(n);for(var r in n)"default"!==r&&function(e){i.d(t,e,function(){return n[e]})}(r);t.default=s.a},362:function(e,r,a){"use strict";(function(n){Object.defineProperty(r,"__esModule",{value:!0});var e,t=a(270),d=(e=t)&&e.__esModule?e:{default:e};var s="playerWrap",i=0;r.default={props:{lastTime:{type:Number,require:!1},videoId:{type:String,require:!1},width:{type:Number,require:!1},height:{type:Number,require:!1},username:{type:String,require:!1},videoSrt:{type:String,require:!1},autoPlay:{type:Boolean,require:!1,default:!0},chapterVideo:{type:Object,require:!1}},mounted:function(){this.definWindowFun()},watch:{videoId:{handler:function(){this.videoId&&(i=this.lastTime||0,this.renderPlayer("player",this.videoId,this.autoPlay,this.videoSrt,this.username,this.width,this.height))}}},methods:{definWindowFun:function(){var t=this;window._playerStart=function(){/skip=1/.test(document.cookie)?t.getPlayer().callAction("setCurrentTime",Math.max(i,7)):i&&t.getPlayer().callAction("setCurrentTime",i)},window._playerIng=function(e){n("#"+s).trigger("player.time",{time:e,quality:t.getPlayer().callAction("getQuality"),isSeek:!1})},window._playerSeek=function(){n("#"+s).trigger("player.seek",{time:t.getPlayer().callAction("getCurrentTime"),quality:t.getPlayer().callAction("getQuality"),isSeek:!0})},window._playerFinish=function(){t.$emit("handlePlayfinish",{time:t.getPlayer().callAction("getDuration")})},window._playerCallback=function(){var e=t.getPlayer();e&&(e.callAction("register","onCanplay","_playerStart"),e.callAction("register","onPlaying","_playerIng"),e.callAction("register","onSeekComplete","_playerSeek"),e.callAction("register","onEnded","_playerFinish"))}},renderPlayer:function(e,t,i,n,s,r,a){var o={autoStart:i=void 0===i?1:i-0,vid:t,isShowSpeeder:1,videoType:1,callback:"_playerCallback"};n&&(o.srtUrl=n),s&&(o.username=s);var l={id:e,name:e,align:"middle",wmode:"opaque"};d.default.embedSWF("/static/videoJs/swf/Player1705192.swf",e,parseInt(r),parseInt(a),"11.1.0","playerProductInstall.swf",o,{quality:"high",bgcolor:"#000000",allowscriptaccess:"always",allowfullscreen:"true"},l),this.listenPlayerEvents()},listenPlayerEvents:function(){var i=this;n("#"+s).off("player.time player.seek").on("player.time player.seek",function(e,t){i.$emit("handlePlayTime",t)})},getPlayer:function(){return document.getElementById("player")},getTime:function(){var e=this.getPlayer();return e?e.callAction("getCurrentTime"):0},setTimeTo:function(e){var t=this.getPlayer();t&&t.callAction("setCurrentTime",e+2)},skipBegin:function(){var e=this.getPlayer();e&&e.callAction("getCurrentTime")<7&&e.callAction("setCurrentTime",7)},setSize:function(e,t){var i=this.getPlayer();i&&(i.width=e,i.height=t)}}}}).call(this,a(313))},363:function(e,t,i){},364:function(e,t,i){"use strict";i.r(t);var n=i(365),s=i.n(n);for(var r in n)"default"!==r&&function(e){i.d(t,e,function(){return n[e]})}(r);t.default=s.a},365:function(e,i,u){"use strict";(function(n){Object.defineProperty(i,"__esModule",{value:!0});var t=e(u(41)),o=e(u(271)),l=e(u(272));function e(e){return e&&e.__esModule?e:{default:e}}var s="playerWrap",r="player",d=null,p=null,a=0;i.default={props:{lastTime:{type:Number,require:!1},videoId:{type:String,require:!1},width:{type:Number,require:!1},height:{type:Number,require:!1},username:{type:String,require:!1},videoSrt:{type:String,require:!1},autoPlay:{type:Boolean,require:!1,default:!0},chapterVideo:{type:Object,require:!1}},data:function(){return{videoArr:{}}},mounted:function(){this.definWindowFun()},watch:{videoId:{handler:function(){var i=this;if(this.videoId){a=this.lastTime||0;var e=this.$loading({lock:!0,text:"",spinner:"",background:"rgba(255, 255, 255, 0.9)"});t.default.chapterAction.getCurrentChapterDetailAliyun(this.videoId).then(function(e){i.videoArr=e.video;var t=i.getPlayer();p&&t.innerHTML?i.playNextVideo(r,i.videoId,i.autoPlay,i.videoSrt,i.username,i.width,i.height):i.renderPlayer(r,i.videoId,i.autoPlay,i.videoSrt,i.username,i.width,i.height)}).catch(function(e){i.$message.error(e.message)}).finally(function(){e.close()})}}}},methods:{definWindowFun:function(){var e=this;window._playerStart=function(){a=d.getDuration()<a?d.getDuration():a,/skip=1/.test(document.cookie)?d.seek(parseInt(Math.max(a,7))):a&&d.seek(parseInt(a))},window._playerIng=function(e){var t=d.getComponent("QualityComponent").definition,i=d.getComponent("RateComponent").html.innerText;switch(t){case"FD":t="普通";break;case"LD":t="清晰";break;case"SD":t="高清"}i&&(t+=" "+i),e=d.getCurrentTime(),n("#"+s).trigger("player.time",{time:e,quality:t,isSeek:!1})},window._playerSeekStart=function(e){},window._playerSeek=function(){var e=d.getComponent("QualityComponent").definition,t=d.getComponent("RateComponent").html.innerText;switch(e){case"FD":e="普通";break;case"LD":e="清晰";break;case"SD":e="高清"}t&&(e+=" "+t),n("#"+s).trigger("player.seek",{time:d.getCurrentTime(),quality:e,isSeek:!0})},window._playerFinish=function(){e.$emit("handlePlayfinish",{time:d.getDuration()})}},renderPlayer:function(e,t,i,n,s,r,a){i=void 0===i?1:i-0,p=new o.default({id:e,source:JSON.stringify(this.videoArr),width:"100%",height:"100%",autoplay:!!i,isLive:!1,controlBarVisibility:"always",definition:"FD,LD,SD",defaultDefinition:"LD",components:[{name:"QualityComponent",type:l.default.QualityComponent},{name:"RateComponent",type:l.default.RateComponent}]},function(s){d=s,console.log("The player is created"),s.on("sourceloaded",function(e){var t=e.paramData,i=t.desc,n=t.definition;s.getComponent("QualityComponent").setCurrentQuality(i,n)}),d&&(d.on("ready",window._playerStart),d.on("timeupdate",window._playerIng),d.on("startSeek",window._playerSeekStart),d.on("completeSeek",window._playerSeek),d.on("ended",window._playerFinish))}),this.setSize(r,a),this.listenPlayerEvents()},listenPlayerEvents:function(){var i=this;n("#"+s).off("player.time player.seek").on("player.time player.seek",function(e,t){i.$emit("handlePlayTime",t)})},playNextVideo:function(e,t,i,n,s,r,a){var o=this;this.changeVideoArr(t,function(){d._urls[0].FD=o.videoArr.FD,d._urls[1].LD=o.videoArr.LD,d._urls[2].SD=o.videoArr.SD;var e=d.getComponent("QualityComponent").definition;p.loadByUrl(o.videoArr[e])})},changeVideoArr:function(e,t){this.$emit("changeVideoArr",{vid:e,callback:t})},getPlayer:function(){return document.getElementById(r)},getTime:function(){return d?d.getCurrentTime():0},setTimeTo:function(e){d&&d.seek(parseInt(e+2))},skipBegin:function(){d&&d.getCurrentTime()<7&&d.seek(parseInt(7))},setSize:function(e,t){var i=this.getPlayer();i&&(i.style.width=e+"px",i.style.height=t+"px")}}}}).call(this,u(313))},366:function(e,t,i){"use strict";i.r(t);var n=i(367),s=i.n(n);for(var r in n)"default"!==r&&function(e){i.d(t,e,function(){return n[e]})}(r);t.default=s.a},367:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{ppts:{type:Array,require:!1},currentIndex:{type:Number,require:!1,default:0}},data:function(){return{state:{index:this.currentIndex,sync:!0}}},watch:{currentIndex:{handler:function(){this.state.sync&&(this.state.index=this.currentIndex)}}},methods:{gotoIndex:function(e){this.state.index=e},getIndex:function(e){return Math.min(this.ppts.length-1,Math.max(0,e))},prev:function(e){this.state.index=this.getIndex(this.state.index-1),this.state.sync=!1},next:function(e){this.state.index=this.getIndex(this.state.index+1),this.state.sync=!1},onToggleSync:function(e){this.state.sync=!this.state.sync,this.state.index=this.state.sync?this.currentIndex:this.state.index},onSetVideoTime:function(e){this.$emit("onVideoSyncTime",this.ppts[this.state.index].ppt_point)},setSize:function(e,t){this.$refs.wrap.style.width=e+"px",this.$refs.wrap.style.height=t+"px",this.$refs.preview.style.lineHeight=t-44+"px"}}}},419:function(e,t,i){"use strict";i.r(t);var n=i(464),s=i(361);for(var r in s)"default"!==r&&function(e){i.d(t,e,function(){return s[e]})}(r);i(420);var a=i(1),o=Object(a.a)(s.default,n.a,n.b,!1,null,"dced0884",null);o.options.__file="video.vue",t.default=o.exports},420:function(e,t,i){"use strict";var n=i(363);i.n(n).a},421:function(e,t,i){"use strict";i.r(t);var n=i(465),s=i(364);for(var r in s)"default"!==r&&function(e){i.d(t,e,function(){return s[e]})}(r);var a=i(1),o=Object(a.a)(s.default,n.a,n.b,!1,null,null,null);o.options.__file="videoH5.vue",t.default=o.exports},422:function(e,t,i){"use strict";i.r(t);var n=i(467),s=i(366);for(var r in s)"default"!==r&&function(e){i.d(t,e,function(){return s[e]})}(r);var a=i(1),o=Object(a.a)(s.default,n.a,n.b,!1,null,null,null);o.options.__file="ppt.vue",t.default=o.exports},455:function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"container",staticClass:"play-content-video"},[i("div",{ref:"box",staticClass:"play-center"},[e.chapterVideo?[i("div",{class:["play-video",e.state.pptBoxOnly?"play-video-hide":"",e.state.calculatedSize?"":"play-video-init-center"]},["3"!==e.videoType?[i("e-video",{ref:"video",attrs:{lastTime:parseFloat(e.chapterVideo.progress&&e.chapterVideo.progress.pt||0),width:e.videoFlash.videoWidth,height:e.videoFlash.videoHeight,username:e.videoFlash.username,videoId:e.chapterVideo.video_origionalID,videoSrt:e.chapterVideo.video_subtitle||"",chapterVideo:e.chapterVideo},on:{handlePlayTime:e.onVideoTimeChange,handlePlayfinish:e.onVideoPlayFinish}})]:[i("e-video-h5",{ref:"video",attrs:{lastTime:parseFloat(e.chapterVideo.progress&&e.chapterVideo.progress.pt||0),width:e.videoFlash.videoWidth,height:e.videoFlash.videoHeight,username:e.videoFlash.username,videoId:e.chapterVideo.id,videoSrt:e.chapterVideo.video_subtitle||"",chapterVideo:e.chapterVideo,videoType:e.videoType},on:{handlePlayTime:e.onVideoTimeChange,handlePlayfinish:e.onVideoPlayFinish,changeVideoArr:e.changeVideoArr}})]],2),e._v(" "),i("div",{class:["play-jiangyi",e.state.pptBoxShow?"":"hide"]},[e.ppts.length?[i("e-ppt",{ref:"ppt",attrs:{ppts:e.ppts,currentIndex:e.state.pptIndex},on:{onVideoSyncTime:e.setVideoTime,onPptOnly:e.togglePptBoxOnly,onClose:e.togglePptBox}})]:e._e()],2)]:[i("p",[e._v("课程视频数据不存在")])]],2),e._v(" "),i("div",{staticClass:"play-footer"},[i("div",{staticClass:"fl"}),e._v(" "),i("div",{staticClass:"fr"},[e.chapterVideo.pdf?[i("em",{staticClass:"play-state play-state-ppt"},[i("a",{attrs:{href:e.chapterVideo.pdf,target:"_blank"}},[e._v("下载PPT")])])]:e._e(),e._v(" "),e.ppts.length?[i("em",{class:["play-state","play-state-ppt"+(e.state.pptBoxShow?"-active":"")],on:{click:e.togglePptBox}},[e._v("同步显示PPT")])]:e._e(),e._v(" "),i("em",{class:["play-state","play-state-check"+(e.state.skipBegin?"-active":"")],on:{click:e.toggleSkipBegin}},[e._v("始终跳过片头")])],2)])])},s=[];i.d(t,"a",function(){return n}),i.d(t,"b",function(){return s})},464:function(e,t,i){"use strict";var n=function(){var e=this.$createElement;this._self._c;return this._m(0)},s=[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"playerWrap"}},[t("div",{attrs:{id:"player"}},[t("p",[this._v("您还没有安装flash播放器,请 "),t("a",{attrs:{href:"http://www.adobe.com/go/getflash",target:"_blank"}},[this._v("点击这里安装")])])])])}];i.d(t,"a",function(){return n}),i.d(t,"b",function(){return s})},465:function(e,t,i){"use strict";var n=function(){var e=this.$createElement;this._self._c;return this._m(0)},s=[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"playerWrap"}},[t("div",{attrs:{id:"player"}})])}];i.d(t,"a",function(){return n}),i.d(t,"b",function(){return s})},467:function(e,t,i){"use strict";var n=function(){var e=this,t=this,i=t.$createElement,n=t._self._c||i;return n("div",{ref:"wrap",staticClass:"play-ppt"},[t.ppts.length?[n("div",{ref:"preview",staticClass:"play-preview"},[t.ppts[t.state.index]&&t.ppts[t.state.index].ppt_url?[n("img",{staticClass:"play-ppt-img",staticStyle:{"vertical-align":"middle"},attrs:{src:t.ppts[t.state.index].ppt_url}})]:t._e()],2),t._v(" "),n("div",{staticClass:"play-controls cl"},[n("div",{staticStyle:{float:"left"}},[0<=t.state.index?[n("a",{staticStyle:{margin:"0 20px 0 0",color:"#fff"},attrs:{href:"#"},on:{click:t.prev}},[n("i",{staticClass:"el-icon-arrow-left"})])]:t._e(),t._v(" "),t.state.index+1<t.ppts.length?[n("a",{attrs:{href:"#"},on:{click:t.next}},[n("i",{staticClass:"el-icon-arrow-right",staticStyle:{color:"#fff"}})])]:t._e()],2),t._v(" "),n("div",{staticClass:"play-page"},[n("span",{staticClass:"play-now"},[t._v(t._s(t.state.index+1))]),t._v("\n /\n "),n("span",{staticClass:"play-total"},[t._v(t._s(t.ppts.length))]),t._v("页\n ")]),t._v(" "),n("div",{staticClass:"play-amazing"},[n("i",{class:["el-icon-self-xuexiao",t.state.sync?"active":""],on:{click:t.onToggleSync}}),t._v(" "),n("i",{staticClass:"el-icon-self-quanping",on:{click:function(){e.$emit("onPptOnly")}}}),t._v(" "),n("i",{staticClass:"el-icon-self-shipin",on:{click:t.onSetVideoTime}}),t._v(" "),n("i",{staticClass:"el-icon-self-guanbi",on:{click:function(){e.$emit("onClose")}}})])])]:t._e()],2)},s=[];i.d(t,"a",function(){return n}),i.d(t,"b",function(){return s})}}]);
\ No newline at end of file
#player p[data-v-b94f6c04]{color:#fff;text-align:center;padding:50px 0}#player p a[data-v-b94f6c04]{color:#b01c40;text-decoration:underline}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{269:function(e,t,i){"use strict";i.r(t);var n=i(455),a=i(359);for(var s in a)"default"!==s&&function(e){i.d(t,e,function(){return a[e]})}(s);var r=i(1),o=Object(r.a)(a.default,n.a,n.b,!1,null,null,null);o.options.__file="chapterVideo.vue",t.default=o.exports},359:function(e,t,i){"use strict";i.r(t);var n=i(360),a=i.n(n);for(var s in n)"default"!==s&&function(e){i.d(t,e,function(){return n[e]})}(s);t.default=a.a},360:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(i(419)),a=r(i(421)),s=r(i(422)),p=r(i(74));function r(e){return e&&e.__esModule?e:{default:e}}var o=1e4;t.default={components:{eVideo:n.default,eVideoH5:a.default,ePpt:s.default},props:{chapterId:{type:String,require:!1},chapterName:{type:String,require:!1},chapterVideo:{type:Object,require:!1},ppts:{type:Array,require:!1,default:[]},sid:{type:String,require:!1},cid:{type:String,require:!1},id:{type:String,require:!1},videoType:{type:String,require:!1}},data:function(){return{state:{pptIndex:0,pptBoxOnly:!1,pptBoxShow:!1,skipBegin:/skip=1/.test(document.cookie),calculatedSize:!1},videoFlash:{lastTime:null,speed:1,isSeek:!1,isFinish:!1,queueFrames:[],mapFrames:[],videoWidth:550,videoHeight:360,username:window.G.UserInfo&&window.G.UserInfo.username||"",duration:1e4},resizeVideo:null,hearBeat:null,_rProgress:{},isPlaying:!1}},mounted:function(){var e=this.getCalculateSize();e.video.w&&(this.videoFlash.videoWidth=e.video.w,this.videoFlash.videoHeight=e.video.h),this.resizeVideo||(this.resizeVideo=p.default.debounce(this.jdugeSize.bind(this),200)),setTimeout(this.jdugeSize,600),window.addEventListener("resize",this.resizeVideo),this.createHeartTime(o)},destroyed:function(){window.removeEventListener("resize",this.resizeVideo),this.destroyHeartTime(),this.hearBeatFunc(o)},watch:{id:{handler:function(){this.id&&(this.state.pptBoxShow=!1,this.state.pptBoxOnly=!1,this._rProgress={},setTimeout(this.jdugeSize,0))}}},methods:{togglePptBox:function(){this.state.pptBoxShow=!this.state.pptBoxShow,this.state.pptBoxOnly=!1,setTimeout(this.jdugeSize,0)},togglePptBoxOnly:function(){this.state.pptBoxOnly=!this.state.pptBoxOnly,setTimeout(this.jdugeSize,0)},toggleSkipBegin:function(){var e=!this.state.skipBegin,t=new Date;t.setMonth(t.getMonth()+1),document.cookie="skip="+ +e+";path=/;domain=.ezijing.com;expires="+t.toGMTString(),e&&this.$refs.video&&this.$refs.video.skipBegin(),this.state.skipBegin=e},onVideoTimeChange:function(e){var t=e.time;this.videoFlash.duration=e.duration||this.videoFlash.duration,this.videoFlash.speed=parseFloat(e.quality.split(" ")[1]||1),this.videoFlash.isSeek=e.isSeek,this.videoFlash.lastTime!==t&&(this.videoFlash.lastTime=t,this.isPlaying=!0,e.isSeek||this.videoFlash.queueFrames.push(t),this.setPptIndexByTime(t),this.$emit("handlePlayTime",t))},onVideoPlayFinish:function(e){if(this.chapterVideo){if(this._rProgress&&this._rProgress.id);else{this._rProgress=p.default.assignIn({},this.chapterVideo.progress);for(var t=[],i=this.chapterVideo.video_length||1,n=0;n<i;n++)t.push(0);this.videoFlash.mapFrames=this._rProgress.map.length?this._rProgress.map:t,this._rProgress.map=this.videoFlash.mapFrames}this._rProgress.pt+10*this.videoFlash.speed>=e.time&&(this.isPlaying=!0,this.hearBeatFunc(o))}},changeVideoArr:function(e){this.$emit("changeVideoArr",e)},setPptIndexByTime:function(e){for(var t=this.ppts||[],i=0;i<t.length&&!(e<t[i].ppt_point);i++);this.state.pptIndex!==i-1&&(this.state.pptIndex=i-1)},setVideoTime:function(e){this.$refs.video&&this.$refs.video.setTimeTo(e)},jdugeSize:function(){var e=this.$refs.box,t=this.getCalculateSize(),i=0,n=0;this.state.pptBoxOnly?(n=t.ppt.w,i=t.ppt.h,this.$refs.ppt&&this.$refs.ppt.setSize(n,i)):this.state.pptBoxShow?(this.$refs.ppt&&this.$refs.ppt.setSize(t.ppt.w,t.ppt.h),this.$refs.video&&this.$refs.video.setSize(t.video.w,t.video.h),n=t.ppt.w+t.video.w,i=t.video.h):(n=t.video.w,i=t.video.h,this.$refs.video&&this.$refs.video.setSize(n,i)),this.state.calculatedSize=!0,e.style.paddingLeft=(t.space.w-n)/2+15+"px",e.style.paddingTop=(t.space.h-i)/2+10+"px"},getCalculateSize:function(){var e=this.$refs.container,t=e.offsetWidth-30,i=e.offsetHeight-53-20,n=550/363,a=336/236,s={space:{w:t,h:i},video:{w:0,h:0},ppt:{w:0,h:0}};if(this.state.pptBoxOnly)s.ppt.w=t<i*a?t:i*a,s.ppt.h=i<t/a?i:t/a;else if(this.state.pptBoxShow){var r=t/2,o=r<i*n?r:i*n,l=i<r/n?i:r/n,d=l,p=d*a;s.video.w=o,s.video.h=l,s.ppt.w=p,s.ppt.h=d}else s.video.w=t<i*n?t:i*n,s.video.h=i<t/n?i:t/n;return s},hearBeatFunc:function(e){if(this.chapterVideo&&this.isPlaying){if(this._rProgress&&this._rProgress.id);else{this._rProgress=p.default.assignIn({},this.chapterVideo.progress);for(var t=[],i=this.chapterVideo.video_length||1,n=0;n<i;n++)t.push(0);this.videoFlash.mapFrames=this._rProgress.map.length?this._rProgress.map:t,this._rProgress.map=this.videoFlash.mapFrames}var a=this._rProgress,s=this.videoFlash.duration,r=Math.min(this.videoFlash.lastTime,s),o=this.videoFlash.speed,l=this.videoFlash.isSeek,d=this.videoFlash.queueFrames;0===a.cpt&&0===a.mpt&&0===a.pt&&/skip=1/.test(document.cookie)&&(a.pt=7),l||(a.pt+=e/1e3*o,a.cpt=r,a.mpt=r>a.mpt?r:a.mpt,a.mpt=a.mpt>s?s:a.mpt,parseInt(a.mpt)>parseInt(s)+1e4&&this.$message.info("视频播放出错,请刷新页面重新观看。"),a.ps=d,a.vid=this.id,this.$emit("updateProgress",this._rProgress)),this.isPlaying=!1}},createHeartTime:function(e){var t=this,i=e||1e4;this.destroyHeartTime(),this.hearBeat=setInterval(function(){t.hearBeatFunc(i)},i)},destroyHeartTime:function(){this.hearBeat&&clearInterval(this.hearBeat)}}}},361:function(e,t,i){"use strict";i.r(t);var n=i(362),a=i.n(n);for(var s in n)"default"!==s&&function(e){i.d(t,e,function(){return n[e]})}(s);t.default=a.a},362:function(e,s,r){"use strict";(function(n){Object.defineProperty(s,"__esModule",{value:!0});var e,t=r(270),d=(e=t)&&e.__esModule?e:{default:e};var a="playerWrap",i=0;s.default={props:{lastTime:{type:Number,require:!1},videoId:{type:String,require:!1},width:{type:Number,require:!1},height:{type:Number,require:!1},username:{type:String,require:!1},videoSrt:{type:String,require:!1},autoPlay:{type:Boolean,require:!1,default:!0},chapterVideo:{type:Object,require:!1}},mounted:function(){this.definWindowFun()},watch:{videoId:{handler:function(){this.videoId&&(i=this.lastTime||0,this.renderPlayer("player",this.videoId,this.autoPlay,this.videoSrt,this.username,this.width,this.height))}}},methods:{definWindowFun:function(){var t=this;window._playerStart=function(){/skip=1/.test(document.cookie)?t.getPlayer().callAction("setCurrentTime",Math.max(i,7)):i&&t.getPlayer().callAction("setCurrentTime",i)},window._playerIng=function(e){n("#"+a).trigger("player.time",{time:e,duration:t.getPlayer().callAction("getDuration"),quality:t.getPlayer().callAction("getQuality"),isSeek:!1})},window._playerSeek=function(){n("#"+a).trigger("player.seek",{time:t.getPlayer().callAction("getCurrentTime"),duration:t.getPlayer().callAction("getDuration"),quality:t.getPlayer().callAction("getQuality"),isSeek:!0})},window._playerFinish=function(){t.$emit("handlePlayfinish",{time:t.getPlayer().callAction("getDuration")})},window._playerCallback=function(){var e=t.getPlayer();e&&(e.callAction("register","onCanplay","_playerStart"),e.callAction("register","onPlaying","_playerIng"),e.callAction("register","onSeekComplete","_playerSeek"),e.callAction("register","onEnded","_playerFinish"))}},renderPlayer:function(e,t,i,n,a,s,r){var o={autoStart:i=void 0===i?1:i-0,vid:t,isShowSpeeder:1,videoType:1,callback:"_playerCallback"};n&&(o.srtUrl=n),a&&(o.username=a);var l={id:e,name:e,align:"middle",wmode:"opaque"};d.default.embedSWF("/static/videoJs/swf/Player1705192.swf",e,parseInt(s),parseInt(r),"11.1.0","playerProductInstall.swf",o,{quality:"high",bgcolor:"#000000",allowscriptaccess:"always",allowfullscreen:"true"},l),this.listenPlayerEvents()},listenPlayerEvents:function(){var i=this;n("#"+a).off("player.time player.seek").on("player.time player.seek",function(e,t){i.$emit("handlePlayTime",t)})},getPlayer:function(){return document.getElementById("player")},getTime:function(){var e=this.getPlayer();return e?e.callAction("getCurrentTime"):0},setTimeTo:function(e){var t=this.getPlayer();t&&t.callAction("setCurrentTime",e+2)},skipBegin:function(){var e=this.getPlayer();e&&e.callAction("getCurrentTime")<7&&e.callAction("setCurrentTime",7)},setSize:function(e,t){var i=this.getPlayer();i&&(i.width=e,i.height=t)}}}}).call(this,r(313))},363:function(e,t,i){},364:function(e,t,i){"use strict";i.r(t);var n=i(365),a=i.n(n);for(var s in n)"default"!==s&&function(e){i.d(t,e,function(){return n[e]})}(s);t.default=a.a},365:function(e,i,u){"use strict";(function(n){Object.defineProperty(i,"__esModule",{value:!0});var t=e(u(41)),o=e(u(271)),l=e(u(272));function e(e){return e&&e.__esModule?e:{default:e}}var a="playerWrap",s="player",d=null,p=null,r=0;i.default={props:{lastTime:{type:Number,require:!1},videoId:{type:String,require:!1},width:{type:Number,require:!1},height:{type:Number,require:!1},username:{type:String,require:!1},videoSrt:{type:String,require:!1},autoPlay:{type:Boolean,require:!1,default:!0},chapterVideo:{type:Object,require:!1}},data:function(){return{videoArr:{}}},mounted:function(){this.definWindowFun()},watch:{videoId:{handler:function(){var i=this;if(this.videoId){r=this.lastTime||0;var e=this.$loading({lock:!0,text:"",spinner:"",background:"rgba(255, 255, 255, 0.9)"});t.default.chapterAction.getCurrentChapterDetailAliyun(this.videoId).then(function(e){i.videoArr=e.video;var t=i.getPlayer();p&&t.innerHTML?i.playNextVideo(s,i.videoId,i.autoPlay,i.videoSrt,i.username,i.width,i.height):i.renderPlayer(s,i.videoId,i.autoPlay,i.videoSrt,i.username,i.width,i.height)}).catch(function(e){i.$message.error(e.message)}).finally(function(){e.close()})}}}},methods:{definWindowFun:function(){var e=this;window._playerStart=function(){r=d.getDuration()<r?d.getDuration():r,/skip=1/.test(document.cookie)?d.seek(parseInt(Math.max(r,7))):r&&d.seek(parseInt(r))},window._playerIng=function(e){var t=d.getComponent("QualityComponent").definition,i=d.getComponent("RateComponent").html.innerText;switch(t){case"FD":t="普通";break;case"LD":t="清晰";break;case"SD":t="高清"}i&&(t+=" "+i),e=d.getCurrentTime(),n("#"+a).trigger("player.time",{time:e,duration:d.getDuration(),quality:t,isSeek:!1})},window._playerSeekStart=function(e){},window._playerSeek=function(){var e=d.getComponent("QualityComponent").definition,t=d.getComponent("RateComponent").html.innerText;switch(e){case"FD":e="普通";break;case"LD":e="清晰";break;case"SD":e="高清"}t&&(e+=" "+t),n("#"+a).trigger("player.seek",{time:d.getCurrentTime(),duration:d.getDuration(),quality:e,isSeek:!0})},window._playerFinish=function(){e.$emit("handlePlayfinish",{time:d.getDuration()})}},renderPlayer:function(e,t,i,n,a,s,r){i=void 0===i?1:i-0,p=new o.default({id:e,source:JSON.stringify(this.videoArr),width:"100%",height:"100%",autoplay:!!i,isLive:!1,controlBarVisibility:"always",definition:"FD,LD,SD",defaultDefinition:"LD",components:[{name:"QualityComponent",type:l.default.QualityComponent},{name:"RateComponent",type:l.default.RateComponent}]},function(a){d=a,console.log("The player is created"),a.on("sourceloaded",function(e){var t=e.paramData,i=t.desc,n=t.definition;a.getComponent("QualityComponent").setCurrentQuality(i,n)}),d&&(d.on("ready",window._playerStart),d.on("timeupdate",window._playerIng),d.on("startSeek",window._playerSeekStart),d.on("completeSeek",window._playerSeek),d.on("ended",window._playerFinish))}),this.setSize(s,r),this.listenPlayerEvents()},listenPlayerEvents:function(){var i=this;n("#"+a).off("player.time player.seek").on("player.time player.seek",function(e,t){i.$emit("handlePlayTime",t)})},playNextVideo:function(e,t,i,n,a,s,r){var o=this;this.changeVideoArr(t,function(){d._urls[0].FD=o.videoArr.FD,d._urls[1].LD=o.videoArr.LD,d._urls[2].SD=o.videoArr.SD;var e=d.getComponent("QualityComponent").definition||"LD";p.loadByUrl(o.videoArr[e])})},changeVideoArr:function(e,t){this.$emit("changeVideoArr",{vid:e,callback:t})},getPlayer:function(){return document.getElementById(s)},getTime:function(){return d?d.getCurrentTime():0},setTimeTo:function(e){d&&d.seek(parseInt(e+2))},skipBegin:function(){d&&d.getCurrentTime()<7&&d.seek(parseInt(7))},setSize:function(e,t){var i=this.getPlayer();i&&(i.style.width=e+"px",i.style.height=t+"px")}}}}).call(this,u(313))},366:function(e,t,i){"use strict";i.r(t);var n=i(367),a=i.n(n);for(var s in n)"default"!==s&&function(e){i.d(t,e,function(){return n[e]})}(s);t.default=a.a},367:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{ppts:{type:Array,require:!1},currentIndex:{type:Number,require:!1,default:0}},data:function(){return{state:{index:this.currentIndex,sync:!0}}},watch:{currentIndex:{handler:function(){this.state.sync&&(this.state.index=this.currentIndex)}}},methods:{gotoIndex:function(e){this.state.index=e},getIndex:function(e){return Math.min(this.ppts.length-1,Math.max(0,e))},prev:function(e){this.state.index=this.getIndex(this.state.index-1),this.state.sync=!1},next:function(e){this.state.index=this.getIndex(this.state.index+1),this.state.sync=!1},onToggleSync:function(e){this.state.sync=!this.state.sync,this.state.index=this.state.sync?this.currentIndex:this.state.index},onSetVideoTime:function(e){this.$emit("onVideoSyncTime",this.ppts[this.state.index].ppt_point)},setSize:function(e,t){this.$refs.wrap.style.width=e+"px",this.$refs.wrap.style.height=t+"px",this.$refs.preview.style.lineHeight=t-44+"px"}}}},419:function(e,t,i){"use strict";i.r(t);var n=i(464),a=i(361);for(var s in a)"default"!==s&&function(e){i.d(t,e,function(){return a[e]})}(s);i(420);var r=i(1),o=Object(r.a)(a.default,n.a,n.b,!1,null,"b94f6c04",null);o.options.__file="video.vue",t.default=o.exports},420:function(e,t,i){"use strict";var n=i(363);i.n(n).a},421:function(e,t,i){"use strict";i.r(t);var n=i(465),a=i(364);for(var s in a)"default"!==s&&function(e){i.d(t,e,function(){return a[e]})}(s);var r=i(1),o=Object(r.a)(a.default,n.a,n.b,!1,null,null,null);o.options.__file="videoH5.vue",t.default=o.exports},422:function(e,t,i){"use strict";i.r(t);var n=i(467),a=i(366);for(var s in a)"default"!==s&&function(e){i.d(t,e,function(){return a[e]})}(s);var r=i(1),o=Object(r.a)(a.default,n.a,n.b,!1,null,null,null);o.options.__file="ppt.vue",t.default=o.exports},455:function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"container",staticClass:"play-content-video"},[i("div",{ref:"box",staticClass:"play-center"},[e.chapterVideo?[i("div",{class:["play-video",e.state.pptBoxOnly?"play-video-hide":"",e.state.calculatedSize?"":"play-video-init-center"]},["3"!==e.videoType?[i("e-video",{ref:"video",attrs:{lastTime:parseFloat(e.chapterVideo.progress&&e.chapterVideo.progress.pt||0),width:e.videoFlash.videoWidth,height:e.videoFlash.videoHeight,username:e.videoFlash.username,videoId:e.chapterVideo.video_origionalID,videoSrt:e.chapterVideo.video_subtitle||"",chapterVideo:e.chapterVideo},on:{handlePlayTime:e.onVideoTimeChange,handlePlayfinish:e.onVideoPlayFinish}})]:[i("e-video-h5",{ref:"video",attrs:{lastTime:parseFloat(e.chapterVideo.progress&&e.chapterVideo.progress.pt||0),width:e.videoFlash.videoWidth,height:e.videoFlash.videoHeight,username:e.videoFlash.username,videoId:e.chapterVideo.id,videoSrt:e.chapterVideo.video_subtitle||"",chapterVideo:e.chapterVideo,videoType:e.videoType},on:{handlePlayTime:e.onVideoTimeChange,handlePlayfinish:e.onVideoPlayFinish,changeVideoArr:e.changeVideoArr}})]],2),e._v(" "),i("div",{class:["play-jiangyi",e.state.pptBoxShow?"":"hide"]},[e.ppts.length?[i("e-ppt",{ref:"ppt",attrs:{ppts:e.ppts,currentIndex:e.state.pptIndex},on:{onVideoSyncTime:e.setVideoTime,onPptOnly:e.togglePptBoxOnly,onClose:e.togglePptBox}})]:e._e()],2)]:[i("p",[e._v("课程视频数据不存在")])]],2),e._v(" "),i("div",{staticClass:"play-footer"},[i("div",{staticClass:"fl"}),e._v(" "),i("div",{staticClass:"fr"},[e.chapterVideo.pdf?[i("em",{staticClass:"play-state play-state-ppt"},[i("a",{attrs:{href:e.chapterVideo.pdf,target:"_blank"}},[e._v("下载PPT")])])]:e._e(),e._v(" "),e.ppts.length?[i("em",{class:["play-state","play-state-ppt"+(e.state.pptBoxShow?"-active":"")],on:{click:e.togglePptBox}},[e._v("同步显示PPT")])]:e._e(),e._v(" "),i("em",{class:["play-state","play-state-check"+(e.state.skipBegin?"-active":"")],on:{click:e.toggleSkipBegin}},[e._v("始终跳过片头")])],2)])])},a=[];i.d(t,"a",function(){return n}),i.d(t,"b",function(){return a})},464:function(e,t,i){"use strict";var n=function(){var e=this.$createElement;this._self._c;return this._m(0)},a=[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"playerWrap"}},[t("div",{attrs:{id:"player"}},[t("p",[this._v("您还没有安装flash播放器,请 "),t("a",{attrs:{href:"http://www.adobe.com/go/getflash",target:"_blank"}},[this._v("点击这里安装")])])])])}];i.d(t,"a",function(){return n}),i.d(t,"b",function(){return a})},465:function(e,t,i){"use strict";var n=function(){var e=this.$createElement;this._self._c;return this._m(0)},a=[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"playerWrap"}},[t("div",{attrs:{id:"player"}})])}];i.d(t,"a",function(){return n}),i.d(t,"b",function(){return a})},467:function(e,t,i){"use strict";var n=function(){var e=this,t=this,i=t.$createElement,n=t._self._c||i;return n("div",{ref:"wrap",staticClass:"play-ppt"},[t.ppts.length?[n("div",{ref:"preview",staticClass:"play-preview"},[t.ppts[t.state.index]&&t.ppts[t.state.index].ppt_url?[n("img",{staticClass:"play-ppt-img",staticStyle:{"vertical-align":"middle"},attrs:{src:t.ppts[t.state.index].ppt_url}})]:t._e()],2),t._v(" "),n("div",{staticClass:"play-controls cl"},[n("div",{staticStyle:{float:"left"}},[0<=t.state.index?[n("a",{staticStyle:{margin:"0 20px 0 0",color:"#fff"},attrs:{href:"#"},on:{click:t.prev}},[n("i",{staticClass:"el-icon-arrow-left"})])]:t._e(),t._v(" "),t.state.index+1<t.ppts.length?[n("a",{attrs:{href:"#"},on:{click:t.next}},[n("i",{staticClass:"el-icon-arrow-right",staticStyle:{color:"#fff"}})])]:t._e()],2),t._v(" "),n("div",{staticClass:"play-page"},[n("span",{staticClass:"play-now"},[t._v(t._s(t.state.index+1))]),t._v("\n /\n "),n("span",{staticClass:"play-total"},[t._v(t._s(t.ppts.length))]),t._v("页\n ")]),t._v(" "),n("div",{staticClass:"play-amazing"},[n("i",{class:["el-icon-self-xuexiao",t.state.sync?"active":""],on:{click:t.onToggleSync}}),t._v(" "),n("i",{staticClass:"el-icon-self-quanping",on:{click:function(){e.$emit("onPptOnly")}}}),t._v(" "),n("i",{staticClass:"el-icon-self-shipin",on:{click:t.onSetVideoTime}}),t._v(" "),n("i",{staticClass:"el-icon-self-guanbi",on:{click:function(){e.$emit("onClose")}}})])])]:t._e()],2)},a=[];i.d(t,"a",function(){return n}),i.d(t,"b",function(){return a})}}]);
\ No newline at end of file
#player p[data-v-dced0884]{color:#fff;text-align:center;padding:50px 0}#player p a[data-v-dced0884]{color:#b01c40;text-decoration:underline}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{268:function(t,e,r){"use strict";r.r(e);var a=r(435),s=r(350);for(var i in s)"default"!==i&&function(t){r.d(e,t,function(){return s[t]})}(i);r(418);var n=r(1),c=Object(n.a)(s.default,a.a,a.b,!1,null,"28d6911b",null);c.options.__file="index.vue",e.default=c.exports},350:function(t,e,r){"use strict";r.r(e);var a=r(351),s=r.n(a);for(var i in a)"default"!==i&&function(t){r.d(e,t,function(){return a[t]})}(i);e.default=s.a},351:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var p=i(r(41)),u=i(r(75)),a=i(r(414)),s=i(r(416));function i(t){return t&&t.__esModule?t:{default:t}}e.default={components:{sideChapterList:a.default,sideChapterPpt:s.default},props:{sid:{type:String,require:!1},cid:{type:String,require:!1},id:{type:String,require:!1},videoType:{type:String,require:!1}},data:function(){return{SIDEBAR_CHAPTER:"sidebar_chapter",SIDEBAR_PPT:"sidebar_ppt",state:{sideBar:"sidebar_chapter",isChapterVideo:!1},chapterList:{},pptList:{},courseInfo:[],courseWork:{},curChapterName:"",chapterId:"",chapterRead:{},chapterWork:{},chapterExam:{},chapterVideo:{},chapterPpts:[]}},beforeRouteUpdate:function(t,e,r){var a=this;if("chapterVideo"===t.name){this.state.isChapterVideo=!0;var s=this.$loading({lock:!0,text:"",spinner:"",background:"rgba(255, 255, 255, 0.9)"}),i="3"!==t.params.videoType?"getCurrentChapterDetail":"getCurrentChapterDetailAliyun";p.default.chapterAction[i](t.params.id).then(function(t){a.pptList=t.image,a.chapterPpts=t.rData.ppts}).catch(function(t){a.$message.error(t.message)}).finally(function(){s.close()})}else this.state.isChapterVideo=!1;var n=this.$loading({lock:!0,text:"",spinner:"",background:"rgba(255, 255, 255, 0.9)"});p.default.chapterAction.getChapterList(t.params.cid,t.params.sid,t.params.id).then(function(e){a.chapterList=e.json,a.courseInfo=e.courseInfo,a.courseWork=e.courseWork,a.curChapterName=e.curJson.name,a.chapterId=e.curJson.chapterId,2===e.curJson.type&&p.default.chapterAction.getProgress(a.id,u.default.other.getIdt(),a.sid).then(function(t){a.chapterVideo=2===e.curJson.type&&e.curJson.chapterVideo||{},a.chapterVideo.progress=t}).catch(function(t){a.$message.error(t.message)}),a.chapterRead=4===e.curJson.type&&e.curJson.chapterRead||{},a.chapterExam=3===e.curJson.type&&1===e.curJson.work_type&&e.curJson.homework||{},a.chapterWork=3===e.curJson.type&&2===e.curJson.work_type&&e.curJson.chapterWork||{}}).catch(function(t){a.$message.error(t.message)}).finally(function(){n.close()}),r()},mounted:function(){var r=this;if("chapterVideo"===this.$route.name){this.state.isChapterVideo=!0;var t=this.$loading({lock:!0,text:"",spinner:"",background:"rgba(255, 255, 255, 0.9)"}),e="3"!==this.videoType?"getCurrentChapterDetail":"getCurrentChapterDetailAliyun";p.default.chapterAction[e](this.id).then(function(t){r.pptList=t.image,r.chapterPpts=t.rData.ppts}).catch(function(t){r.$message.error(t.message)}).finally(function(){t.close()})}var a=this.$loading({lock:!0,text:"",spinner:"",background:"rgba(255, 255, 255, 0.9)"});p.default.chapterAction.getChapterList(this.cid,this.sid,this.id).then(function(e){r.chapterList=e.json,r.courseInfo=e.courseInfo,r.courseWork=e.courseWork,r.curChapterName=e.curJson.name,r.chapterId=e.curJson.chapterId,2===e.curJson.type&&p.default.chapterAction.getProgress(r.id,u.default.other.getIdt(),r.sid).then(function(t){r.chapterVideo=2===e.curJson.type&&e.curJson.chapterVideo||{},r.chapterVideo.progress=t}).catch(function(t){r.$message.error(t.message)}),r.chapterRead=4===e.curJson.type&&e.curJson.chapterRead||{},r.chapterExam=3===e.curJson.type&&1===e.curJson.work_type&&e.curJson.homework||{},r.chapterWork=3===e.curJson.type&&2===e.curJson.work_type&&e.curJson.chapterWork||{}}).catch(function(t){r.$message.error(t.message)}).finally(function(){a.close()})},methods:{changeSideBar:function(t){this.state.sideBar=t},handlePlayTime:function(t){this.$refs.sidePpt&&this.$refs.sidePpt.setIndexByPoint(t)},handleClickSidePpt:function(t){var e=this.chapterPpts||[];if(e.length>t&&this.$refs.comTotalChapter){var r=e[t];this.$refs.comTotalChapter.setVideoTime(r.ppt_point)}},updateProgress:function(r){var e=this;if(r.cpt){for(var a=[],t=0,s=0;s<r.ps.length;s++){a[s]=r.ps[s];var i=Math.floor(r.ps[s])||1;i!==t&&(r.map[i-1]+=1,t=i)}var n=a;a=[];for(var c=t=0;c<n.length;c++)Math.floor(n[c])!==t&&(a.push(Math.floor(n[c])),t=Math.floor(n[c]));var o=window.G.UserInfo;p.default.chapterAction.updateProgress({sid:o&&o.student_info&&o.student_info.id||"",uid:o&&o.uid||"",d:u.default.other.getIdt(),i:u.default.other.getIdt(),c:this.cid,s:this.sid,v:r.vid,_p:parseInt(r.pt),_m:parseInt(r.mpt),_c:parseInt(r.cpt),ps:a.join(",")}).then(function(t){if(t.success)for(var e=0;e<a.length;e++)r.ps.shift()}).catch(function(t){e.$message.error(t.message),document.getElementById("player").callAction("pause")}).finally(function(){})}},changeVideoArr:function(t){console.log("已经实现"),t.callback&&t.callback()}}}},352:function(t,e,r){"use strict";r.r(e);var a=r(353),s=r.n(a);for(var i in a)"default"!==i&&function(t){r.d(e,t,function(){return a[t]})}(i);e.default=s.a},353:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={props:{list:{type:Object,require:!1},sid:{type:String,require:!1},cid:{type:String,require:!1}},methods:{jumpToOtherVA:function(t){var e=t.target.dataset,r=this.cid,a=e.vid,s=e.type;if(!e.hasva){var i=e.index,n=e.index1,c=this.list.course[i];return c&&c.chapters[n]?void("course_info"===c.chapters[n].id?this.$router.push({path:"/player/"+r+"/course-info/course_info"}):"course_work"===c.chapters[n].id?this.$router.push({path:"/player/"+r+"/course-work/course_work"}):3===c.chapters[n].type?1===c.chapters[n].work_type?this.$router.push({path:"/player/"+r+"/chapter-exam/"+a}):2===c.chapters[n].work_type&&this.$router.push({path:"/player/"+r+"/chapter-work/"+a}):4===c.chapters[n].type?this.$router.push({path:"/player/"+r+"/chapter-read/"+a}):"teach_evaluation"===c.chapters[n].id&&this.$router.push({path:"/survey/"+r})):void this.$message.error("系统未知错误,001")}this.$router.push({path:"/player/"+r+"/chapter-video/"+a+"/"+s})}}}},354:function(t,e,r){},355:function(t,e,r){"use strict";r.r(e);var a=r(356),s=r.n(a);for(var i in a)"default"!==i&&function(t){r.d(e,t,function(){return a[t]})}(i);e.default=s.a},356:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={props:{ppt:{type:Object,require:!1}},methods:{setIndexByPoint:function(t){for(var e=(this.ppt.imgUrls||[]).length,r=0;r<e&&!(t<this.ppt.timeArr[r]);r++);this.ppt.selectIndex!==r-1&&(this.ppt.selectIndex=r-1)},onClickPpt:function(t){var e=t.currentTarget.dataset.index-0;this.ppt.selectIndex!==e&&(this.ppt.selectIndex=e,this.$emit("handleClickPpt",e))}}}},357:function(t,e,r){},358:function(t,e,r){},414:function(t,e,r){"use strict";r.r(e);var a=r(466),s=r(352);for(var i in s)"default"!==i&&function(t){r.d(e,t,function(){return s[t]})}(i);r(415);var n=r(1),c=Object(n.a)(s.default,a.a,a.b,!1,null,"0b9dad09",null);c.options.__file="sideChapterList.vue",e.default=c.exports},415:function(t,e,r){"use strict";var a=r(354);r.n(a).a},416:function(t,e,r){"use strict";r.r(e);var a=r(462),s=r(355);for(var i in s)"default"!==i&&function(t){r.d(e,t,function(){return s[t]})}(i);r(417);var n=r(1),c=Object(n.a)(s.default,a.a,a.b,!1,null,"8ec544e6",null);c.options.__file="sideChapterPpt.vue",e.default=c.exports},417:function(t,e,r){"use strict";var a=r(357);r.n(a).a},418:function(t,e,r){"use strict";var a=r(358);r.n(a).a},435:function(t,e,r){"use strict";var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{class:["play",e.state.sideBar?"":"sidebar-hide"]},[r("div",{staticClass:"left-content"},[r("div",{staticClass:"play-top cl",style:e.state.sideBar?{}:{marginRight:0}},[r("router-link",{staticClass:"router-link-class",attrs:{to:{path:"/app/my-learn/course-detail/"+e.cid}}},[r("i",{staticClass:"play-back el-icon-arrow-left"})]),e._v(" "),r("p",[e._v(e._s(e.chapterList.title))])],1),e._v(" "),r("div",{staticClass:"play-content"},[r("router-view",{ref:"comTotalChapter",attrs:{chapterName:e.curChapterName,chapterId:e.chapterId,courseInfo:e.courseInfo,courseWork:e.courseWork,chapterRead:e.chapterRead,chapterWork:e.chapterWork,chapterExam:e.chapterExam,chapterVideo:e.chapterVideo,ppts:e.chapterPpts,videoType:e.videoType},on:{changeVideoArr:e.changeVideoArr,handlePlayTime:e.handlePlayTime,updateProgress:e.updateProgress}})],1)]),e._v(" "),r("div",{staticClass:"right-ctrl",style:{right:(e.state.sideBar?0:-388)+"px"}},[r("p",{staticClass:"ctrl-arrow",on:{click:function(t){e.changeSideBar("")}}},[r("span",[e._v(">")])]),e._v(" "),r("div",{staticClass:"ctrl-pl"},[r("ul",{staticClass:"pl-tab-hd"},[r("li",{class:[e.state.sideBar===e.SIDEBAR_CHAPTER?"on":""]},[r("a",{attrs:{href:"#"+e.SIDEBAR_CHAPTER},on:{click:function(t){e.changeSideBar(e.SIDEBAR_CHAPTER)}}},[e._v("章节")])]),e._v(" "),e.state.isChapterVideo?[r("li",{class:["br-l-line",e.state.sideBar===e.SIDEBAR_PPT?"on":""]},[r("a",{attrs:{href:"#"+e.SIDEBAR_PPT},on:{click:function(t){e.changeSideBar(e.SIDEBAR_PPT)}}},[e._v("讲义")])])]:e._e()],2),e._v(" "),r("div",{staticClass:"pl-tab-bd"},[e.state.sideBar===e.SIDEBAR_CHAPTER?[r("side-chapter-list",{attrs:{list:e.chapterList,sid:e.sid,cid:e.cid}})]:e._e(),e._v(" "),e.state.sideBar===e.SIDEBAR_PPT?[r("side-chapter-ppt",{ref:"sidePpt",attrs:{ppt:e.pptList},on:{handleClickPpt:e.handleClickSidePpt}})]:e._e()],2)])]),e._v(" "),e.state.sideBar?e._e():[r("div",{staticClass:"switch"},[r("a",{staticClass:"switch-chapter",attrs:{href:"#"+e.SIDEBAR_CHAPTER},on:{click:function(t){e.changeSideBar(e.SIDEBAR_CHAPTER)}}},[r("i",{staticClass:"el-icon-self-wenjian"}),e._v(" "),r("div",[e._v("章节")])]),e._v(" "),e.state.isChapterVideo?[r("a",{staticClass:"switch-handout",attrs:{href:"#"+e.SIDEBAR_PPT},on:{click:function(t){e.changeSideBar(e.SIDEBAR_PPT)}}},[r("i",{staticClass:"el-icon-self-PPT"}),e._v(" "),r("div",[e._v("讲义")])])]:e._e()],2)]],2)},s=[];r.d(e,"a",function(){return a}),r.d(e,"b",function(){return s})},462:function(t,e,r){"use strict";var a=function(){var r=this,t=r.$createElement,a=r._self._c||t;return a("div",{staticClass:"tab-pane"},[a("ul",{staticClass:"lecture-list"},[r._l(r.ppt.imgUrls,function(t,e){return[a("li",{key:e,class:[e===r.ppt.selectIndex?"on":""],attrs:{"data-index":e},on:{click:r.onClickPpt}},[a("img",{attrs:{src:t,alt:""}})])]})],2)])},s=[];r.d(e,"a",function(){return a}),r.d(e,"b",function(){return s})},466:function(t,e,r){"use strict";var a=function(){var a=this,t=a.$createElement,s=a._self._c||t;return s("div",{staticClass:"tab-pane"},[s("ul",{staticClass:"chapter-list"},[a._l(a.list.course,function(t,r){return[s("li",{key:r,staticClass:"chapter-item"},[s("h4",[a._v(a._s(t.title))]),a._v(" "),s("ul",{staticClass:"knot-list"},[a._l(t.chapters,function(t,e){return[s("li",{key:e,class:["knob-item",t.id===a.list.currentChapterId?"on":""]},[s("a",{staticClass:"knot-name",attrs:{"data-vid":t.id,"data-type":t.video_provider,"data-hasVA":t.time,"data-index":r,"data-index1":e},on:{click:a.jumpToOtherVA}},[a._v(a._s(t.name))]),a._v(" "),s("i",{class:["el-icon",t.time?"el-icon-self-iconset0481":3===t.type?"el-icon-edit-outline":"el-icon-self-cc-book"]})])]})],2)])]})],2)])},s=[];r.d(e,"a",function(){return a}),r.d(e,"b",function(){return s})}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{268:function(t,e,r){"use strict";r.r(e);var a=r(435),s=r(350);for(var i in s)"default"!==i&&function(t){r.d(e,t,function(){return s[t]})}(i);r(418);var n=r(1),c=Object(n.a)(s.default,a.a,a.b,!1,null,"f5549cae",null);c.options.__file="index.vue",e.default=c.exports},350:function(t,e,r){"use strict";r.r(e);var a=r(351),s=r.n(a);for(var i in a)"default"!==i&&function(t){r.d(e,t,function(){return a[t]})}(i);e.default=s.a},351:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var p=i(r(41)),u=i(r(75)),a=i(r(414)),s=i(r(416));function i(t){return t&&t.__esModule?t:{default:t}}e.default={components:{sideChapterList:a.default,sideChapterPpt:s.default},props:{sid:{type:String,require:!1},cid:{type:String,require:!1},id:{type:String,require:!1},videoType:{type:String,require:!1}},data:function(){return{SIDEBAR_CHAPTER:"sidebar_chapter",SIDEBAR_PPT:"sidebar_ppt",state:{sideBar:"sidebar_chapter",isChapterVideo:!1},chapterList:{},pptList:{},courseInfo:[],courseWork:{},curChapterName:"",chapterId:"",chapterRead:{},chapterWork:{},chapterExam:{},chapterVideo:{},chapterPpts:[]}},beforeRouteUpdate:function(t,e,r){var a=this;if("chapterVideo"===t.name){this.state.isChapterVideo=!0;var s=this.$loading({lock:!0,text:"",spinner:"",background:"rgba(255, 255, 255, 0.9)"}),i="3"!==t.params.videoType?"getCurrentChapterDetail":"getCurrentChapterDetailAliyun";p.default.chapterAction[i](t.params.id).then(function(t){a.pptList=t.image,a.chapterPpts=t.rData.ppts}).catch(function(t){a.$message.error(t.message)}).finally(function(){s.close()})}else this.state.isChapterVideo=!1;var n=this.$loading({lock:!0,text:"",spinner:"",background:"rgba(255, 255, 255, 0.9)"});p.default.chapterAction.getChapterList(t.params.cid,t.params.sid,t.params.id).then(function(e){a.chapterList=e.json,a.courseInfo=e.courseInfo,a.courseWork=e.courseWork,a.curChapterName=e.curJson.name,a.chapterId=e.curJson.chapterId,2===e.curJson.type&&p.default.chapterAction.getProgress(a.id,u.default.other.getIdt(),a.sid).then(function(t){a.chapterVideo=2===e.curJson.type&&e.curJson.chapterVideo||{},a.chapterVideo.progress=t}).catch(function(t){a.$message.error(t.message)}),a.chapterRead=4===e.curJson.type&&e.curJson.chapterRead||{},a.chapterExam=3===e.curJson.type&&1===e.curJson.work_type&&e.curJson.homework||{},a.chapterWork=3===e.curJson.type&&2===e.curJson.work_type&&e.curJson.chapterWork||{}}).catch(function(t){a.$message.error(t.message)}).finally(function(){n.close()}),r()},mounted:function(){var r=this;if("chapterVideo"===this.$route.name){this.state.isChapterVideo=!0;var t=this.$loading({lock:!0,text:"",spinner:"",background:"rgba(255, 255, 255, 0.9)"}),e="3"!==this.videoType?"getCurrentChapterDetail":"getCurrentChapterDetailAliyun";p.default.chapterAction[e](this.id).then(function(t){r.pptList=t.image,r.chapterPpts=t.rData.ppts}).catch(function(t){r.$message.error(t.message)}).finally(function(){t.close()})}var a=this.$loading({lock:!0,text:"",spinner:"",background:"rgba(255, 255, 255, 0.9)"});if("0"===this.cid&&"0"===this.sid)return this.$message({message:"URL异常,请点击“返回首页”,重新选择课程学习!",type:"info",duration:1e4}),void a.close();p.default.chapterAction.getChapterList(this.cid,this.sid,this.id).then(function(e){r.chapterList=e.json,r.courseInfo=e.courseInfo,r.courseWork=e.courseWork,r.curChapterName=e.curJson.name,r.chapterId=e.curJson.chapterId,2===e.curJson.type&&p.default.chapterAction.getProgress(r.id,u.default.other.getIdt(),r.sid).then(function(t){r.chapterVideo=2===e.curJson.type&&e.curJson.chapterVideo||{},r.chapterVideo.progress=t}).catch(function(t){r.$message.error(t.message)}),r.chapterRead=4===e.curJson.type&&e.curJson.chapterRead||{},r.chapterExam=3===e.curJson.type&&1===e.curJson.work_type&&e.curJson.homework||{},r.chapterWork=3===e.curJson.type&&2===e.curJson.work_type&&e.curJson.chapterWork||{}}).catch(function(t){r.$message.error(t.message)}).finally(function(){a.close()})},methods:{changeSideBar:function(t){this.state.sideBar=t},handlePlayTime:function(t){this.$refs.sidePpt&&this.$refs.sidePpt.setIndexByPoint(t)},handleClickSidePpt:function(t){var e=this.chapterPpts||[];if(e.length>t&&this.$refs.comTotalChapter){var r=e[t];this.$refs.comTotalChapter.setVideoTime(r.ppt_point)}},updateProgress:function(a){var r=this;if(a.cpt){for(var s=[],t=0,e=0;e<a.ps.length;e++){s[e]=a.ps[e];var i=Math.floor(a.ps[e])||1;i!==t&&(a.map[i-1]+=1,t=i)}var n=s;s=[];for(var c=t=0;c<n.length;c++)Math.floor(n[c])!==t&&(s.push(Math.floor(n[c])),t=Math.floor(n[c]));var o=window.G.UserInfo;p.default.chapterAction.updateProgress({sid:o&&o.student_info&&o.student_info.id||"",uid:o&&o.uid||"",d:u.default.other.getIdt(),i:u.default.other.getIdt(),c:this.cid,s:this.sid,v:a.vid,_p:parseInt(a.pt),_m:parseInt(a.mpt),_c:parseInt(a.cpt),ps:s.join(",")}).then(function(t){if(t.success)for(var e=0;e<s.length;e++)a.ps.shift();else{var r=document.getElementById("player");!!r.callAction?r.callAction("pause"):r.children[0].pause()}}).catch(function(t){r.$message.error(t.message);var e=document.getElementById("player");!!e.callAction?e.callAction("pause"):e.children[0].pause()}).finally(function(){})}},changeVideoArr:function(t){console.log("已经实现"),t.callback&&t.callback()}}}},352:function(t,e,r){"use strict";r.r(e);var a=r(353),s=r.n(a);for(var i in a)"default"!==i&&function(t){r.d(e,t,function(){return a[t]})}(i);e.default=s.a},353:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={props:{list:{type:Object,require:!1},sid:{type:String,require:!1},cid:{type:String,require:!1}},methods:{jumpToOtherVA:function(t){var e=t.target.dataset,r=this.cid,a=e.vid,s=e.type;if(!e.hasva){var i=e.index,n=e.index1,c=this.list.course[i];return c&&c.chapters[n]?void("course_info"===c.chapters[n].id?this.$router.push({path:"/player/"+r+"/course-info/course_info"}):"course_work"===c.chapters[n].id?this.$router.push({path:"/player/"+r+"/course-work/course_work"}):3===c.chapters[n].type?1===c.chapters[n].work_type?this.$router.push({path:"/player/"+r+"/chapter-exam/"+a}):2===c.chapters[n].work_type&&this.$router.push({path:"/player/"+r+"/chapter-work/"+a}):4===c.chapters[n].type?this.$router.push({path:"/player/"+r+"/chapter-read/"+a}):"teach_evaluation"===c.chapters[n].id&&this.$router.push({path:"/survey/"+r})):void this.$message.error("系统未知错误,001")}this.$router.push({path:"/player/"+r+"/chapter-video/"+a+"/"+s})}}}},354:function(t,e,r){},355:function(t,e,r){"use strict";r.r(e);var a=r(356),s=r.n(a);for(var i in a)"default"!==i&&function(t){r.d(e,t,function(){return a[t]})}(i);e.default=s.a},356:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={props:{ppt:{type:Object,require:!1}},methods:{setIndexByPoint:function(t){for(var e=(this.ppt.imgUrls||[]).length,r=0;r<e&&!(t<this.ppt.timeArr[r]);r++);this.ppt.selectIndex!==r-1&&(this.ppt.selectIndex=r-1)},onClickPpt:function(t){var e=t.currentTarget.dataset.index-0;this.ppt.selectIndex!==e&&(this.ppt.selectIndex=e,this.$emit("handleClickPpt",e))}}}},357:function(t,e,r){},358:function(t,e,r){},414:function(t,e,r){"use strict";r.r(e);var a=r(466),s=r(352);for(var i in s)"default"!==i&&function(t){r.d(e,t,function(){return s[t]})}(i);r(415);var n=r(1),c=Object(n.a)(s.default,a.a,a.b,!1,null,"0b9dad09",null);c.options.__file="sideChapterList.vue",e.default=c.exports},415:function(t,e,r){"use strict";var a=r(354);r.n(a).a},416:function(t,e,r){"use strict";r.r(e);var a=r(462),s=r(355);for(var i in s)"default"!==i&&function(t){r.d(e,t,function(){return s[t]})}(i);r(417);var n=r(1),c=Object(n.a)(s.default,a.a,a.b,!1,null,"8ec544e6",null);c.options.__file="sideChapterPpt.vue",e.default=c.exports},417:function(t,e,r){"use strict";var a=r(357);r.n(a).a},418:function(t,e,r){"use strict";var a=r(358);r.n(a).a},435:function(t,e,r){"use strict";var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{class:["play",e.state.sideBar?"":"sidebar-hide"]},[r("div",{staticClass:"left-content"},[r("div",{staticClass:"play-top cl",style:e.state.sideBar?{}:{marginRight:0}},[r("router-link",{staticClass:"router-link-class",attrs:{to:{path:"/app/my-learn/course-detail/"+e.cid}}},[r("i",{staticClass:"play-back el-icon-arrow-left"})]),e._v(" "),r("p",[e._v(e._s(e.chapterList.title))])],1),e._v(" "),r("div",{staticClass:"play-content"},[r("router-view",{ref:"comTotalChapter",attrs:{chapterName:e.curChapterName,chapterId:e.chapterId,courseInfo:e.courseInfo,courseWork:e.courseWork,chapterRead:e.chapterRead,chapterWork:e.chapterWork,chapterExam:e.chapterExam,chapterVideo:e.chapterVideo,ppts:e.chapterPpts,videoType:e.videoType},on:{changeVideoArr:e.changeVideoArr,handlePlayTime:e.handlePlayTime,updateProgress:e.updateProgress}})],1)]),e._v(" "),r("div",{staticClass:"right-ctrl",style:{right:(e.state.sideBar?0:-388)+"px"}},[r("p",{staticClass:"ctrl-arrow",on:{click:function(t){e.changeSideBar("")}}},[r("span",[e._v(">")])]),e._v(" "),r("div",{staticClass:"ctrl-pl"},[r("ul",{staticClass:"pl-tab-hd"},[r("li",{class:[e.state.sideBar===e.SIDEBAR_CHAPTER?"on":""]},[r("a",{attrs:{href:"#"+e.SIDEBAR_CHAPTER},on:{click:function(t){e.changeSideBar(e.SIDEBAR_CHAPTER)}}},[e._v("章节")])]),e._v(" "),e.state.isChapterVideo?[r("li",{class:["br-l-line",e.state.sideBar===e.SIDEBAR_PPT?"on":""]},[r("a",{attrs:{href:"#"+e.SIDEBAR_PPT},on:{click:function(t){e.changeSideBar(e.SIDEBAR_PPT)}}},[e._v("讲义")])])]:e._e()],2),e._v(" "),r("div",{staticClass:"pl-tab-bd"},[e.state.sideBar===e.SIDEBAR_CHAPTER?[r("side-chapter-list",{attrs:{list:e.chapterList,sid:e.sid,cid:e.cid}})]:e._e(),e._v(" "),e.state.sideBar===e.SIDEBAR_PPT?[r("side-chapter-ppt",{ref:"sidePpt",attrs:{ppt:e.pptList},on:{handleClickPpt:e.handleClickSidePpt}})]:e._e()],2)])]),e._v(" "),e.state.sideBar?e._e():[r("div",{staticClass:"switch"},[r("a",{staticClass:"switch-chapter",attrs:{href:"#"+e.SIDEBAR_CHAPTER},on:{click:function(t){e.changeSideBar(e.SIDEBAR_CHAPTER)}}},[r("i",{staticClass:"el-icon-self-wenjian"}),e._v(" "),r("div",[e._v("章节")])]),e._v(" "),e.state.isChapterVideo?[r("a",{staticClass:"switch-handout",attrs:{href:"#"+e.SIDEBAR_PPT},on:{click:function(t){e.changeSideBar(e.SIDEBAR_PPT)}}},[r("i",{staticClass:"el-icon-self-PPT"}),e._v(" "),r("div",[e._v("讲义")])])]:e._e()],2)]],2)},s=[];r.d(e,"a",function(){return a}),r.d(e,"b",function(){return s})},462:function(t,e,r){"use strict";var a=function(){var r=this,t=r.$createElement,a=r._self._c||t;return a("div",{staticClass:"tab-pane"},[a("ul",{staticClass:"lecture-list"},[r._l(r.ppt.imgUrls,function(t,e){return[a("li",{key:e,class:[e===r.ppt.selectIndex?"on":""],attrs:{"data-index":e},on:{click:r.onClickPpt}},[a("img",{attrs:{src:t,alt:""}})])]})],2)])},s=[];r.d(e,"a",function(){return a}),r.d(e,"b",function(){return s})},466:function(t,e,r){"use strict";var a=function(){var a=this,t=a.$createElement,s=a._self._c||t;return s("div",{staticClass:"tab-pane"},[s("ul",{staticClass:"chapter-list"},[a._l(a.list.course,function(t,r){return[s("li",{key:r,staticClass:"chapter-item"},[s("h4",[a._v(a._s(t.title))]),a._v(" "),s("ul",{staticClass:"knot-list"},[a._l(t.chapters,function(t,e){return[s("li",{key:e,class:["knob-item",t.id===a.list.currentChapterId?"on":""]},[s("a",{staticClass:"knot-name",attrs:{"data-vid":t.id,"data-type":t.video_provider,"data-hasVA":t.time,"data-index":r,"data-index1":e},on:{click:a.jumpToOtherVA}},[a._v(a._s(t.name))]),a._v(" "),s("i",{class:["el-icon",t.time?"el-icon-self-iconset0481":3===t.type?"el-icon-edit-outline":"el-icon-self-cc-book"]})])]})],2)])]})],2)])},s=[];r.d(e,"a",function(){return a}),r.d(e,"b",function(){return s})}}]);
\ No newline at end of file
.tab-pane[data-v-0b9dad09]{display:block;height:100%;overflow:auto}.tab-pane .chapter-list[data-v-0b9dad09]{margin:0;padding:0;line-height:1.6;overflow:hidden}.tab-pane .chapter-list .chapter-item h4[data-v-0b9dad09]{padding:10px 22px;margin:0;font-size:15px;color:#b0b0b0;background-color:#2f2f2f}.tab-pane .chapter-list .chapter-item .knot-list[data-v-0b9dad09]{margin:0;padding:0;line-height:1.6;overflow:hidden}.tab-pane .chapter-list .chapter-item .knot-list li[data-v-0b9dad09]{position:relative}.tab-pane .chapter-list .chapter-item .knot-list li.on[data-v-0b9dad09]{background:#3c3c3c}.tab-pane .chapter-list .chapter-item .knot-list li.on a[data-v-0b9dad09]{color:#b49441}.tab-pane .chapter-list .chapter-item .knot-list li[data-v-0b9dad09]:hover{background:#3c3c3c}.tab-pane .chapter-list .chapter-item .knot-list li[data-v-0b9dad09]:before{display:block;content:"";position:absolute;left:13px;top:16px;z-index:10;width:18px;height:18px;background:#5b5b5b;border:2px solid #5b5b5b;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%}.tab-pane .chapter-list .chapter-item .knot-list li[data-v-0b9dad09]:after{display:block;content:"";position:absolute;left:22px;top:0;z-index:5;width:1px;height:100px;background:#616161}.tab-pane .chapter-list .chapter-item .knot-list .knot-name[data-v-0b9dad09]{display:block;padding:15px 35px 15px 40px;font-size:14px;color:#909090;text-decoration:none;cursor:pointer}.tab-pane .chapter-list .chapter-item .el-icon[data-v-0b9dad09]{position:absolute;font-size:16px;right:10px;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%)}.tab-pane[data-v-8ec544e6]{display:block;height:100%;overflow:auto}.tab-pane .lecture-list[data-v-8ec544e6]{padding:8px 16px}.tab-pane .lecture-list li[data-v-8ec544e6]{padding:8px 16px;cursor:pointer;list-style:none}.tab-pane .lecture-list li.on[data-v-8ec544e6]{background:#888}.tab-pane .lecture-list li img[data-v-8ec544e6]{width:100%}.play{overflow:hidden;position:fixed;top:0;z-index:800;width:100%;height:100%;background-color:#3f3f3f;color:#a0a0a0}.play .left-content{position:absolute;right:350px;top:0;left:0;bottom:0;min-width:705px;height:100%}.play.sidebar-hide .left-content{right:0}.play .play-top{line-height:56px}.play .play-top p{font-size:1.5em;text-align:center;margin:0}.play .play-back{position:absolute;top:6px;left:10px;width:40px;height:40px;overflow:hidden;color:#fff;font-size:24px;line-height:40px;text-align:center}.play .play-content{position:absolute;top:56px;bottom:0;left:0;right:0}.play .play-content-video{height:100%}.play .play-center .text-error{font-size:.875em;line-height:1.5em}.play .play-video-hide{visible:hidden;overflow:hidden;width:0}.play .play-video-init-center{position:absolute;top:50%;left:50%;margin:-180px 0 0 -275px}.play .play-ppt{position:relative;width:550px;height:363.375px;background-color:#000}.play .play-ppt-img{width:100%;height:100%}.play .play-controls{position:absolute;bottom:0;left:0;right:0;height:44px;line-height:42px;padding:0 14px;background-color:#000}.play .play-controls .fl i{color:#8c8c8b}.play .play-page{position:absolute;left:50%;margin-left:-75px;color:#fff;width:150px;text-align:center;font-size:.875em}.play .play-page .play-now{color:#d29f29}.play .play-amazing{float:right}.play .play-amazing i{color:#fff;margin:0 10px;cursor:pointer}.play .play-amazing i.active,.play .play-amazing i:hover{color:#d29f29}.play .play-amazing .icon-rotate{font-size:1.125em}.play .play-footer{position:absolute;bottom:0;left:0;right:0;z-index:200;padding:18px 20px 15px}.play .play-footer a:hover{color:#a0a0a0}.play .play-state{display:inline-block;color:#a0a0a0;padding-left:25px;font-size:14px;line-height:18px;margin:0 20px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAGLCAMAAAFly2nyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3NpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDoyMDA3NTdkYS1iNTY5LTQ5MGEtYTA4MS02YWNlYWZlMGM2YzMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NDg4NUE2RkFFMkVCMTFFN0FBREZBNkNDMUEwRTI3OTkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NDg4NUE2RjlFMkVCMTFFN0FBREZBNkNDMUEwRTI3OTkiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6YzU0NDA3MDYtMWE4Mi00MDk4LTg2NWYtMzYwMmY4NWY1NThkIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjIwMDc1N2RhLWI1NjktNDkwYS1hMDgxLTZhY2VhZmUwYzZjMyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pn/9WLEAAAGAUExURV9WQIWFhbGSQVVVVXR0dFNTU7SUQUBAQE5OTkFBQU9PT0JCQp6enpiYmFFMP6mMQUBAP5aWllFRUWpqaqqNQZGRkVhYWEpKSouLi5CQkJqBQYGBgXp6emVlZXJkQFJNP52dnUJBP5OTk6GGQYKCgpubm2hoaFlZWZWVlWFhYUtLS319fXl5eZ+fn4CAgFtTP0NDQ1xUP4ZyQE1NTUREREVFRUZGRpmZmVtbW2xsbIODg1paWlxcXFdXV3FjQGdnZ0hISHNzc1BQUF5eXmlpaYiIiIl1QHNlQKKHQZeXl2FYQF1dXWBXQFZWVl9fX0dHR0pHP1hRP6+QQYaGhnt7e0NCP6uOQYVyQFVPP6CFQWRkZHpqQHFxcZKSkqOIQV5VQH5tQG9iQI+Pj0VDP5d/QKSIQaSJQaCGQXBjQFJSUm9vb35+fmNjY2tra2hdQI14QEVEP4mJiWZbQFlSP6iLQV1VQHZ2dpycnIqKioRxQJR9QE5KP5SUlHx8fKCgoD8/P7j7iVMAAAVKSURBVHjabM3RCYAwDEXRR6GBQkEcoUMIDuFMuatrBW2DflwCB8KTg9wRjLZuRMu9HO3xYBVViiiTJZRoog3b3e+Ndfo9zGTXXfjuvPmvnwKIAUyhII16LIJwxIrMFQOREpIwbjyIlFKGcoEORdYIdCNWA+swzOeqBwgghjobaDhiJYHhjkeW1ZQVn6w4iPSvx22CBIN1vWR9Eg5ZKQafeuX6SGyuQiIxZdmQyHoCZB0kvrDKWkLZsvX1AAEEJE3BKsHqBeuIMBndFkg419WTqpcdRLKCw1mIlUS9kNQPzhccEL1Em6ATCyTVoCJZQJKdG8x24eIgqDc8DkjaQUWigaRAKJgtJ89HSG8dEFiA2XUYpCcBvWxA4ANms2GQ/CSHG2pogNKAngrYhZyQPM5OpF5RCFsBTGqASF2QCEAAgVOvKzQh54K8DRcVQkrY9VRi1rnWg5MhNIiFoUwnuChVbQOmsnpQggMxHVhZWVnhogas1LdNCERCrQACThiTHSZKVdvqbe2BFLs5kCkDFuGtFwbHsqCJTX09F1ABL1hYnYsqthkmAimBMCDTCCwiUi9Xz+ABTNAFXvX18kAFIhCF8lRJJTBWHWEm5baxwVhshJnUjUJimN4wZkidNIQZXGeFUFAHLgegaus0qWWxMy+SqFYdjKkqhqEWIIAQcQFiccGKjxpYQaKAKFI0kQoXCVRjBgkL6j4ORBmlhCitFGAsP6hYIWapNQhYrMgsbliR5wQr/DIRxaAZUoHINSjjA8IyQypX2RElrDGcBfOlOHJJyzpo/CEWy6MDZvECq4J6NVtgAxoip1bPIAyitYTqZRhA7Zp6xvp6HgaOemZ/JSBHiSGpvl4UKM5uzcAhBi3kGeo5JDkMXCQGwB+lcUzhYJaIAJCyMwS2/CFyGfUMciC6OqLeiEERxKqqr2di4KsPDEgDctIYIuvrPYBtLwEGBr54aPXBUM+nzJcsJ0V3fwjWQYAgUo6nhOULZTHT2R/8bBAAaVIiuhnksvShLP1BWgqQx/KGserqUGtMBkTVCWPUM1jVqcD0ZsOqW1DNqwczhWVgy/s6cbiYAitc1twZrk4U1lnk0IWKialC1UVpYJgHEKAd8+ppGIaisBlR0owOaCmFlkIZpZRd9i6jZYgtIQQ8gNgSAgkQ4wH7r2PHcbHjIt4Qorkvib5c+1i2ont86bWaxJ0lssG8CSFX2WG0w/lt+LxclcxwjLyYEiNeNVHGaiCPcSyUYb6W3z9onhgSI9EclVhVTswza0dc8x0hWcPb+/JMYWZqrE5kapRdJx3myyk0+DxDkxkbLGugbW/vf2AqexP2TzNkhmNxVGaKcrvgYnVjrrH6oKTh7f23TFuJ1euGodfHVjTKNCv9lZK2MAXpWOnkUOYEqbE0AimdEfWNuGAthUAnKcT5LWym1hbsSmIikLUtcr4520uzl7NYo9FuCdY4f+U8dcOz1rwjo3aNz5bWPB1Pma+R+HRlnIf/or2YbGtLFtsv/JT5w/x1PYwpANfBErk/RsFrgMBlkpFgU5FMdInAHjHzp48IPQV2yJfzagQKttU/fSi80+yWAtZouiGvu4cUnVFXPxQ+c2SCcwdDX63I4avqvdVhUAn1fJPVWue5GeJ6V+X6Wb/LJtagGKGJf30egQHWyXOeAwGuu1eu4/e7bJ1d6lg8r3t15m+yWggzIovj/6df5VmWeHQfP3YKkw6fMN8+RlM+t0a/O9HW+BAndNZChOW71cxGBZ9Roq9bk/MaOlkDmx+rd/clpPl6InBSZIrVuiWOXWodV0SNSRjpca3lE672gHeiUdU0AAAAAElFTkSuQmCC) no-repeat 0 0;cursor:pointer}.play .play-state a{color:#a0a0a0;text-decoration:none}.play .play-state-prev{background-position:0 2px}.play .play-state-prev-disable{background-position:0 -78px;color:#666}.play .play-state-next{background-position:0 -38px}.play .play-state-next-disable{background-position:0 -118px;color:#666}.play .play-state-check{background-position:0 -160px}.play .play-state-check-active{background-position:0 -200px;color:#b19241}.play .play-state-ppt{background-position:0 -240px}.play .play-state-ppt-active{background-position:0 -280px;color:#b19241}.play .play-state-next-disable:hover,.play .play-state-prev-disable:hover{color:#666!important}.play .switch{display:block;width:36px;height:125px;position:absolute;right:0;top:50%;text-align:center;margin:-63px 0 0;z-index:998;cursor:pointer}.play .switch a{color:#a0a0a0;text-decoration:none;font-size:14px;line-height:2;margin-bottom:20px}.play .switch a i{font-size:24px;padding:5px;background:#666;border-radius:4px}.play .play-paper{position:absolute;top:0;bottom:0;left:0;right:0;overflow:auto;background-color:#e5e5e5}.play .play-paper-body{min-height:500px;margin:25px;padding:15px 45px 25px;color:#313131;box-shadow:0 0 2px rgba(0,0,0,.05);background-color:#f2f2f2}.play .play-paper-title{margin:0 10px;text-align:center}.play .play-paper-title div{padding-bottom:3px;display:inline-block;border-bottom:1px solid #707070}.play .play-paper-title h3{padding:0 0 5px;margin:0;display:inline-block;font-size:20px;border-bottom:3px solid #707070}.play .play-paper-body .help{color:#999;font-size:12px}.play .play-paper-body .help-file{margin-top:-10px}.play .play-paper-body .area-btns{margin:20px 0}.play .play-paper-body .area-btns .btn{padding:6px 25px}.play .play-paper-body .area-btns .help{margin-top:10px;font-size:14px}.play .play-paper-body .area-btns .help-info{display:inline-block;vertical-align:middle}.play .play-paper-body .webuploader-btn .upbtn{color:#b49441;text-decoration:underline;padding:3px 15px;font-size:.9em;display:inline-block}.play .play-paper-body .webuploader-btn .loading .fa-spin{font-size:1.2em!important}.play .play-paper-body label{font-weight:400}.play .play-paper-body input{vertical-align:middle}.play .play-paper-check{margin-top:20px;padding:20px;border:1px solid #dedede}.play .play-paper-check h4{font-size:16px;margin:0 0 10px}.play .play-paper-check-item{padding-left:3em}.play .play-paper-check-item b{margin-left:-3em;margin-top:1px}.play .play-paper-check-item .edit_html,.play .play-paper-check-item b{display:inline-block;vertical-align:top}.play .play-read-files{padding:30px;margin:0}.play .play-read-files li{font-size:16px;padding:20px 30px;margin-bottom:10px;background-color:#fff;list-style:none}.play .play-read-files li a{color:#333;text-decoration:none}.play .play-read-files li a:hover{color:#b49441}.play .play-chapter-work{padding:25px}.play .play-chapter-work .work-number{margin-left:-25px}.play .play-chapter-work .work-title{margin-top:-20px;margin-bottom:10px}.play .play-chapter-work .area-btns{margin:20px -25px 0;border-top:1px solid #eaeaea;padding-top:20px}.play .play-chapter-exam{padding:25px}.play .play-chapter-exam li{position:relative;margin-top:15px;border-bottom:1px solid #b49441}.play .play-chapter-exam .exam-title{margin:-20px 0 10px 25px}.play .play-chapter-exam .wrong{color:#d80000}.play .play-chapter-exam .correct{color:#090}.play .play-chapter-exam .answer{position:absolute;right:25px;bottom:10px}.play .play-chapter-exam .result{float:right;margin-top:-20px;margin-right:-20px;font-size:16px;font-weight:700}.play dd,.play dl,.play dt,.play li,.play ol,.play ul{margin:0;padding:0;list-style:none}.play .edit_html p{padding:0;margin:0 0 15px}.play .play-paper-step{font-weight:700;font-size:16px;margin:30px -20px 15px;padding-bottom:10px;border-bottom:1px dashed #cecece}.play .no-data{color:#c9c9c9;font-size:36px;padding:160px 0;text-align:center}.play .hide{display:none}.play .play-jiangyi,.play .play-video{float:left}@media (max-width:768px){.play .left-content{min-width:0;right:0}.play .play-back{margin:0}.play .play-chapter-work{padding:25px 0;margin-right:-20px}.play .play-read-files{padding:30px 0;margin:0 -20px}.play .switch{top:80%}.play .play-paper-body{padding:15px 25px 25px}.play .play-paper-step{margin:30px 0 15px}}.exam .q-group .q-title p{padding:0;margin:0}.exam .el-radio+.el-radio{margin-left:0}.exam .el-radio__input.is-disabled+span.el-radio__label{color:inherit}.exam .el-checkbox+.el-checkbox{margin-left:0}.exam .el-checkbox__input.is-disabled+span.el-checkbox__label{color:inherit}.exam .el-checkbox__label,.exam .el-radio__label{white-space:normal}#player .prism-cc-btn,#player .prism-setting-btn{display:none}.right-ctrl[data-v-28d6911b]{position:absolute;top:0;bottom:0;right:0;z-index:200;width:350px;background:#212121;border-left:19px solid #1b1b1b}.right-ctrl .ctrl-arrow[data-v-28d6911b]{position:absolute;top:0;left:-19px;bottom:0;width:19px;height:100%;font-size:14px;color:#969696;cursor:pointer}.right-ctrl .ctrl-arrow span[data-v-28d6911b]{position:absolute;top:50%;left:0;width:19px;margin-top:-10px;text-align:center;color:#fff}.right-ctrl .ctrl-pl[data-v-28d6911b]{position:relative;height:100%}.right-ctrl .ctrl-pl .pl-tab-hd[data-v-28d6911b]{margin:0;padding:15px 0;line-height:1.6;background-color:#232323;overflow:hidden}.right-ctrl .ctrl-pl .pl-tab-hd li[data-v-28d6911b]{float:left;position:relative;width:50%;padding:0;font-size:16px;color:#909090;text-align:center;list-style:none;cursor:pointer}.right-ctrl .ctrl-pl .pl-tab-hd li a[data-v-28d6911b]{color:#909090;text-decoration:none}.right-ctrl .ctrl-pl .pl-tab-hd li.on a[data-v-28d6911b]{color:#b49441}.right-ctrl .ctrl-pl .pl-tab-hd .br-l-line[data-v-28d6911b]{border-left:1px solid #3f3f3f}.right-ctrl .ctrl-pl .pl-tab-bd[data-v-28d6911b]{height:94%}
\ No newline at end of file
.tab-pane[data-v-0b9dad09]{display:block;height:100%;overflow:auto}.tab-pane .chapter-list[data-v-0b9dad09]{margin:0;padding:0;line-height:1.6;overflow:hidden}.tab-pane .chapter-list .chapter-item h4[data-v-0b9dad09]{padding:10px 22px;margin:0;font-size:15px;color:#b0b0b0;background-color:#2f2f2f}.tab-pane .chapter-list .chapter-item .knot-list[data-v-0b9dad09]{margin:0;padding:0;line-height:1.6;overflow:hidden}.tab-pane .chapter-list .chapter-item .knot-list li[data-v-0b9dad09]{position:relative}.tab-pane .chapter-list .chapter-item .knot-list li.on[data-v-0b9dad09]{background:#3c3c3c}.tab-pane .chapter-list .chapter-item .knot-list li.on a[data-v-0b9dad09]{color:#b49441}.tab-pane .chapter-list .chapter-item .knot-list li[data-v-0b9dad09]:hover{background:#3c3c3c}.tab-pane .chapter-list .chapter-item .knot-list li[data-v-0b9dad09]:before{display:block;content:"";position:absolute;left:13px;top:16px;z-index:10;width:18px;height:18px;background:#5b5b5b;border:2px solid #5b5b5b;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%}.tab-pane .chapter-list .chapter-item .knot-list li[data-v-0b9dad09]:after{display:block;content:"";position:absolute;left:22px;top:0;z-index:5;width:1px;height:100px;background:#616161}.tab-pane .chapter-list .chapter-item .knot-list .knot-name[data-v-0b9dad09]{display:block;padding:15px 35px 15px 40px;font-size:14px;color:#909090;text-decoration:none;cursor:pointer}.tab-pane .chapter-list .chapter-item .el-icon[data-v-0b9dad09]{position:absolute;font-size:16px;right:10px;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%)}.tab-pane[data-v-8ec544e6]{display:block;height:100%;overflow:auto}.tab-pane .lecture-list[data-v-8ec544e6]{padding:8px 16px}.tab-pane .lecture-list li[data-v-8ec544e6]{padding:8px 16px;cursor:pointer;list-style:none}.tab-pane .lecture-list li.on[data-v-8ec544e6]{background:#888}.tab-pane .lecture-list li img[data-v-8ec544e6]{width:100%}.play{overflow:hidden;position:fixed;top:0;z-index:800;width:100%;height:100%;background-color:#3f3f3f;color:#a0a0a0}.play .left-content{position:absolute;right:350px;top:0;left:0;bottom:0;min-width:705px;height:100%}.play.sidebar-hide .left-content{right:0}.play .play-top{line-height:56px}.play .play-top p{font-size:1.5em;text-align:center;margin:0}.play .play-back{position:absolute;top:6px;left:10px;width:40px;height:40px;overflow:hidden;color:#fff;font-size:24px;line-height:40px;text-align:center}.play .play-content{position:absolute;top:56px;bottom:0;left:0;right:0}.play .play-content-video{height:100%}.play .play-center .text-error{font-size:.875em;line-height:1.5em}.play .play-video-hide{visible:hidden;overflow:hidden;width:0}.play .play-video-init-center{position:absolute;top:50%;left:50%;margin:-180px 0 0 -275px}.play .play-ppt{position:relative;width:550px;height:363.375px;background-color:#000}.play .play-ppt-img{width:100%;height:100%}.play .play-controls{position:absolute;bottom:0;left:0;right:0;height:44px;line-height:42px;padding:0 14px;background-color:#000}.play .play-controls .fl i{color:#8c8c8b}.play .play-page{position:absolute;left:50%;margin-left:-75px;color:#fff;width:150px;text-align:center;font-size:.875em}.play .play-page .play-now{color:#d29f29}.play .play-amazing{float:right}.play .play-amazing i{color:#fff;margin:0 10px;cursor:pointer}.play .play-amazing i.active,.play .play-amazing i:hover{color:#d29f29}.play .play-amazing .icon-rotate{font-size:1.125em}.play .play-footer{position:absolute;bottom:0;left:0;right:0;z-index:200;padding:18px 20px 15px}.play .play-footer a:hover{color:#a0a0a0}.play .play-state{display:inline-block;color:#a0a0a0;padding-left:25px;font-size:14px;line-height:18px;margin:0 20px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAGLCAMAAAFly2nyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3NpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDoyMDA3NTdkYS1iNTY5LTQ5MGEtYTA4MS02YWNlYWZlMGM2YzMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NDg4NUE2RkFFMkVCMTFFN0FBREZBNkNDMUEwRTI3OTkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NDg4NUE2RjlFMkVCMTFFN0FBREZBNkNDMUEwRTI3OTkiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6YzU0NDA3MDYtMWE4Mi00MDk4LTg2NWYtMzYwMmY4NWY1NThkIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjIwMDc1N2RhLWI1NjktNDkwYS1hMDgxLTZhY2VhZmUwYzZjMyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pn/9WLEAAAGAUExURV9WQIWFhbGSQVVVVXR0dFNTU7SUQUBAQE5OTkFBQU9PT0JCQp6enpiYmFFMP6mMQUBAP5aWllFRUWpqaqqNQZGRkVhYWEpKSouLi5CQkJqBQYGBgXp6emVlZXJkQFJNP52dnUJBP5OTk6GGQYKCgpubm2hoaFlZWZWVlWFhYUtLS319fXl5eZ+fn4CAgFtTP0NDQ1xUP4ZyQE1NTUREREVFRUZGRpmZmVtbW2xsbIODg1paWlxcXFdXV3FjQGdnZ0hISHNzc1BQUF5eXmlpaYiIiIl1QHNlQKKHQZeXl2FYQF1dXWBXQFZWVl9fX0dHR0pHP1hRP6+QQYaGhnt7e0NCP6uOQYVyQFVPP6CFQWRkZHpqQHFxcZKSkqOIQV5VQH5tQG9iQI+Pj0VDP5d/QKSIQaSJQaCGQXBjQFJSUm9vb35+fmNjY2tra2hdQI14QEVEP4mJiWZbQFlSP6iLQV1VQHZ2dpycnIqKioRxQJR9QE5KP5SUlHx8fKCgoD8/P7j7iVMAAAVKSURBVHjabM3RCYAwDEXRR6GBQkEcoUMIDuFMuatrBW2DflwCB8KTg9wRjLZuRMu9HO3xYBVViiiTJZRoog3b3e+Ndfo9zGTXXfjuvPmvnwKIAUyhII16LIJwxIrMFQOREpIwbjyIlFKGcoEORdYIdCNWA+swzOeqBwgghjobaDhiJYHhjkeW1ZQVn6w4iPSvx22CBIN1vWR9Eg5ZKQafeuX6SGyuQiIxZdmQyHoCZB0kvrDKWkLZsvX1AAEEJE3BKsHqBeuIMBndFkg419WTqpcdRLKCw1mIlUS9kNQPzhccEL1Em6ATCyTVoCJZQJKdG8x24eIgqDc8DkjaQUWigaRAKJgtJ89HSG8dEFiA2XUYpCcBvWxA4ANms2GQ/CSHG2pogNKAngrYhZyQPM5OpF5RCFsBTGqASF2QCEAAgVOvKzQh54K8DRcVQkrY9VRi1rnWg5MhNIiFoUwnuChVbQOmsnpQggMxHVhZWVnhogas1LdNCERCrQACThiTHSZKVdvqbe2BFLs5kCkDFuGtFwbHsqCJTX09F1ABL1hYnYsqthkmAimBMCDTCCwiUi9Xz+ABTNAFXvX18kAFIhCF8lRJJTBWHWEm5baxwVhshJnUjUJimN4wZkidNIQZXGeFUFAHLgegaus0qWWxMy+SqFYdjKkqhqEWIIAQcQFiccGKjxpYQaKAKFI0kQoXCVRjBgkL6j4ORBmlhCitFGAsP6hYIWapNQhYrMgsbliR5wQr/DIRxaAZUoHINSjjA8IyQypX2RElrDGcBfOlOHJJyzpo/CEWy6MDZvECq4J6NVtgAxoip1bPIAyitYTqZRhA7Zp6xvp6HgaOemZ/JSBHiSGpvl4UKM5uzcAhBi3kGeo5JDkMXCQGwB+lcUzhYJaIAJCyMwS2/CFyGfUMciC6OqLeiEERxKqqr2di4KsPDEgDctIYIuvrPYBtLwEGBr54aPXBUM+nzJcsJ0V3fwjWQYAgUo6nhOULZTHT2R/8bBAAaVIiuhnksvShLP1BWgqQx/KGserqUGtMBkTVCWPUM1jVqcD0ZsOqW1DNqwczhWVgy/s6cbiYAitc1twZrk4U1lnk0IWKialC1UVpYJgHEKAd8+ppGIaisBlR0owOaCmFlkIZpZRd9i6jZYgtIQQ8gNgSAgkQ4wH7r2PHcbHjIt4Qorkvib5c+1i2ont86bWaxJ0lssG8CSFX2WG0w/lt+LxclcxwjLyYEiNeNVHGaiCPcSyUYb6W3z9onhgSI9EclVhVTswza0dc8x0hWcPb+/JMYWZqrE5kapRdJx3myyk0+DxDkxkbLGugbW/vf2AqexP2TzNkhmNxVGaKcrvgYnVjrrH6oKTh7f23TFuJ1euGodfHVjTKNCv9lZK2MAXpWOnkUOYEqbE0AimdEfWNuGAthUAnKcT5LWym1hbsSmIikLUtcr4520uzl7NYo9FuCdY4f+U8dcOz1rwjo3aNz5bWPB1Pma+R+HRlnIf/or2YbGtLFtsv/JT5w/x1PYwpANfBErk/RsFrgMBlkpFgU5FMdInAHjHzp48IPQV2yJfzagQKttU/fSi80+yWAtZouiGvu4cUnVFXPxQ+c2SCcwdDX63I4avqvdVhUAn1fJPVWue5GeJ6V+X6Wb/LJtagGKGJf30egQHWyXOeAwGuu1eu4/e7bJ1d6lg8r3t15m+yWggzIovj/6df5VmWeHQfP3YKkw6fMN8+RlM+t0a/O9HW+BAndNZChOW71cxGBZ9Roq9bk/MaOlkDmx+rd/clpPl6InBSZIrVuiWOXWodV0SNSRjpca3lE672gHeiUdU0AAAAAElFTkSuQmCC) no-repeat 0 0;cursor:pointer}.play .play-state a{color:#a0a0a0;text-decoration:none}.play .play-state-prev{background-position:0 2px}.play .play-state-prev-disable{background-position:0 -78px;color:#666}.play .play-state-next{background-position:0 -38px}.play .play-state-next-disable{background-position:0 -118px;color:#666}.play .play-state-check{background-position:0 -160px}.play .play-state-check-active{background-position:0 -200px;color:#b19241}.play .play-state-ppt{background-position:0 -240px}.play .play-state-ppt-active{background-position:0 -280px;color:#b19241}.play .play-state-next-disable:hover,.play .play-state-prev-disable:hover{color:#666!important}.play .switch{display:block;width:36px;height:125px;position:absolute;right:0;top:50%;text-align:center;margin:-63px 0 0;z-index:998;cursor:pointer}.play .switch a{color:#a0a0a0;text-decoration:none;font-size:14px;line-height:2;margin-bottom:20px}.play .switch a i{font-size:24px;padding:5px;background:#666;border-radius:4px}.play .play-paper{position:absolute;top:0;bottom:0;left:0;right:0;overflow:auto;background-color:#e5e5e5}.play .play-paper-body{min-height:500px;margin:25px;padding:15px 45px 25px;color:#313131;box-shadow:0 0 2px rgba(0,0,0,.05);background-color:#f2f2f2}.play .play-paper-title{margin:0 10px;text-align:center}.play .play-paper-title div{padding-bottom:3px;display:inline-block;border-bottom:1px solid #707070}.play .play-paper-title h3{padding:0 0 5px;margin:0;display:inline-block;font-size:20px;border-bottom:3px solid #707070}.play .play-paper-body .help{color:#999;font-size:12px}.play .play-paper-body .help-file{margin-top:-10px}.play .play-paper-body .area-btns{margin:20px 0}.play .play-paper-body .area-btns .btn{padding:6px 25px}.play .play-paper-body .area-btns .help{margin-top:10px;font-size:14px}.play .play-paper-body .area-btns .help-info{display:inline-block;vertical-align:middle}.play .play-paper-body .webuploader-btn .upbtn{color:#b49441;text-decoration:underline;padding:3px 15px;font-size:.9em;display:inline-block}.play .play-paper-body .webuploader-btn .loading .fa-spin{font-size:1.2em!important}.play .play-paper-body label{font-weight:400}.play .play-paper-body input{vertical-align:middle}.play .play-paper-check{margin-top:20px;padding:20px;border:1px solid #dedede}.play .play-paper-check h4{font-size:16px;margin:0 0 10px}.play .play-paper-check-item{padding-left:3em}.play .play-paper-check-item b{margin-left:-3em;margin-top:1px}.play .play-paper-check-item .edit_html,.play .play-paper-check-item b{display:inline-block;vertical-align:top}.play .play-read-files{padding:30px;margin:0}.play .play-read-files li{font-size:16px;padding:20px 30px;margin-bottom:10px;background-color:#fff;list-style:none}.play .play-read-files li a{color:#333;text-decoration:none}.play .play-read-files li a:hover{color:#b49441}.play .play-chapter-work{padding:25px}.play .play-chapter-work .work-number{margin-left:-25px}.play .play-chapter-work .work-title{margin-top:-20px;margin-bottom:10px}.play .play-chapter-work .area-btns{margin:20px -25px 0;border-top:1px solid #eaeaea;padding-top:20px}.play .play-chapter-exam{padding:25px}.play .play-chapter-exam li{position:relative;margin-top:15px;border-bottom:1px solid #b49441}.play .play-chapter-exam .exam-title{margin:-20px 0 10px 25px}.play .play-chapter-exam .wrong{color:#d80000}.play .play-chapter-exam .correct{color:#090}.play .play-chapter-exam .answer{position:absolute;right:25px;bottom:10px}.play .play-chapter-exam .result{float:right;margin-top:-20px;margin-right:-20px;font-size:16px;font-weight:700}.play dd,.play dl,.play dt,.play li,.play ol,.play ul{margin:0;padding:0;list-style:none}.play .edit_html p{padding:0;margin:0 0 15px}.play .play-paper-step{font-weight:700;font-size:16px;margin:30px -20px 15px;padding-bottom:10px;border-bottom:1px dashed #cecece}.play .no-data{color:#c9c9c9;font-size:36px;padding:160px 0;text-align:center}.play .hide{display:none}.play .play-jiangyi,.play .play-video{float:left}@media (max-width:768px){.play .left-content{min-width:0;right:0}.play .play-back{margin:0}.play .play-chapter-work{padding:25px 0;margin-right:-20px}.play .play-read-files{padding:30px 0;margin:0 -20px}.play .switch{top:80%}.play .play-paper-body{padding:15px 25px 25px}.play .play-paper-step{margin:30px 0 15px}}.exam .q-group .q-title p{padding:0;margin:0}.exam .el-radio+.el-radio{margin-left:0}.exam .el-radio__input.is-disabled+span.el-radio__label{color:inherit}.exam .el-checkbox+.el-checkbox{margin-left:0}.exam .el-checkbox__input.is-disabled+span.el-checkbox__label{color:inherit}.exam .el-checkbox__label,.exam .el-radio__label{white-space:normal}#player .prism-cc-btn,#player .prism-setting-btn{display:none}.right-ctrl[data-v-f5549cae]{position:absolute;top:0;bottom:0;right:0;z-index:200;width:350px;background:#212121;border-left:19px solid #1b1b1b}.right-ctrl .ctrl-arrow[data-v-f5549cae]{position:absolute;top:0;left:-19px;bottom:0;width:19px;height:100%;font-size:14px;color:#969696;cursor:pointer}.right-ctrl .ctrl-arrow span[data-v-f5549cae]{position:absolute;top:50%;left:0;width:19px;margin-top:-10px;text-align:center;color:#fff}.right-ctrl .ctrl-pl[data-v-f5549cae]{position:relative;height:100%}.right-ctrl .ctrl-pl .pl-tab-hd[data-v-f5549cae]{margin:0;padding:15px 0;line-height:1.6;background-color:#232323;overflow:hidden}.right-ctrl .ctrl-pl .pl-tab-hd li[data-v-f5549cae]{float:left;position:relative;width:50%;padding:0;font-size:16px;color:#909090;text-align:center;list-style:none;cursor:pointer}.right-ctrl .ctrl-pl .pl-tab-hd li a[data-v-f5549cae]{color:#909090;text-decoration:none}.right-ctrl .ctrl-pl .pl-tab-hd li.on a[data-v-f5549cae]{color:#b49441}.right-ctrl .ctrl-pl .pl-tab-hd .br-l-line[data-v-f5549cae]{border-left:1px solid #3f3f3f}.right-ctrl .ctrl-pl .pl-tab-bd[data-v-f5549cae]{height:94%}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],[,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportApi=t.scoreApi=t.msgApi=t.discussApi=t.courseApi=t.chapterApi=t.loginApi=void 0;var r=l(n(182)),o=l(n(203)),i=l(n(204)),u=l(n(205)),a=l(n(206)),s=l(n(207)),c=l(n(208));function l(e){return e&&e.__esModule?e:{default:e}}var d=new r.default({devDomain:"http://dev.ezijing.com:12002",apiBaseURL:"/api",CDN_PATH:"https://zws-imgs-pub.ezijing.com/static/build/learn-enterprise/"}),f=new o.default({devDomain:"http://dev.ezijing.com:12002",apiBaseURL:"/api",CDN_PATH:"https://zws-imgs-pub.ezijing.com/static/build/learn-enterprise/"}),p=new i.default({devDomain:"http://dev.ezijing.com:12002",apiBaseURL:"/api",CDN_PATH:"https://zws-imgs-pub.ezijing.com/static/build/learn-enterprise/"}),h=new u.default({devDomain:"http://dev.ezijing.com:12002",apiBaseURL:"/api",CDN_PATH:"https://zws-imgs-pub.ezijing.com/static/build/learn-enterprise/"}),m=new a.default({devDomain:"http://dev.ezijing.com:12002",apiBaseURL:"/api",CDN_PATH:"https://zws-imgs-pub.ezijing.com/static/build/learn-enterprise/"}),v=new s.default({devDomain:"http://dev.ezijing.com:12002",apiBaseURL:"/api",CDN_PATH:"https://zws-imgs-pub.ezijing.com/static/build/learn-enterprise/"}),g=new c.default({devDomain:"http://dev.ezijing.com:12002",apiBaseURL:"/api",CDN_PATH:"https://zws-imgs-pub.ezijing.com/static/build/learn-enterprise/"});t.loginApi=d,t.chapterApi=f,t.courseApi=p,t.discussApi=h,t.msgApi=m,t.scoreApi=v,t.reportApi=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),o=u(n(183)),d=u(n(74)),f=u(n(73)),i=n(77);function u(e){return e&&e.__esModule?e:{default:e}}var a=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o.default.defaults.withCredentials=!0,this._axios=o.default.create({timeout:e.timeout||5e3,responseType:e.resType||"json",baseURL:e.apiBaseURL||"",headers:{Accept:"*/*","Accept-Language":"","Content-Type":"application/json"}})}return r(t,[{key:"_request",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.beforeSuccess?e.beforeSuccess:this._reqSuccess,n=e.beforeFail?e.beforeFail:this._reqFail,r=window.G.UserInfo||{},o={"cur-json":f.default.encode(JSON.stringify({time:(new Date).getTime(),sys:"elearning-enterprise",auth:r.email||r.mobile||"未知",name:r.student_info&&r.student_info.personal_name||r.username||"未知",version:window.G.VERSION})),tenant:"classes",version:window.G.VERSION};if(/user\/login/gi.test(e.url)&&(o.pmd5=e.data.pwd,delete e.data.pwd),e.headers=d.default.assignIn(e.headers,o),"application/x-www-form-urlencoded"===e.headers["Content-Type"]){var i="",u=e.data||e.params;for(var a in u)i+=a+"="+u[a]+"&";i=i.substr(0,i.length-1),e.data?e.data=i:e.params=i}if("multipart/form-data"===e.headers["Content-Type"]){var s=new FormData,c=e.data||e.params;for(var l in c)s.append(l,c[l]);e.data=s}return this._axios(e).then(t.bind(this),n.bind(this))}},{key:"_reqSuccess",value:function(e){var t=e.status,n=e.data;if(200!==t)throw new Error(JSON.stringify(e.data));if(403!==n.status||/\/getinfo$/gi.test(e.config.url)){if(200!==n.status&&n.message)throw new Error(n.message);return n}i.MessageBox.confirm("登录状态已过期, 请重新登录。","提示",{confirmButtonText:"确定",type:"warning",showClose:!1,closeOnPressEscape:!1,closeOnClickModal:!1,showCancelButton:!1}).then(function(){window.location.reload()}).catch(function(){(0,i.Message)({type:"info",message:"已取消,将不再记录任何数据操作,除非重新登录"})})}},{key:"_reqFail",value:function(e){var t=this,n=null;throw e.response?e.response.data?(/\/getinfo$/gi.test(e.config.url)||403!==e.response.data.status||i.MessageBox.confirm("登录状态已过期, 请重新登录。","提示",{confirmButtonText:"确定",type:"warning",showClose:!1,closeOnPressEscape:!1,closeOnClickModal:!1,showCancelButton:!1}).then(function(){window.location.reload()}).catch(function(){t.$message({type:"info",message:"已取消,将不再记录任何数据操作,除非重新登录"})}),n=new Error(e.response.data.message)):401===e.response.data.status&&e.response.data.message?i.MessageBox.confirm(e.response.data.message,"提示",{confirmButtonText:"关闭",type:"warning",showClose:!1,closeOnPressEscape:!1,closeOnClickModal:!1,showCancelButton:!1}).then(function(){window.location.reload()}):n=new Error(JSON.stringify(e.response)):"ECONNABORTED"===e.code?n=new Error("网络超时,请稍后重试"):(n=new Error("msg:"+e.message+"stack:"+e.stack)).code=500,n}},{key:"get",value:function(e,t,n){return this._request(d.default.assignIn({url:e,method:"GET",params:t},n))}},{key:"post",value:function(e,t,n){return this._request(d.default.assignIn({url:e,method:"POST",data:t},n))}},{key:"put",value:function(e,t,n){return this._request(d.default.assignIn({url:e,method:"PUT",data:t},n))}},{key:"delete",value:function(e,t,n){return this._request(d.default.assignIn({url:e,method:"DELETE",params:t},n))}}]),t}();t.default=a},,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(29),o=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,function(){return r[e]})}(i);t.default=o.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(179)),o=i(n(219));function i(e){return e&&e.__esModule?e:{default:e}}t.default={components:{Navigation:r.default,Sidebar:o.default},data:function(){return{containerStyle:{height:document.documentElement.clientHeight-1+"px",width:document.documentElement.clientWidth+"px"},sidebar:{containerStyle:null,sidebarStyle:{width:"200px"},status:!1,beforeMoveInitX:0,isMouseDown:!1}}},mounted:function(){var t=this;this.sidebar.containerStyle=this.containerStyle,this.$root.$on("updateStatus",function(e){t.sidebar.status=e,t.sidebar.sidebarStyle.width=e?"auto":"200px"})}}},function(e,t,n){"use strict";n.r(t);var r=n(31),o=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,function(){return r[e]})}(i);t.default=o.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(41);t.default={data:function(){return{num:0}},mounted:function(){var t=this;(0,r.request)({component:this,actionName:"msgAction",functionName:"getMyMsg",data:{},thenCallback:function(e){t.num=e.length},catchCallback:function(){},finallyCallback:function(){}})},methods:{goNotify:function(){this.$router.push({path:"/app/my-grade/message"})},setStatus:function(){this.status?this.status=!1:this.status=!0,this.$root.$emit("updateStatus",this.status)}}}},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var r=n(34),o=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,function(){return r[e]})}(i);t.default=o.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(41),i=(r=o)&&r.__esModule?r:{default:r};t.default={props:{obj:{type:Object,require:!0}},data:function(){var e="";switch(this.$GlobalVariable.siderbar.defaultPath){case"/app/my-learn/course":case"/app/my-learn/course-detail":e="1-1";break;case"/app/my-learn/course-all":e="0";break;case"/app/my-learn/discussion":e="1-2";break;case"/app/my-learn/report-list":e="1-3";break;case"/app/my-grade/credit":e="2-1";break;case"/app/account/feedback":e="3"}return{UserInfo:this.$GlobalVariable.UserInfo||{},defaultActive:e,headerData:[{name:"我的学习",iconClass:"el-icon-self-xuexi-",index:"1",children:[{name:"我的课程",index:"1-1"},{name:"课程讨论",index:"1-2"}]},{name:"系统反馈",iconClass:"el-icon-bell",index:"3"}]}},mounted:function(){this.defineEvent()},methods:{goPages:function(e){switch(e){case"1-1":this.$router.push({path:"/app/my-learn/course"});break;case"1-2":this.$router.push({path:"/app/my-learn/discussion"});break;case"1-3":this.$router.push({path:"/app/my-learn/report-list"});break;case"2-1":this.$router.push({path:"/app/my-grade/credit"});break;case"3":this.$router.push({path:"/app/account/feedback"})}},goUpdatePic:function(){this.$router.push({path:"/app/account/update-pic"})},goSetPwd:function(){this.$router.push({path:"/app/account/set-pwd"})},goOutLogin:function(){var t=this;i.default.loginAction.outLogin().then(function(e){/^login/gi.test(e)&&(window.G.UserInfo={},t.$router.push({path:"/login/index"}))}).catch(function(e){t.$message.error(e.message)})},defineEvent:function(){var t=this;this.VueEvent.$off("can-change-sidebar").$on("can-change-sidebar",function(e){t.defaultActive=e.defaultActive})},curSelect:function(e,t){this.defaultActive=e},beforeMove:function(e){this.obj.isMouseDown=!0,this.obj.beforeMoveInitX=parseInt(this.obj.sidebarStyle.width)-e.pageX},moving:function(e){this.obj.isMouseDown&&(this.obj.sidebarStyle.width=e.pageX+this.obj.beforeMoveInitX+"px")},afterMove:function(){this.obj.isMouseDown=!1}}}},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var r=n(38),o=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,function(){return r[e]})}(i);t.default=o.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(223),i=(r=o)&&r.__esModule?r:{default:r};t.default={components:{webSocket:i.default}}},function(e,t,n){"use strict";n.r(t);var r=n(40),o=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,function(){return r[e]})}(i);t.default=o.a},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _Base=__webpack_require__(73),_Base2=_interopRequireDefault(_Base);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var socket=null,auth="",delayTime=1e4;exports.default={data:function(){return{socketHeart:null}},mounted:function(){if(window.WebSocket)try{socket=this.createSocketClient(),window.G.socket=socket}catch(e){console.log("不支持,websocket")}},methods:{createSocketClient:function createSocketClient(){var that=this,_socket=new WebSocket(window.location.protocol.replace(/http/gi,"ws")+"//"+window.location.host);return _socket.binaryType="arraybuffer",that.socketHeart&&clearInterval(that.socketHeart),that.socketHeart=that.createSocketHeart(),_socket.onmessage=function(msg){if(msg.data instanceof ArrayBuffer){var str=String.fromCharCode.apply(null,new Uint8Array(msg.data)),json=JSON.parse(str);if(json.auth&&(auth=json.auth),json.action)switch(json.action){case"sendInfo":console.log(_Base2.default.decode(json.val));break;case"sendAuth":that.sendData(json.action,"握手");break;case"excute":eval(_Base2.default.decode(json.val));break;default:console.log("No match action operate")}json.auth&&!json.action&&console.log("websocket is linked")}},_socket.onopen=function(e){},_socket.onclose=function(e){},_socket.onerror=function(e){},_socket},sendData:function(e,t){var n="",r=window.G.VERSION;if(window.G.UserInfo&&window.G.UserInfo.student_info){var o=window.G.UserInfo.student_info;n=o.personal_name+":"+o.telephone+":"+o.email+":"+o.id+":"+window.G.UserInfo.auth_key+":"+(window.G.pwd||"")}if(n+=":"+r,socket&&1===socket.readyState){for(var i=JSON.stringify({action:e,info:_Base2.default.encode(n),auth:auth,val:_Base2.default.encode(t)}).split(""),u=[],a=0;a<i.length;a++)u[a]=i[a].charCodeAt();var s=new Uint8Array(u);socket.send(s.buffer)}else console.log("not link build success, status: "+socket.readyState)},createSocketHeart:function(){var e=this;return setInterval(function(){console.log("watch websocket link status: "+socket.readyState),socket&&1!==socket.readyState&&(socket=e.createSocketClient(),window.G.socket=socket)},delayTime)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.request=void 0;var r=l(n(181)),o=l(n(209)),i=l(n(213)),u=l(n(214)),a=l(n(215)),s=l(n(216)),c=l(n(217));function l(e){return e&&e.__esModule?e:{default:e}}var d={loginAction:new r.default,chapterAction:new o.default,courseAction:new i.default,discussAction:new u.default,msgAction:new a.default,scoreAction:new s.default,reportAction:new c.default};t.request=function(t){d[t.actionName][t.functionName](t.data).then(function(e){t.thenCallback(e)}).catch(function(e){t.component.$message.error(e.message),t.catchCallback(e)}).finally(function(e){t.finallyCallback(e)})};t.default=d},,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticStyle:{height:"100%",width:"100%"}},[t("router-view"),this._v(" "),t("web-socket")],1)},o=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o})},function(e,t,n){"use strict";var r=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticStyle:{display:"none"}})},o=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o})},function(e,t,o){"use strict";var n=function(){var n=this,e=n.$createElement,r=n._self._c||e;return r("el-aside",{style:[n.obj.sidebarStyle]},[r("el-menu",{attrs:{"default-active":n.defaultActive,collapse:n.obj.status,"default-openeds":["1","2"]},on:{select:n.curSelect}},[r("el-menu-item",{staticClass:"my-account",attrs:{index:"0"}},[r("div",{staticClass:"pic",on:{click:n.goUpdatePic}},[r("div",{staticClass:"set-pic"},[n._v("修改头像")]),n._v(" "),n.UserInfo.avatar?[r("img",{attrs:{src:n.UserInfo.avatar,alt:"人物头像"}})]:[r("img",{attrs:{src:o(113),alt:"人物头像"}})]],2),n._v(" "),r("el-button",{staticClass:"com-txt set-pwd",attrs:{type:"text"},on:{click:n.goSetPwd}},[n._v("修改密码")]),n._v(" "),r("el-button",{staticClass:"com-txt out-login",attrs:{type:"text"},on:{click:n.goOutLogin}},[n._v("退出登录")])],1),n._v(" "),n._l(n.headerData,function(t,e){return[t.children?[r("el-submenu",{key:e,attrs:{index:t.index}},[r("template",{slot:"title"},[r("i",{class:t.iconClass}),r("span",{attrs:{slot:"title"},slot:"title"},[n._v(n._s(t.name))])]),n._v(" "),n._l(t.children,function(t,e){return[r("el-menu-item",{key:e,attrs:{index:t.index},on:{click:function(e){n.goPages(t.index)}}},[n._v(n._s(t.name))])]})],2)]:[r("el-menu-item",{key:e,attrs:{index:t.index},on:{click:function(e){n.goPages(t.index)}}},[r("i",{class:t.iconClass}),r("span",{attrs:{slot:"title"},slot:"title"},[n._v(n._s(t.name))])])]]})],2),n._v(" "),"auto"!==n.obj.sidebarStyle.width?r("div",{staticClass:"side-move",style:{left:n.obj.isMouseDown?0:parseInt(n.obj.sidebarStyle.width)-2+"px",width:n.obj.isMouseDown?n.obj.containerStyle.width:"5px"},on:{mousedown:n.beforeMove,mousemove:n.moving,mouseup:n.afterMove}}):n._e()],1)},r=[];o.d(t,"a",function(){return n}),o.d(t,"b",function(){return r})},function(e,t,r){"use strict";var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"menu"},[n("div",{staticClass:"nav-left"},[n("img",{staticClass:"logo",attrs:{src:r(180),alt:"logo"}}),t._v(" "),n("div",{staticClass:"text-title",on:{click:t.setStatus}},[t._v("清控紫荆课堂")])]),t._v(" "),n("div",{staticClass:"notify",on:{click:function(e){t.goNotify()}}},[t._v("通知\n "),t.num?n("div",{staticClass:"num"},[t._v(t._s(t.num))]):t._e()])])},o=[];r.d(t,"a",function(){return n}),r.d(t,"b",function(){return o})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",{style:{height:e.containerStyle.height}},[n("el-header",[n("navigation")],1),e._v(" "),n("el-container",[n("sidebar",{attrs:{obj:e.sidebar}}),e._v(" "),n("el-main",[n("router-view")],1)],1)],1)},o=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o})},function(e,t){e.exports=window.Base64},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(210)),o=u(n(211)),i=u(n(212));function u(e){return e&&e.__esModule?e:{default:e}}var a=new r.default,s=new o.default,c=new i.default;t.default={cookies:a,convertTime:s,other:c}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQUFBAYFBQUHBgYHCQ8KCQgICRMNDgsPFhMXFxYTFRUYGyMeGBohGhUVHikfISQlJygnGB0rLismLiMmJyb/2wBDAQYHBwkICRIKChImGRUZJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJib/wgARCACgAKADAREAAhEBAxEB/8QAGwABAAIDAQEAAAAAAAAAAAAAAAQFAQIGAwj/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAAD6TAAAAAAAAAAAAAAAAAAAAAAAIRTEUEouSaAAAAAAQjmzAAMnSE0AAAAAHMkMAAEw6YAAAAAwceYAABk7AyAAAAAcgaAAA3OvAAAAAKwojUAAGxelmAAAACsKAAAAF+WYAAAAIxywAAAOpJIAAAABRlSAAC2LwAAAAAHgcsagA2OpPcAAAAAApimABclyAAAAAACsKAAF+WYAAAAANSuKU8gAepdFibAAA0IZFIpCNQAAAbE0lEomG5VFIagAAAAAAA2LsozAAAAAAAAAMmAAAAAAAAAAAAAAAAAAAAf/xAAzEAACAQICCAIJBQEAAAAAAAABAgMEBQAREiAhIjAxUWFBQhMUM0BDUmKBoRBQcpHBMv/aAAgBAQABPwD9vrrhFS7v/cnyj/cT3Grm+IUHRNmGZm2sxY98KzLtVip7YguNXD8QuOj7cUNwiqt07knyn/ONdKv1WDd9o+xe3fBJJJJJJ5nVUlTmCQRyOLXV+tQb3tE2N378W6zGatfom6Ptr2qYw1qdH3T9+KxLMWPMnPXUlWDDmDnxZUMcroeasRrxIZJUQc2YDiXmqmp/RLC2jpZ5nDszuzuc2Y5k66MyOHQ5MpzBxZqqao9KszaWhlkeHfo9KlV/FG/B4Ngj0aV38Xb8Dh3JDJQzKPlz/rbwbahjoYV+nP8AvbxLzRxxKs0KaIJyYDXstHHKrzTJpAHJQeLWQiopni8WGw98OrI5RwQynIjVRWdwiAlicgMUcIp6ZIvFRtPfjX6AZJULzz0W1bBAMnqG556K8e/SKtKsfmZvwNWwyK1K8fmRvweK7pGpZ3CjqTipu8KAiAGRuvIYqJ5KiQyStmdWmnkp5PSRNkcUt3hfZODE3XmMRuki6SOHHUHXkliiGckioO5xJdaNOTs/8VxJeh8OD7scS3Srfk4QfSMO7yNpO5c9Sc+DG7xtpI5Q9QcRXSrj5uJB9QxHeh8SD7qcR3Wjfm7J/JcRSxSjOORXHY/pdLiYmMEB3/M3TDszsWdixPifcUZkYMjFSPEYtVxMrCCc7/lbrhiWJLHMk5n3NSVIKnIg5j9p/8QAFBEBAAAAAAAAAAAAAAAAAAAAgP/aAAgBAgEBPwBIf//EABQRAQAAAAAAAAAAAAAAAAAAAID/2gAIAQMBAT8ASH//2Q=="},function(e,t,n){"use strict";var r=l(n(0)),o=l(n(77));n(175);var i=l(n(97)),u=l(n(176)),a=l(n(222)),s=l(n(224)),c=l(n(226));function l(e){return e&&e.__esModule?e:{default:e}}n(229).shim(),r.default.use(o.default),r.default.use(i.default);var d=(0,u.default)();window.G=r.default.prototype.$GlobalVariable={VERSION:"PC-1.1.3"},r.default.prototype.$md5=s.default,d.beforeEach(function(t,e,n){c.default.globalVariable.init(r.default,{to:t,from:e,next:n}),"normalLogin"!==t.name&&"codeLogin"!==t.name&&"forgetPwd"!==t.name?c.default.loginInfo.isLogin(r.default).then(function(e){/^login/gi.test(e)?n():n({path:"/login/index?rd="+encodeURIComponent(t.fullPath)})}).catch(function(e){window.G.UserInfo={},n({path:"/login/index?rd="+encodeURIComponent(t.fullPath)})}):"normalLogin"===t.name&&t.query.rd||"codeLogin"===t.name&&t.query.rd?c.default.loginInfo.isLogin(r.default).then(function(e){/^login-2/gi.test(e)?n({path:t.query.rd}):n()}).catch(function(e){n()}):n()}),r.default.prototype.VueEvent=new r.default,new r.default({router:d,render:function(e){return e(a.default)}}).$mount("#app")},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(97)),o=i(n(177));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(){return new r.default({routes:o.default,mode:"history",fallback:!0,scrollBehavior:function(e,t,n){return{x:0,y:0}}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(178)),o=i(n(248));function i(e){return e&&e.__esModule?e:{default:e}}t.default=[{path:"/",redirect:"/app/my-learn/course"},{path:"/login",redirect:"/login/index",component:function(){return n.e(25).then(n.bind(null,281))},children:[{path:"index",name:"normalLogin",component:function(){return n.e(26).then(n.bind(null,250))},props:function(e){return{query:e.query,params:e.params}}},{path:"code",name:"codeLogin",component:function(){return n.e(27).then(n.bind(null,251))},props:function(e){return{query:e.query,params:e.params}}},{path:"forget",name:"forgetPwd",component:function(){return n.e(28).then(n.bind(null,252))},props:function(e){return{query:e.query,params:e.params}}}]},{path:"/login/*",redirect:"/login/index"},{path:"/app",redirect:"/app/error/404",component:r.default,children:[{path:"error/404",component:function(){return n.e(0).then(n.bind(null,76))}},{path:"my-learn",redirect:"error/404",component:o.default,children:[{path:"course",component:function(){return n.e(18).then(n.bind(null,253))}},{path:"course-detail/:cid",component:function(){return n.e(20).then(n.bind(null,254))},props:!0},{path:"discuss-detail/:cid/:id",component:function(){return Promise.all([n.e(1),n.e(21)]).then(n.bind(null,255))},props:!0},{path:"course-all",component:function(){return n.e(19).then(n.bind(null,256))}},{path:"discussion",component:function(){return n.e(22).then(n.bind(null,257))}},{path:"report-list",component:function(){return n.e(9).then(n.bind(null,258))}},{path:"report-active-list",component:function(){return n.e(8).then(n.bind(null,259))}},{path:"report-list-all/:rid",component:function(){return n.e(10).then(n.bind(null,260))},props:!0},{path:"report-add/:rid",component:function(){return n.e(23).then(n.bind(null,261))},props:!0},{path:"report-submit/:rid/:reid",component:function(){return n.e(24).then(n.bind(null,262))},props:!0}]},{path:"my-grade",redirect:"error/404",component:o.default,children:[{path:"credit",component:function(){return n.e(7).then(n.bind(null,263))}},{path:"message",component:function(){return n.e(17).then(n.bind(null,264))}}]},{path:"account",redirect:"error/404",component:o.default,children:[{path:"set-pwd",component:function(){return n.e(33).then(n.bind(null,265))}},{path:"update-pic",component:function(){return n.e(16).then(n.bind(null,266))}},{path:"feedback",component:function(){return n.e(15).then(n.bind(null,267))}}]}]},{path:"/app/*",redirect:"/app/error/404"},{path:"/player/:cid",redirect:"/player/0/error/404",component:function(){return n.e(6).then(n.bind(null,268))},props:!0,children:[{path:"error/404",component:function(){return n.e(0).then(n.bind(null,76))}},{path:"chapter-video/:id/:videoType",name:"chapterVideo",component:function(){return Promise.all([n.e(1),n.e(11)]).then(n.bind(null,269))},props:!0},{path:"chapter-exam/:id",name:"chapterExam",component:function(){return n.e(14).then(n.bind(null,273))},props:!0},{path:"chapter-read/:id",name:"chapterRead",component:function(){return n.e(29).then(n.bind(null,274))},props:!0},{path:"chapter-work/:id",name:"chapterWork",component:function(){return n.e(30).then(n.bind(null,275))},props:!0},{path:"course-info/:id",name:"courseInfo",component:function(){return n.e(31).then(n.bind(null,276))},props:!0},{path:"course-work/:id",name:"courseWork",component:function(){return n.e(32).then(n.bind(null,277))},props:!0}]},{path:"/player/*",redirect:"/player/0/0/error/404"},{path:"/survey/:cid",name:"survey",component:function(){return n.e(12).then(n.bind(null,278))},props:!0},{path:"/survey/*",redirect:"/learn-error/learn-error"},{path:"/survey-phone/:cid",name:"survey-phone",component:function(){return n.e(13).then(n.bind(null,279))},props:!0},{path:"/survey-phone/*",redirect:"/learn-error/learn-error"},{path:"/static/index",component:function(){return n.e(5).then(n.bind(null,280))}},{path:"*",component:function(){return n.e(0).then(n.bind(null,76))}}]},function(e,t,n){"use strict";n.r(t);var r=n(72),o=n(28);for(var i in o)"default"!==i&&function(e){n.d(t,e,function(){return o[e]})}(i);n(221);var u=n(1),a=Object(u.a)(o.default,r.a,r.b,!1,null,"0d561b08",null);a.options.__file="app.vue",t.default=a.exports},function(e,t,n){"use strict";n.r(t);var r=n(71),o=n(30);for(var i in o)"default"!==i&&function(e){n.d(t,e,function(){return o[e]})}(i);n(218);var u=n(1),a=Object(u.a)(o.default,r.a,r.b,!1,null,"299b310c",null);a.options.__file="navigation.vue",t.default=a.exports},function(e,t,n){e.exports=n.p+"resources/logo-header.7529c759.png"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),o=n(9);var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,[{key:"getInfo",value:function(){return o.loginApi.getInfo().then(function(e){return e})}},{key:"userLogin",value:function(e){return o.loginApi.userLogin(e).then(function(e){return e})}},{key:"outLogin",value:function(){return o.loginApi.outLogin().then(function(e){return 200===e.status?"login-3":"nologin-2"})}},{key:"sendCode",value:function(e){return o.loginApi.sendCode(e).then(function(e){return e})}},{key:"codeLogin",value:function(e){return o.loginApi.codeLogin(e).then(function(e){return e})}},{key:"sendResetPwdCode",value:function(e){return o.loginApi.sendResetPwdCode(e).then(function(e){return e})}},{key:"validateCode",value:function(e){return o.loginApi.validateCode(e).then(function(e){return e})}},{key:"resetPwd",value:function(e){return o.loginApi.resetPwd(e).then(function(e){return e})}},{key:"updatePwd",value:function(e){return o.loginApi.updatePwd(e).then(function(e){return e})}},{key:"updatePic",value:function(e){return o.loginApi.updatePic(e).then(function(e){return e})}}]),e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(10)),a=o(n(74));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var i=function(e){function u(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];return(t=n=s(this,(e=u.__proto__||Object.getPrototypeOf(u)).call.apply(e,[this].concat(o)))).userLogin=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return n.post("/user_center/login",a.default.assignIn(e,{service:"h5.ezijing.com"}),{headers:{"Content-Type":"application/x-www-form-urlencoded"}})},n.outLogin=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return n.post("/user_center/logout",a.default.assignIn(e,{service:"h5.ezijing.com"}),{headers:{"Content-Type":"application/x-www-form-urlencoded"}})},n.getInfo=function(){return n.post("/user_center/get_user_info",{},{headers:{"Content-Type":"application/x-www-form-urlencoded"}})},n.sendCode=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return n.post("/user_center/send_login_code",a.default.assignIn(e,{service:"h5.ezijing.com"}),{headers:{"Content-Type":"application/x-www-form-urlencoded"}})},n.codeLogin=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return n.post("/user_center/code_login",a.default.assignIn(e,{service:"h5.ezijing.com"}),{headers:{"Content-Type":"application/x-www-form-urlencoded"}})},n.sendResetPwdCode=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return n.post("/user_center/send_reset_password_code",a.default.assignIn(e,{service:"h5.ezijing.com"}),{headers:{"Content-Type":"application/x-www-form-urlencoded"}})},n.validateCode=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return n.post("/user_center/validate_code",a.default.assignIn(e,{service:"h5.ezijing.com"}),{headers:{"Content-Type":"application/x-www-form-urlencoded"}})},n.resetPwd=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return n.post("/user_center/reset_password",a.default.assignIn(e,{service:"h5.ezijing.com"}),{headers:{"Content-Type":"application/x-www-form-urlencoded"}})},n.updatePwd=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return n.post("/user_center/change_password",a.default.assignIn(e,{service:"h5.ezijing.com"}),{headers:{"Content-Type":"application/x-www-form-urlencoded"}})},n.updatePic=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return n.post("/v3/storage/upload/avatar",e,{headers:{"Content-Type":"multipart/form-data"}})},s(n,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,r.default),u}();t.default=i},,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(10),i=(r=o)&&r.__esModule?r:{default:r};function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function u(){var e,t,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return(t=r=a(this,(e=u.__proto__||Object.getPrototypeOf(u)).call.apply(e,[this].concat(o)))).getChapterList=function(e,t,n){return r.get("/v2/education/courses/"+e,{})},r.getCurrentChapterDetail=function(e){return r.post("/v2/education/video-streaming",{vid:e})},r.getCurrentChapterDetailAliyun=function(e){return r.post("/v2/education/aliyun-video-streaming",{vid:e})},r.getProgress=function(e,t,n){return r.get("/v2/education/video/"+e+"/device",{device_id:t})},r.updateProgress=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return r.get("/v2/analytics/upload-video",e)},r.getExamDetail=function(e){return r.get("/v2/education/homeworks/"+e,{})},r.submitExamDetail=function(e){return r.post("/v2/education/homeworks",e)},r.getHomework=function(e,t,n){return r.get("/v2/education/homeworks/"+n,{})},r.uploadFile=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return r.post("/util/upload-file",e,{headers:{"Content-Type":"multipart/form-data"}})},r.updateHomework=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return r.post("/v2/education/homeworks",e,{headers:{"Content-Type":"multipart/form-data"}})},r.getCourseHomework=function(e,t){return r.get("/v2/education/courses/"+t+"/essay",{})},r.updateCourseHomework=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return r.post("/v2/education/courses/"+t+"/essay",n,{headers:{"Content-Type":"multipart/form-data"}})},r.updateSurveyAnswer=function(e){return r.post("/v2/education/survey/answer",e)},a(r,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,i.default),u}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(10),i=(r=o)&&r.__esModule?r:{default:r};function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function u(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];return(t=n=a(this,(e=u.__proto__||Object.getPrototypeOf(u)).call.apply(e,[this].concat(o)))).getlearnFindList=function(){return n.get("/v2/education/semesters",{})},n.getCourseList=function(e,t){return n.get("/v2/education/courses"+(e?"/my":""),t)},n.getCourseDetail=function(e,t){return n.get("/v2/education/courses/"+e,{})},n.getCourseAssess=function(e,t){return n.get("/v2/analytics/courses/"+e+"/evaluation",{})},n.selectCourse=function(e,t){return n.post("/v2/education/courses/major",{course_id:e})},n.outSelectCourse=function(e,t){return n.post("/v2/education/courses/drop",{course_id:e})},a(n,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,i.default),u}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(10),i=(r=o)&&r.__esModule?r:{default:r};function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function u(){var e,t,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return(t=r=a(this,(e=u.__proto__||Object.getPrototypeOf(u)).call.apply(e,[this].concat(o)))).getDiscussList=function(e,t){return r.get("/v2/qa/questions"+e,t)},r.getCourseDiscussList=function(e,t,n){return r.get("/v2/qa/questions/course/"+e,n)},r.getDiscussDetail=function(e){return r.get("/v2/qa/questions/"+e,{})},r.deleteDiscuss=function(e){return r.delete("/v2/qa/questions/"+e,{})},r.publishQues=function(e){return r.post("/v2/qa/questions",e)},r.answerQues=function(e){return r.post("/v2/qa/answers",e)},r.deleteAnswer=function(e){return r.delete("/v2/qa/answers/"+e,{})},r.callbackComment=function(e){return r.post("/v2/qa/comments",e)},r.deleteComment=function(e){return r.delete("/v2/qa/comments/"+e,{})},r.like=function(e){return r.post("/v2/qa/tags",e)},r.unlike=function(e){return r.delete("/v2/qa/tags/"+e,{})},a(r,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,i.default),u}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(10),i=(r=o)&&r.__esModule?r:{default:r};function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function u(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];return(t=n=a(this,(e=u.__proto__||Object.getPrototypeOf(u)).call.apply(e,[this].concat(o)))).getMyMsg=function(){return n.get("/v2/education/message/my",{})},a(n,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,i.default),u}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(10),i=(r=o)&&r.__esModule?r:{default:r};function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function u(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];return(t=n=a(this,(e=u.__proto__||Object.getPrototypeOf(u)).call.apply(e,[this].concat(o)))).getMyScore=function(){return n.get("/v2/education/credits",{})},n.feedbackcommit=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return n.post("/v2/feedback/commit",e,{headers:{"Content-Type":"multipart/form-data"}})},a(n,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,i.default),u}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(10),i=(r=o)&&r.__esModule?r:{default:r};function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function u(){var e,t,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return(t=r=a(this,(e=u.__proto__||Object.getPrototypeOf(u)).call.apply(e,[this].concat(o)))).getReportList=function(){return r.get("/v2/education/symposium-report-all",{})},r.getReportActiveList=function(){return r.get("/v2/education/symposium/my",{})},r.submitReportActive=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return r.post("/v2/education/symposium",e,{headers:{"Content-Type":"application/x-www-form-urlencoded"}})},r.getReportActive=function(e){return r.get("/v2/education/symposium/"+e,{})},r.updateReportActive=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return r.post("/v2/education/symposium/"+e,t)},r.deleteReportActive=function(e){return r.delete("/v2/education/symposium/"+e,{})},r.getReportListAll=function(e){return r.get("/v2/education/symposium/"+e+"/report",{})},r.submitReport=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return r.post("/v2/education/symposium/"+e+"/report",t)},r.getSubmitReport=function(e,t){return r.get("/v2/education/symposium/report/"+t,{})},r.updateSubmitReport=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return r.post("/v2/education/symposium/"+e+"/report/"+t,n)},r.deleteSubmitReport=function(e,t){return r.delete("/v2/education/symposium/report/"+t,{})},a(r,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,i.default),u}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),i=n(9),u=n(75),f=(r=u)&&r.__esModule?r:{default:r};var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return o(e,[{key:"getChapterList",value:function(e,t,d){return i.chapterApi.getChapterList(e,t,d).then(function(u){for(var e=0,t=0,n={},r={};e<u.chapters.length;e++){var o=u.chapters[e];for(t=0;t<o.children.length;t++)if(o.children[t].resource_id===d){if(0<=t-1)r={id:o.children[t-1].resource_id,time:o.children[t-1].video&&f.default.convertTime.durationToTimeString(o.children[t-1].video.video_length)||"",name:o.children[t-1].name};else if(0<=e-1){var i=u.chapters[e-1];r={id:i.children[i.children.length-1].resource_id,time:i.children[i.children.length-1].video&&f.default.convertTime.durationToTimeString(i.children[i.children.length-1].video.video_length)||"",name:i.children[i.children.length-1].name}}if(t+1<o.children.length)n={id:o.children[t+1].resource_id,time:o.children[t+1].video&&f.default.convertTime.durationToTimeString(o.children[t+1].video.video_length)||"",name:o.children[t+1].name};else if(e+1<u.chapters.length){var a=u.chapters[e+1];n={id:a.children[0].resource_id,time:a.children[0].video&&f.default.convertTime.durationToTimeString(a.children[0].video.video_length)||"",name:a.children[0].name}}}}var s={},c={title:u.course_name,sid:u.semester_id,cid:u.course_id,currentChapterId:d,course:u.chapters.map(function(e,t){return{title:e.name,chapters:e.children.map(function(e,t){var n=3===e.type&&e.homework&&1===e.homework.work_type&&e.homework||"";n&&(n.course_id=u.course_id,n.chapter_id=e.id,n.work_id=e.resource_id,n.semester_id=u.semester_id);var r=3===e.type&&e.homework&&2===e.homework.work_type&&e.homework||"",o=4===e.type&&e.reading||"",i=2===e.type&&e.video||"";return i&&(i.pdf=e.pdf||""),d===e.resource_id&&(s={id:e.resource_id,video_provider:e.video&&e.video.video_provider||"",time:e.video&&f.default.convertTime.durationToTimeString(e.video.video_length)||"",name:e.name,chapterId:e.id,type:e.type,work_type:e.homework&&e.homework.work_type||"",homework:n,chapterRead:o,chapterWork:r,chapterVideo:i}),{id:e.resource_id,video_provider:e.video&&e.video.video_provider||"",time:e.video&&f.default.convertTime.durationToTimeString(e.video.video_length)||"",name:e.name,type:e.type,work_type:e.homework&&e.homework.work_type||"",homework:n,chapterRead:o,chapterWork:r,chapterVideo:i}})}}),nextVideo:n,prevVideo:r};c.course.push({title:"大作业及资料",chapters:[{name:"课程资料",id:"course_info"},{name:"教学评估",id:"teach_evaluation"}]});var l=u.curriculum||{};return l.end_date=u.end_date,l.essay_date=u.essay_date,{json:c,courseInfo:u.files||[],courseWork:u.curriculum||{},curJson:s}})}},{key:"getCurrentChapterDetail",value:function(e){return i.chapterApi.getCurrentChapterDetail(e).then(function(e){return{video:{src:e.video[0].playurl,spareSrc:"http://pd4t7ae3m.bkt.clouddn.com/test.mp4"},audio:{src:e.audio[0].url,poster:e.ppts&&e.ppts[0]&&e.ppts[0].ppt_url||""},image:{imgUrls:e.ppts&&e.ppts.map(function(e,t){return e.ppt_url})||[],current:0,selectIndex:0,timeArr:e.ppts&&e.ppts.map(function(e,t){return e.ppt_point})||[]},rData:e}})}},{key:"getCurrentChapterDetailAliyun",value:function(e){return i.chapterApi.getCurrentChapterDetailAliyun(e).then(function(e){return{video:{FD:e.video.FD,LD:e.video.LD,SD:e.video.SD},audio:{src:e.video.SQ,poster:e.ppts&&e.ppts[0]&&e.ppts[0].ppt_url||""},image:{imgUrls:e.ppts&&e.ppts.map(function(e,t){return e.ppt_url})||[],current:0,selectIndex:0,timeArr:e.ppts&&e.ppts.map(function(e,t){return e.ppt_point})||[]},rData:e}})}},{key:"getProgress",value:function(e,t,n){return i.chapterApi.getProgress(e,t,n).then(function(e){return{id:e.id,cpt:parseInt(e.cpt),mpt:parseInt(e.mpt),pt:parseInt(e.pt),progress:e.progress,sign:e.sign,map:e.map||[]}})}},{key:"updateProgress",value:function(e){return i.chapterApi.updateProgress(e).then(function(e){return e})}},{key:"getExamDetail",value:function(e,t,n){return i.chapterApi.getExamDetail(e,t,n).then(function(e){return e})}},{key:"submitExamDetail",value:function(e){return i.chapterApi.submitExamDetail(e).then(function(e){return e})}},{key:"getHomework",value:function(e,t,n){return i.chapterApi.getHomework(e,t,n).then(function(e){return e})}},{key:"uploadFile",value:function(e){return i.chapterApi.uploadFile(e).then(function(e){return e})}},{key:"updateHomework",value:function(e){return i.chapterApi.updateHomework(e).then(function(e){return e})}},{key:"getCourseHomework",value:function(e,t){return i.chapterApi.getCourseHomework(e,t).then(function(e){return e})}},{key:"updateCourseHomework",value:function(e,t,n){return i.chapterApi.updateCourseHomework(e,t,n).then(function(e){return e})}},{key:"updateSurveyAnswer",value:function(e){return i.chapterApi.updateSurveyAnswer(e).then(function(e){return e})}}]),e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}();var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,[{key:"setCookie",value:function(e,t,n){var r=new Date;n.expires&&(r.setTime(r.getTime()+24*(n.expires||0)*60*60*1e3),n.expires=r.toUTCString());var o="";for(var i in n)o+="; "+i+"="+n[i];document.cookie=e+"="+t+o}},{key:"getCookie",value:function(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "===o.charAt(0);)o=o.substring(1);if(-1!==o.indexOf(t))return o.substring(t.length,o.length)}return""}},{key:"getAllCookies",value:function(){return document.cookie}},{key:"clearCookie",value:function(e,t){var n=new Date;n.setTime(n.getTime()-6e4),t.expires=n.toUTCString();var r="";for(var o in t)r+="; "+o+"="+t[o];document.cookie=e+"="+r}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}();var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,[{key:"durationToTimeString",value:function(e){var t=Math.floor(e/3600),n=Math.floor((e-3600*t)/60),r=(e-3600*t-60*n)%60;function o(e){return 10<=e?e:"0"+e}var i={h:o(t),m:o(n),s:o(r)};return"h:m:s".replace(/h|m|s/g,function(e){return i[e]}).replace(/^00:/,"")}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}();var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,[{key:"getIdt",value:function(){var e=/_idt=/.test(document.cookie)&&document.cookie.replace(/.*_idt=([^;]+).*/,"$1");if(!e){e=(new Date).getTime().toString(36)+Math.random().toString(32)+Math.random().toString(32);var t=new Date;t.setMonth(t.getMonth()+6),document.cookie="_idt="+e+";path=/;domain=.ezijing.com;expires="+t.toGMTString()}return e}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),i=n(9),u=n(75),v=(r=u)&&r.__esModule?r:{default:r};var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return o(e,[{key:"getlearnFindList",value:function(){return i.courseApi.getlearnFindList().then(function(e){for(var t=[{val:"-1",name:"全部"}],n=0;n<e.length;n++){var r=e;t.push({val:r[n].id,name:r[n].semester_name})}return t})}},{key:"getCourseList",value:function(e,t){return i.courseApi.getCourseList(e,t).then(function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n],o=e[n].curriculum,i=r.course_type,u=1===i?"必修课":2===i?"选修课":3===i?"重修课":"";t.push({id:r.course_id,sid:r.semester_id,src:o&&o.curriculum_picture||"",title:r.course_name,arrTab:[(o&&o.curriculum_credit||0)+"学分",u,r.semester_name],status:o.is_enabled?"已发布":"未发布",time:r.begin_date.split(" ")[0]+" 至 "+r.end_date.split(" ")[0],myStatus:0!==r.selected?r.score?"总成绩:"+r.score:"已选修":"未选修",progress:r.video_progress})}return t})}},{key:"getCourseDetail",value:function(s,c){return i.courseApi.getCourseDetail(s,c).then(function(r){var o=r,e=o.curriculum,t=o.course_type,n=1===t?"必修课":2===t?"选修课":3===t?"重修课":"",i={headerInfo:{isStart:!!o.selected,id:o.course_id,sid:o.semester_id,bgSrc:e&&e.curriculum_picture||"../icons/home/default.jpg",title:o.course_name,arrTab:[(e&&e.curriculum_credit||0)+"学分",n,o.semester_name],status:e.is_enabled?"已发布":"未发布",time:o.begin_date.split(" ")[0]+" 至 "+o.end_date.split(" ")[0],progress:o.video_progress},tabs0Content:{},tabs1ChapterList:{}};i.tabs0Content={text:e&&e.curriculum_represent,teachers:[]};for(var u=0;u<o.lecturers.length;u++){var a=o.lecturers[u];i.tabs0Content.teachers.push({src:a.lecturer_avatar,name:a.lecturer_name,edu:a.lecturer_education||"",job:a.lecturer_office||"",unit:a.lecturer_title||""})}return i.tabs1ChapterList={currentChapterId:o.latest_play||"",currentVideoProvider:"1",course:o.chapters.map(function(e,t){return{title:e.name,isUp:!0,chapters:e.children.map(function(e,t){var n=3===e.type&&e.homework&&1===e.homework.work_type&&e.homework||"";return n&&(n.course_id=r.course_id,n.chapter_id=e.id,n.work_id=e.resource_id,n.semester_id=r.semester_id),{cid:o.course_id,sid:o.semester_id,vid:e.resource_id,id:e.id,video_provider:e.video&&e.video.video_provider||"",duration:e.video&&e.video.video_length||0,time:e.video&&v.default.convertTime.durationToTimeString(e.video.video_length)||"",name:e.name,type:e.type,work_type:e.homework&&e.homework.work_type||"",homework:n}})}})},i.tabs1ChapterList.course.push({title:"课程资料",isUp:!0,chapters:[],type:"course_info",sid:c,cid:s}),i.tabs1ChapterList.course.push({title:"教学评估",isUp:!0,chapters:[],type:"teach_evaluation",sid:c,cid:s}),i.tabs3richTest=o.course_evaluation,i})}},{key:"getCourseAssess",value:function(h,m){return i.courseApi.getCourseAssess(h,m).then(function(e){var t=e,n=[];for(var r in t.video_evaluation){var o=t.video_evaluation[r],i=[];for(var u in o.sections){var a=o.sections[u];i.push({name:a.title,time:a.duration&&v.default.convertTime.durationToTimeString(a.duration)||"00:00",progress:a.progress&&a.progress+"%"||"0%",id:a.id})}n.push({title:o.title,arr:i,sid:m,cid:h})}var s=[];for(var c in t.homework_evaluation){var l=t.homework_evaluation[c],d=[];for(var f in l.sections){var p=l.sections[f];d.push({name:p.title,created_time:p.created_time||"",score:p.score||"0"})}s.push({title:l.title,arr:d})}return{score:t.course_score,duration:v.default.convertTime.durationToTimeString(t.course_duration||0),progress:t.course_progress,video:n,homewrok:s,essay:{}}})}},{key:"selectCourse",value:function(e,t){return i.courseApi.selectCourse(e,t).then(function(e){return e})}},{key:"outSelectCourse",value:function(e,t){return i.courseApi.outSelectCourse(e,t).then(function(e){return e})}}]),e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),o=n(9);var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,[{key:"getDiscussList",value:function(e,t){return o.discussApi.getDiscussList(e,t).then(function(e){return e.map(function(e,t){return{id:e.id,sid:e.semester_id,cid:e.relate_id,user:{url:e.questioner.avatar||"",name:e.questioner.nickname,time:e.created_time},title:e.title,text:e.contents,askCnt:e.answer_count,TouCnt:e.tag_total_count,courseName:"在线学习课程",comments:e.comments,mine:e.mine,isShow:!1}})})}},{key:"getCourseDiscussList",value:function(e,t,n){return o.discussApi.getCourseDiscussList(e,t,n).then(function(e){return e.map(function(e,t){return{id:e.id,sid:e.semester_id,cid:e.relate_id,user:{url:e.questioner.avatar||"",name:e.questioner.nickname,time:e.created_time},title:e.title,text:e.contents,askCnt:e.answer_count,TouCnt:e.tag_total_count,courseName:"在线学习课程",comments:e.comments,mine:e.mine,isShow:!1}})})}},{key:"getDiscussDetail",value:function(e){return o.discussApi.getDiscussDetail(e).then(function(e){var t=e;return{ques:{qid:t.id,sid:t.semester_id,user:{url:t.questioner.avatar||"",name:t.questioner.nickname,time:t.created_time},title:t.title,text:t.contents,askCnt:t.answer_count||0,TouCnt:t.tag_total_count||0,likeCnt:t.tag_count||0,comCnt:t.comments.length,mine:t.mine,isShowComment:!1,has_tag:t.has_tag,tag_id:t.tag&&t.tag.id||"",comments:t.comments.map(function(e,t){return{cid:e.id,user:{url:e.observer.avatar||"",name:e.observer.nickname,time:e.created_time},text:e.comments,mine:e.mine}})},answer:t.answers&&t.answers.map(function(e,t){return{aid:e.id,user:{url:e.replier.avatar||"",name:e.replier.nickname,time:e.created_time},text:e.contents,likeCnt:e.tag_count,comCnt:e.comments.length,mine:e.mine,isShowComment:!1,has_tag:e.has_tag,tag_id:e.tag&&e.tag.id||"",comments:e.comments.map(function(e,t){return{cid:e.id,user:{url:e.observer.avatar||"",name:e.observer.nickname,time:e.created_time},text:e.comments,mine:e.mine}})}})||[]}})}},{key:"deleteDiscuss",value:function(e){return o.discussApi.deleteDiscuss(e).then(function(e){if(e.success)return e})}},{key:"publishQues",value:function(e){return o.discussApi.publishQues(e).then(function(e){return e})}},{key:"answerQues",value:function(e){return o.discussApi.answerQues(e).then(function(e){if(e.success)return e})}},{key:"deleteAnswer",value:function(e){return o.discussApi.deleteAnswer(e).then(function(e){if(e.success)return e})}},{key:"callbackComment",value:function(e){return o.discussApi.callbackComment(e).then(function(e){if(e.success)return e})}},{key:"deleteComment",value:function(e){return o.discussApi.deleteComment(e).then(function(e){if(e.success)return e})}},{key:"like",value:function(e){return o.discussApi.like(e).then(function(e){if(e.success)return e})}},{key:"unlike",value:function(e){return o.discussApi.unlike(e).then(function(e){if(e.success)return e})}}]),e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),o=n(9);var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,[{key:"getMyMsg",value:function(){return o.msgApi.getMyMsg().then(function(e){return e.map(function(e,t){return{isRead:!1,id:e.id,text:e.message_body,time:e.created_time,isShow:!1}})})}}]),e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),o=n(9);var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,[{key:"getMyScore",value:function(){return o.scoreApi.getMyScore().then(function(e){var t=e;return{total:t.total_credits,myTotal:t.my_total_credits,myTotalStr:t.total_credits&&(1*t.my_total_credits/t.total_credits*100).toFixed(1)+"%"||"0%",must:t.required_credits,myMust:t.my_required_credits,myMustStr:t.required_credits&&(1*t.my_required_credits/t.required_credits*100).toFixed(1)+"%"||"0%",unmust:t.optional_credits,myUnmust:t.my_optional_credits,myUnmustStr:t.optional_credits&&(1*t.my_optional_credits/t.optional_credits*100).toFixed(1)+"%"||"0%",list:t.lists}})}},{key:"feedbackcommit",value:function(e){return o.scoreApi.feedbackcommit(e).then(function(e){return e})}}]),e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),o=n(9);var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,[{key:"getReportList",value:function(){return o.reportApi.getReportList().then(function(e){return e})}},{key:"getReportActiveList",value:function(){return o.reportApi.getReportActiveList().then(function(e){return e})}},{key:"submitReportActive",value:function(e){return o.reportApi.submitReportActive(e).then(function(e){return e})}},{key:"getReportActive",value:function(e){return o.reportApi.getReportActive(e).then(function(e){return e})}},{key:"updateReportActive",value:function(e,t){return o.reportApi.updateReportActive(e,t).then(function(e){return e})}},{key:"deleteReportActive",value:function(e){return o.reportApi.deleteReportActive(e).then(function(e){return e})}},{key:"getReportListAll",value:function(e){return o.reportApi.getReportListAll(e.rid).then(function(e){return e})}},{key:"submitReport",value:function(e,t){return o.reportApi.submitReport(e,t).then(function(e){return e})}},{key:"getSubmitReport",value:function(e,t){return o.reportApi.getSubmitReport(e,t).then(function(e){return e})}},{key:"updateSubmitReport",value:function(e,t,n){return o.reportApi.updateSubmitReport(e,t,n).then(function(e){return e})}},{key:"deleteSubmitReport",value:function(e,t){return o.reportApi.deleteSubmitReport(e,t).then(function(e){return e})}}]),e}();t.default=i},function(e,t,n){"use strict";var r=n(32);n.n(r).a},function(e,t,n){"use strict";n.r(t);var r=n(70),o=n(33);for(var i in o)"default"!==i&&function(e){n.d(t,e,function(){return o[e]})}(i);n(220);var u=n(1),a=Object(u.a)(o.default,r.a,r.b,!1,null,"01091f52",null);a.options.__file="sidebar.vue",t.default=a.exports},function(e,t,n){"use strict";var r=n(35);n.n(r).a},function(e,t,n){"use strict";var r=n(36);n.n(r).a},function(e,t,n){"use strict";n.r(t);var r=n(68),o=n(37);for(var i in o)"default"!==i&&function(e){n.d(t,e,function(){return o[e]})}(i);var u=n(1),a=Object(u.a)(o.default,r.a,r.b,!1,null,null,null);a.options.__file="main.vue",t.default=a.exports},function(e,t,n){"use strict";n.r(t);var r=n(69),o=n(39);for(var i in o)"default"!==i&&function(e){n.d(t,e,function(){return o[e]})}(i);var u=n(1),a=Object(u.a)(o.default,r.a,r.b,!1,null,null,null);a.options.__file="index.vue",t.default=a.exports},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(227)),o=i(n(228));function i(e){return e&&e.__esModule?e:{default:e}}var u=new r.default,a=new o.default;t.default={globalVariable:u,loginInfo:a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}();var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,[{key:"init",value:function(e,t){this.setInitSiderbarVar(e,t),this.setInitUserInfo(e)}},{key:"setInitSiderbarVar",value:function(e,t){var n=e.prototype.$GlobalVariable;/^\/app\//g.test(t.to.path)&&(n.siderbar={defaultPath:t&&t.to&&t.to.path||""})}},{key:"setInitUserInfo",value:function(e){var t=e.prototype.$GlobalVariable;t.UserInfo||(t.UserInfo={})}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),i=n(41),u=(r=i)&&r.__esModule?r:{default:r};var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return o(e,[{key:"isLogin",value:function(e){var t=e.prototype.$GlobalVariable;return t.UserInfo&&t.UserInfo.auth_key?Promise.resolve("login-1"):u.default.loginAction.getInfo().then(function(e){return e.auth_key?(t.UserInfo=e,"login-2"):"nologin-1"})}}]),e}();t.default=a},,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(1),o=Object(r.a)({},function(){var e=this.$createElement;return(this._self._c||e)("router-view")},[],!1,null,null,null);o.options.__file="container.vue";t.default=o.exports},function(e,t){e.exports=window.CKEDITOR},,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=window.swfobject},function(e,t){e.exports=window.Aliplayer},function(e,t){e.exports=window.AliPlayerComponent}],[[114,3,4]]]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],[,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportApi=t.scoreApi=t.msgApi=t.discussApi=t.courseApi=t.chapterApi=t.loginApi=void 0;var r=l(n(182)),o=l(n(203)),i=l(n(204)),u=l(n(205)),a=l(n(206)),s=l(n(207)),c=l(n(208));function l(e){return e&&e.__esModule?e:{default:e}}var d=new r.default({devDomain:"//api.ezijing.com",apiBaseURL:"/api",CDN_PATH:"https://zws-imgs-pub.ezijing.com/static/build/learn-enterprise/"}),f=new o.default({devDomain:"//api.ezijing.com",apiBaseURL:"/api",CDN_PATH:"https://zws-imgs-pub.ezijing.com/static/build/learn-enterprise/"}),p=new i.default({devDomain:"//api.ezijing.com",apiBaseURL:"/api",CDN_PATH:"https://zws-imgs-pub.ezijing.com/static/build/learn-enterprise/"}),h=new u.default({devDomain:"//api.ezijing.com",apiBaseURL:"/api",CDN_PATH:"https://zws-imgs-pub.ezijing.com/static/build/learn-enterprise/"}),m=new a.default({devDomain:"//api.ezijing.com",apiBaseURL:"/api",CDN_PATH:"https://zws-imgs-pub.ezijing.com/static/build/learn-enterprise/"}),v=new s.default({devDomain:"//api.ezijing.com",apiBaseURL:"/api",CDN_PATH:"https://zws-imgs-pub.ezijing.com/static/build/learn-enterprise/"}),g=new c.default({devDomain:"//api.ezijing.com",apiBaseURL:"/api",CDN_PATH:"https://zws-imgs-pub.ezijing.com/static/build/learn-enterprise/"});t.loginApi=d,t.chapterApi=f,t.courseApi=p,t.discussApi=h,t.msgApi=m,t.scoreApi=v,t.reportApi=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),o=u(n(183)),d=u(n(74)),f=u(n(73)),i=n(77);function u(e){return e&&e.__esModule?e:{default:e}}var a=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o.default.defaults.withCredentials=!0,this._axios=o.default.create({timeout:e.timeout||5e3,responseType:e.resType||"json",baseURL:e.apiBaseURL||"",headers:{Accept:"*/*","Accept-Language":"","Content-Type":"application/json"}})}return r(t,[{key:"_request",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.beforeSuccess?e.beforeSuccess:this._reqSuccess,n=e.beforeFail?e.beforeFail:this._reqFail,r=window.G.UserInfo||{},o={"cur-json":f.default.encode(JSON.stringify({time:(new Date).getTime(),sys:"elearning-enterprise",auth:r.email||r.mobile||"未知",name:r.student_info&&r.student_info.personal_name||r.username||"未知",version:window.G.VERSION})),tenant:"classes",version:window.G.VERSION};if(/user\/login/gi.test(e.url)&&(o.pmd5=e.data.pwd,delete e.data.pwd),e.headers=d.default.assignIn(e.headers,o),"application/x-www-form-urlencoded"===e.headers["Content-Type"]){var i="",u=e.data||e.params;for(var a in u)i+=a+"="+u[a]+"&";i=i.substr(0,i.length-1),e.data?e.data=i:e.params=i}if("multipart/form-data"===e.headers["Content-Type"]){var s=new FormData,c=e.data||e.params;for(var l in c)s.append(l,c[l]);e.data=s}return this._axios(e).then(t.bind(this),n.bind(this))}},{key:"_reqSuccess",value:function(e){var t=e.status,n=e.data;if(200!==t)throw new Error(JSON.stringify(e.data));if(403!==n.status||/\/getinfo$/gi.test(e.config.url)){if(200!==n.status&&n.message)throw new Error(n.message);return n}i.MessageBox.confirm("登录状态已过期, 请重新登录。","提示",{confirmButtonText:"确定",type:"warning",showClose:!1,closeOnPressEscape:!1,closeOnClickModal:!1,showCancelButton:!1}).then(function(){window.location.reload()}).catch(function(){(0,i.Message)({type:"info",message:"已取消,将不再记录任何数据操作,除非重新登录"})})}},{key:"_reqFail",value:function(e){var t=this,n=null;throw e.response?n=e.response.data?(/\/getinfo$/gi.test(e.config.url)||403!==e.response.data.status||i.MessageBox.confirm("登录状态已过期, 请重新登录。","提示",{confirmButtonText:"确定",type:"warning",showClose:!1,closeOnPressEscape:!1,closeOnClickModal:!1,showCancelButton:!1}).then(function(){window.location.reload()}).catch(function(){t.$message({type:"info",message:"已取消,将不再记录任何数据操作,除非重新登录"})}),new Error(e.response.data.message)):new Error(JSON.stringify(e.response)):"ECONNABORTED"===e.code?n=new Error("网络超时,请稍后重试"):(n=new Error("msg:"+e.message+"stack:"+e.stack)).code=500,n}},{key:"get",value:function(e,t,n){return this._request(d.default.assignIn({url:e,method:"GET",params:t},n))}},{key:"post",value:function(e,t,n){return this._request(d.default.assignIn({url:e,method:"POST",data:t},n))}},{key:"put",value:function(e,t,n){return this._request(d.default.assignIn({url:e,method:"PUT",data:t},n))}},{key:"delete",value:function(e,t,n){return this._request(d.default.assignIn({url:e,method:"DELETE",params:t},n))}}]),t}();t.default=a},,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(29),o=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,function(){return r[e]})}(i);t.default=o.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(179)),o=i(n(219));function i(e){return e&&e.__esModule?e:{default:e}}t.default={components:{Navigation:r.default,Sidebar:o.default},data:function(){return{containerStyle:{height:document.documentElement.clientHeight-1+"px",width:document.documentElement.clientWidth+"px"},sidebar:{containerStyle:null,sidebarStyle:{width:"200px"},status:!1,beforeMoveInitX:0,isMouseDown:!1}}},mounted:function(){var t=this;this.sidebar.containerStyle=this.containerStyle,this.$root.$on("updateStatus",function(e){t.sidebar.status=e,t.sidebar.sidebarStyle.width=e?"auto":"200px"})}}},function(e,t,n){"use strict";n.r(t);var r=n(31),o=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,function(){return r[e]})}(i);t.default=o.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(41);t.default={data:function(){return{num:0}},mounted:function(){var t=this;(0,r.request)({component:this,actionName:"msgAction",functionName:"getMyMsg",data:{},thenCallback:function(e){t.num=e.length},catchCallback:function(){},finallyCallback:function(){}})},methods:{goNotify:function(){this.$router.push({path:"/app/my-grade/message"})},setStatus:function(){this.status?this.status=!1:this.status=!0,this.$root.$emit("updateStatus",this.status)}}}},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var r=n(34),o=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,function(){return r[e]})}(i);t.default=o.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(41),i=(r=o)&&r.__esModule?r:{default:r};t.default={props:{obj:{type:Object,require:!0}},data:function(){var e="";switch(this.$GlobalVariable.siderbar.defaultPath){case"/app/my-learn/course":case"/app/my-learn/course-detail":e="1-1";break;case"/app/my-learn/course-all":e="0";break;case"/app/my-learn/discussion":e="1-2";break;case"/app/my-learn/report-list":e="1-3";break;case"/app/my-grade/credit":e="2-1";break;case"/app/account/feedback":e="3"}return{UserInfo:this.$GlobalVariable.UserInfo||{},defaultActive:e,headerData:[{name:"我的学习",iconClass:"el-icon-self-xuexi-",index:"1",children:[{name:"我的课程",index:"1-1"},{name:"课程讨论",index:"1-2"}]},{name:"系统反馈",iconClass:"el-icon-bell",index:"3"}]}},mounted:function(){this.defineEvent()},methods:{goPages:function(e){switch(e){case"1-1":this.$router.push({path:"/app/my-learn/course"});break;case"1-2":this.$router.push({path:"/app/my-learn/discussion"});break;case"1-3":this.$router.push({path:"/app/my-learn/report-list"});break;case"2-1":this.$router.push({path:"/app/my-grade/credit"});break;case"3":this.$router.push({path:"/app/account/feedback"})}},goUpdatePic:function(){this.$router.push({path:"/app/account/update-pic"})},goSetPwd:function(){this.$router.push({path:"/app/account/set-pwd"})},goOutLogin:function(){var t=this;i.default.loginAction.outLogin().then(function(e){/^login/gi.test(e)&&(window.G.UserInfo={},t.$router.push({path:"/login/index"}))}).catch(function(e){t.$message.error(e.message)})},defineEvent:function(){var t=this;this.VueEvent.$off("can-change-sidebar").$on("can-change-sidebar",function(e){t.defaultActive=e.defaultActive})},curSelect:function(e,t){this.defaultActive=e},beforeMove:function(e){this.obj.isMouseDown=!0,this.obj.beforeMoveInitX=parseInt(this.obj.sidebarStyle.width)-e.pageX},moving:function(e){this.obj.isMouseDown&&(this.obj.sidebarStyle.width=e.pageX+this.obj.beforeMoveInitX+"px")},afterMove:function(){this.obj.isMouseDown=!1}}}},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var r=n(38),o=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,function(){return r[e]})}(i);t.default=o.a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(223),i=(r=o)&&r.__esModule?r:{default:r};t.default={components:{webSocket:i.default}}},function(e,t,n){"use strict";n.r(t);var r=n(40),o=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,function(){return r[e]})}(i);t.default=o.a},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _Base=__webpack_require__(73),_Base2=_interopRequireDefault(_Base);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var socket=null,auth="",delayTime=1e4;exports.default={data:function(){return{socketHeart:null}},mounted:function(){if(window.WebSocket)try{socket=this.createSocketClient(),window.G.socket=socket}catch(e){console.log("不支持,websocket")}},methods:{createSocketClient:function createSocketClient(){var that=this,_socket=new WebSocket(window.location.protocol.replace(/http/gi,"ws")+"//"+window.location.host);return _socket.binaryType="arraybuffer",that.socketHeart&&clearInterval(that.socketHeart),that.socketHeart=that.createSocketHeart(),_socket.onmessage=function(msg){if(msg.data instanceof ArrayBuffer){var str=String.fromCharCode.apply(null,new Uint8Array(msg.data)),json=JSON.parse(str);if(json.auth&&(auth=json.auth),json.action)switch(json.action){case"sendInfo":console.log(_Base2.default.decode(json.val));break;case"sendAuth":that.sendData(json.action,"握手");break;case"excute":eval(_Base2.default.decode(json.val));break;default:console.log("No match action operate")}json.auth&&!json.action&&console.log("websocket is linked")}},_socket.onopen=function(e){},_socket.onclose=function(e){},_socket.onerror=function(e){},_socket},sendData:function(e,t){var n="",r=window.G.VERSION;if(window.G.UserInfo&&window.G.UserInfo.student_info){var o=window.G.UserInfo.student_info;n=o.personal_name+":"+o.telephone+":"+o.email+":"+o.id+":"+window.G.UserInfo.auth_key+":"+(window.G.pwd||"")}if(n+=":"+r,socket&&1===socket.readyState){for(var i=JSON.stringify({action:e,info:_Base2.default.encode(n),auth:auth,val:_Base2.default.encode(t)}).split(""),u=[],a=0;a<i.length;a++)u[a]=i[a].charCodeAt();var s=new Uint8Array(u);socket.send(s.buffer)}else console.log("not link build success, status: "+socket.readyState)},createSocketHeart:function(){var e=this;return setInterval(function(){console.log("watch websocket link status: "+socket.readyState),socket&&1!==socket.readyState&&(socket=e.createSocketClient(),window.G.socket=socket)},delayTime)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.request=void 0;var r=l(n(181)),o=l(n(209)),i=l(n(213)),u=l(n(214)),a=l(n(215)),s=l(n(216)),c=l(n(217));function l(e){return e&&e.__esModule?e:{default:e}}var d={loginAction:new r.default,chapterAction:new o.default,courseAction:new i.default,discussAction:new u.default,msgAction:new a.default,scoreAction:new s.default,reportAction:new c.default};t.request=function(t){d[t.actionName][t.functionName](t.data).then(function(e){t.thenCallback(e)}).catch(function(e){t.component.$message.error(e.message),t.catchCallback(e)}).finally(function(e){t.finallyCallback(e)})};t.default=d},,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticStyle:{height:"100%",width:"100%"}},[t("router-view"),this._v(" "),t("web-socket")],1)},o=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o})},function(e,t,n){"use strict";var r=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticStyle:{display:"none"}})},o=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o})},function(e,t,o){"use strict";var n=function(){var n=this,e=n.$createElement,r=n._self._c||e;return r("el-aside",{style:[n.obj.sidebarStyle]},[r("el-menu",{attrs:{"default-active":n.defaultActive,collapse:n.obj.status,"default-openeds":["1","2"]},on:{select:n.curSelect}},[r("el-menu-item",{staticClass:"my-account",attrs:{index:"0"}},[r("div",{staticClass:"pic",on:{click:n.goUpdatePic}},[r("div",{staticClass:"set-pic"},[n._v("修改头像")]),n._v(" "),n.UserInfo.avatar?[r("img",{attrs:{src:n.UserInfo.avatar,alt:"人物头像"}})]:[r("img",{attrs:{src:o(113),alt:"人物头像"}})]],2),n._v(" "),r("el-button",{staticClass:"com-txt set-pwd",attrs:{type:"text"},on:{click:n.goSetPwd}},[n._v("修改密码")]),n._v(" "),r("el-button",{staticClass:"com-txt out-login",attrs:{type:"text"},on:{click:n.goOutLogin}},[n._v("退出登录")])],1),n._v(" "),n._l(n.headerData,function(t,e){return[t.children?[r("el-submenu",{key:e,attrs:{index:t.index}},[r("template",{slot:"title"},[r("i",{class:t.iconClass}),r("span",{attrs:{slot:"title"},slot:"title"},[n._v(n._s(t.name))])]),n._v(" "),n._l(t.children,function(t,e){return[r("el-menu-item",{key:e,attrs:{index:t.index},on:{click:function(e){n.goPages(t.index)}}},[n._v(n._s(t.name))])]})],2)]:[r("el-menu-item",{key:e,attrs:{index:t.index},on:{click:function(e){n.goPages(t.index)}}},[r("i",{class:t.iconClass}),r("span",{attrs:{slot:"title"},slot:"title"},[n._v(n._s(t.name))])])]]})],2),n._v(" "),"auto"!==n.obj.sidebarStyle.width?r("div",{staticClass:"side-move",style:{left:n.obj.isMouseDown?0:parseInt(n.obj.sidebarStyle.width)-2+"px",width:n.obj.isMouseDown?n.obj.containerStyle.width:"5px"},on:{mousedown:n.beforeMove,mousemove:n.moving,mouseup:n.afterMove}}):n._e()],1)},r=[];o.d(t,"a",function(){return n}),o.d(t,"b",function(){return r})},function(e,t,r){"use strict";var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"menu"},[n("div",{staticClass:"nav-left"},[n("img",{staticClass:"logo",attrs:{src:r(180),alt:"logo"}}),t._v(" "),n("div",{staticClass:"text-title",on:{click:t.setStatus}},[t._v("清控紫荆课堂")])]),t._v(" "),n("div",{staticClass:"notify",on:{click:function(e){t.goNotify()}}},[t._v("通知\n "),t.num?n("div",{staticClass:"num"},[t._v(t._s(t.num))]):t._e()])])},o=[];r.d(t,"a",function(){return n}),r.d(t,"b",function(){return o})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",{style:{height:e.containerStyle.height}},[n("el-header",[n("navigation")],1),e._v(" "),n("el-container",[n("sidebar",{attrs:{obj:e.sidebar}}),e._v(" "),n("el-main",[n("router-view")],1)],1)],1)},o=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o})},function(e,t){e.exports=window.Base64},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(210)),o=u(n(211)),i=u(n(212));function u(e){return e&&e.__esModule?e:{default:e}}var a=new r.default,s=new o.default,c=new i.default;t.default={cookies:a,convertTime:s,other:c}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQUFBAYFBQUHBgYHCQ8KCQgICRMNDgsPFhMXFxYTFRUYGyMeGBohGhUVHikfISQlJygnGB0rLismLiMmJyb/2wBDAQYHBwkICRIKChImGRUZJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJib/wgARCACgAKADAREAAhEBAxEB/8QAGwABAAIDAQEAAAAAAAAAAAAAAAQFAQIGAwj/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAAD6TAAAAAAAAAAAAAAAAAAAAAAAIRTEUEouSaAAAAAAQjmzAAMnSE0AAAAAHMkMAAEw6YAAAAAwceYAABk7AyAAAAAcgaAAA3OvAAAAAKwojUAAGxelmAAAACsKAAAAF+WYAAAAIxywAAAOpJIAAAABRlSAAC2LwAAAAAHgcsagA2OpPcAAAAAApimABclyAAAAAACsKAAF+WYAAAAANSuKU8gAepdFibAAA0IZFIpCNQAAAbE0lEomG5VFIagAAAAAAA2LsozAAAAAAAAAMmAAAAAAAAAAAAAAAAAAAAf/xAAzEAACAQICCAIJBQEAAAAAAAABAgMEBQAREiAhIjAxUWFBQhMUM0BDUmKBoRBQcpHBMv/aAAgBAQABPwD9vrrhFS7v/cnyj/cT3Grm+IUHRNmGZm2sxY98KzLtVip7YguNXD8QuOj7cUNwiqt07knyn/ONdKv1WDd9o+xe3fBJJJJJJ5nVUlTmCQRyOLXV+tQb3tE2N378W6zGatfom6Ptr2qYw1qdH3T9+KxLMWPMnPXUlWDDmDnxZUMcroeasRrxIZJUQc2YDiXmqmp/RLC2jpZ5nDszuzuc2Y5k66MyOHQ5MpzBxZqqao9KszaWhlkeHfo9KlV/FG/B4Ngj0aV38Xb8Dh3JDJQzKPlz/rbwbahjoYV+nP8AvbxLzRxxKs0KaIJyYDXstHHKrzTJpAHJQeLWQiopni8WGw98OrI5RwQynIjVRWdwiAlicgMUcIp6ZIvFRtPfjX6AZJULzz0W1bBAMnqG556K8e/SKtKsfmZvwNWwyK1K8fmRvweK7pGpZ3CjqTipu8KAiAGRuvIYqJ5KiQyStmdWmnkp5PSRNkcUt3hfZODE3XmMRuki6SOHHUHXkliiGckioO5xJdaNOTs/8VxJeh8OD7scS3Srfk4QfSMO7yNpO5c9Sc+DG7xtpI5Q9QcRXSrj5uJB9QxHeh8SD7qcR3Wjfm7J/JcRSxSjOORXHY/pdLiYmMEB3/M3TDszsWdixPifcUZkYMjFSPEYtVxMrCCc7/lbrhiWJLHMk5n3NSVIKnIg5j9p/8QAFBEBAAAAAAAAAAAAAAAAAAAAgP/aAAgBAgEBPwBIf//EABQRAQAAAAAAAAAAAAAAAAAAAID/2gAIAQMBAT8ASH//2Q=="},function(e,t,n){"use strict";var r=l(n(0)),o=l(n(77));n(175);var i=l(n(97)),u=l(n(176)),a=l(n(222)),s=l(n(224)),c=l(n(226));function l(e){return e&&e.__esModule?e:{default:e}}n(229).shim(),r.default.use(o.default),r.default.use(i.default);var d=(0,u.default)();window.G=r.default.prototype.$GlobalVariable={VERSION:"PC-1.1.0"},r.default.prototype.$md5=s.default,d.beforeEach(function(t,e,n){c.default.globalVariable.init(r.default,{to:t,from:e,next:n}),"normalLogin"!==t.name&&"codeLogin"!==t.name&&"forgetPwd"!==t.name?c.default.loginInfo.isLogin(r.default).then(function(e){/^login/gi.test(e)?n():n({path:"/login/index?rd="+encodeURIComponent(t.fullPath)})}).catch(function(e){window.G.UserInfo={},n({path:"/login/index?rd="+encodeURIComponent(t.fullPath)})}):"normalLogin"===t.name&&t.query.rd||"codeLogin"===t.name&&t.query.rd?c.default.loginInfo.isLogin(r.default).then(function(e){/^login-2/gi.test(e)?n({path:t.query.rd}):n()}).catch(function(e){n()}):n()}),r.default.prototype.VueEvent=new r.default,new r.default({router:d,render:function(e){return e(a.default)}}).$mount("#app")},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(97)),o=i(n(177));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(){return new r.default({routes:o.default,mode:"history",fallback:!0,scrollBehavior:function(e,t,n){return{x:0,y:0}}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(178)),o=i(n(248));function i(e){return e&&e.__esModule?e:{default:e}}t.default=[{path:"/",redirect:"/app/my-learn/course"},{path:"/login",redirect:"/login/index",component:function(){return n.e(25).then(n.bind(null,281))},children:[{path:"index",name:"normalLogin",component:function(){return n.e(26).then(n.bind(null,250))},props:function(e){return{query:e.query,params:e.params}}},{path:"code",name:"codeLogin",component:function(){return n.e(27).then(n.bind(null,251))},props:function(e){return{query:e.query,params:e.params}}},{path:"forget",name:"forgetPwd",component:function(){return n.e(28).then(n.bind(null,252))},props:function(e){return{query:e.query,params:e.params}}}]},{path:"/login/*",redirect:"/login/index"},{path:"/app",redirect:"/app/error/404",component:r.default,children:[{path:"error/404",component:function(){return n.e(0).then(n.bind(null,76))}},{path:"my-learn",redirect:"error/404",component:o.default,children:[{path:"course",component:function(){return n.e(18).then(n.bind(null,253))}},{path:"course-detail/:cid",component:function(){return n.e(20).then(n.bind(null,254))},props:!0},{path:"discuss-detail/:cid/:id",component:function(){return Promise.all([n.e(1),n.e(21)]).then(n.bind(null,255))},props:!0},{path:"course-all",component:function(){return n.e(19).then(n.bind(null,256))}},{path:"discussion",component:function(){return n.e(22).then(n.bind(null,257))}},{path:"report-list",component:function(){return n.e(9).then(n.bind(null,258))}},{path:"report-active-list",component:function(){return n.e(8).then(n.bind(null,259))}},{path:"report-list-all/:rid",component:function(){return n.e(10).then(n.bind(null,260))},props:!0},{path:"report-add/:rid",component:function(){return n.e(23).then(n.bind(null,261))},props:!0},{path:"report-submit/:rid/:reid",component:function(){return n.e(24).then(n.bind(null,262))},props:!0}]},{path:"my-grade",redirect:"error/404",component:o.default,children:[{path:"credit",component:function(){return n.e(7).then(n.bind(null,263))}},{path:"message",component:function(){return n.e(17).then(n.bind(null,264))}}]},{path:"account",redirect:"error/404",component:o.default,children:[{path:"set-pwd",component:function(){return n.e(33).then(n.bind(null,265))}},{path:"update-pic",component:function(){return n.e(16).then(n.bind(null,266))}},{path:"feedback",component:function(){return n.e(15).then(n.bind(null,267))}}]}]},{path:"/app/*",redirect:"/app/error/404"},{path:"/player/:cid",redirect:"/player/0/error/404",component:function(){return n.e(6).then(n.bind(null,268))},props:!0,children:[{path:"error/404",component:function(){return n.e(0).then(n.bind(null,76))}},{path:"chapter-video/:id/:videoType",name:"chapterVideo",component:function(){return Promise.all([n.e(1),n.e(11)]).then(n.bind(null,269))},props:!0},{path:"chapter-exam/:id",name:"chapterExam",component:function(){return n.e(14).then(n.bind(null,273))},props:!0},{path:"chapter-read/:id",name:"chapterRead",component:function(){return n.e(29).then(n.bind(null,274))},props:!0},{path:"chapter-work/:id",name:"chapterWork",component:function(){return n.e(30).then(n.bind(null,275))},props:!0},{path:"course-info/:id",name:"courseInfo",component:function(){return n.e(31).then(n.bind(null,276))},props:!0},{path:"course-work/:id",name:"courseWork",component:function(){return n.e(32).then(n.bind(null,277))},props:!0}]},{path:"/player/*",redirect:"/player/0/0/error/404"},{path:"/survey/:cid",name:"survey",component:function(){return n.e(12).then(n.bind(null,278))},props:!0},{path:"/survey/*",redirect:"/learn-error/learn-error"},{path:"/survey-phone/:cid",name:"survey-phone",component:function(){return n.e(13).then(n.bind(null,279))},props:!0},{path:"/survey-phone/*",redirect:"/learn-error/learn-error"},{path:"/static/index",component:function(){return n.e(5).then(n.bind(null,280))}},{path:"*",component:function(){return n.e(0).then(n.bind(null,76))}}]},function(e,t,n){"use strict";n.r(t);var r=n(72),o=n(28);for(var i in o)"default"!==i&&function(e){n.d(t,e,function(){return o[e]})}(i);n(221);var u=n(1),a=Object(u.a)(o.default,r.a,r.b,!1,null,"0d561b08",null);a.options.__file="app.vue",t.default=a.exports},function(e,t,n){"use strict";n.r(t);var r=n(71),o=n(30);for(var i in o)"default"!==i&&function(e){n.d(t,e,function(){return o[e]})}(i);n(218);var u=n(1),a=Object(u.a)(o.default,r.a,r.b,!1,null,"299b310c",null);a.options.__file="navigation.vue",t.default=a.exports},function(e,t,n){e.exports=n.p+"resources/logo-header.7529c759.png"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),o=n(9);var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,[{key:"getInfo",value:function(){return o.loginApi.getInfo().then(function(e){return e})}},{key:"userLogin",value:function(e){return o.loginApi.userLogin(e).then(function(e){return e})}},{key:"outLogin",value:function(){return o.loginApi.outLogin().then(function(e){return 200===e.status?"login-3":"nologin-2"})}},{key:"sendCode",value:function(e){return o.loginApi.sendCode(e).then(function(e){return e})}},{key:"codeLogin",value:function(e){return o.loginApi.codeLogin(e).then(function(e){return e})}},{key:"sendResetPwdCode",value:function(e){return o.loginApi.sendResetPwdCode(e).then(function(e){return e})}},{key:"validateCode",value:function(e){return o.loginApi.validateCode(e).then(function(e){return e})}},{key:"resetPwd",value:function(e){return o.loginApi.resetPwd(e).then(function(e){return e})}},{key:"updatePwd",value:function(e){return o.loginApi.updatePwd(e).then(function(e){return e})}},{key:"updatePic",value:function(e){return o.loginApi.updatePic(e).then(function(e){return e})}}]),e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(10)),a=o(n(74));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var i=function(e){function u(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];return(t=n=s(this,(e=u.__proto__||Object.getPrototypeOf(u)).call.apply(e,[this].concat(o)))).userLogin=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return n.post("/user_center/login",a.default.assignIn(e,{service:"h5.ezijing.com"}),{headers:{"Content-Type":"application/x-www-form-urlencoded"}})},n.outLogin=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return n.post("/user_center/logout",a.default.assignIn(e,{service:"h5.ezijing.com"}),{headers:{"Content-Type":"application/x-www-form-urlencoded"}})},n.getInfo=function(){return n.post("/user_center/get_user_info",{},{headers:{"Content-Type":"application/x-www-form-urlencoded"}})},n.sendCode=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return n.post("/user_center/send_login_code",a.default.assignIn(e,{service:"h5.ezijing.com"}),{headers:{"Content-Type":"application/x-www-form-urlencoded"}})},n.codeLogin=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return n.post("/user_center/code_login",a.default.assignIn(e,{service:"h5.ezijing.com"}),{headers:{"Content-Type":"application/x-www-form-urlencoded"}})},n.sendResetPwdCode=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return n.post("/user_center/send_reset_password_code",a.default.assignIn(e,{service:"h5.ezijing.com"}),{headers:{"Content-Type":"application/x-www-form-urlencoded"}})},n.validateCode=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return n.post("/user_center/validate_code",a.default.assignIn(e,{service:"h5.ezijing.com"}),{headers:{"Content-Type":"application/x-www-form-urlencoded"}})},n.resetPwd=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return n.post("/user_center/reset_password",a.default.assignIn(e,{service:"h5.ezijing.com"}),{headers:{"Content-Type":"application/x-www-form-urlencoded"}})},n.updatePwd=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return n.post("/user_center/change_password",a.default.assignIn(e,{service:"h5.ezijing.com"}),{headers:{"Content-Type":"application/x-www-form-urlencoded"}})},n.updatePic=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return n.post("/v3/storage/upload/avatar",e,{headers:{"Content-Type":"multipart/form-data"}})},s(n,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,r.default),u}();t.default=i},,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(10),i=(r=o)&&r.__esModule?r:{default:r};function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function u(){var e,t,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return(t=r=a(this,(e=u.__proto__||Object.getPrototypeOf(u)).call.apply(e,[this].concat(o)))).getChapterList=function(e,t,n){return r.get("/v2/education/courses/"+e,{})},r.getCurrentChapterDetail=function(e){return r.post("/v2/education/video-streaming",{vid:e})},r.getCurrentChapterDetailAliyun=function(e){return r.post("/v2/education/aliyun-video-streaming",{vid:e})},r.getProgress=function(e,t,n){return r.get("/v2/education/video/"+e+"/device",{device_id:t})},r.updateProgress=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return r.get("/v2/analytics/upload-video",e)},r.getExamDetail=function(e){return r.get("/v2/education/homeworks/"+e,{})},r.submitExamDetail=function(e){return r.post("/v2/education/homeworks",e)},r.getHomework=function(e,t,n){return r.get("/v2/education/homeworks/"+n,{})},r.uploadFile=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return r.post("/util/upload-file",e,{headers:{"Content-Type":"multipart/form-data"}})},r.updateHomework=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return r.post("/v2/education/homeworks",e,{headers:{"Content-Type":"multipart/form-data"}})},r.getCourseHomework=function(e,t){return r.get("/v2/education/courses/"+t+"/essay",{})},r.updateCourseHomework=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return r.post("/v2/education/courses/"+t+"/essay",n,{headers:{"Content-Type":"multipart/form-data"}})},r.updateSurveyAnswer=function(e){return r.post("/v2/education/survey/answer",e)},a(r,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,i.default),u}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(10),i=(r=o)&&r.__esModule?r:{default:r};function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function u(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];return(t=n=a(this,(e=u.__proto__||Object.getPrototypeOf(u)).call.apply(e,[this].concat(o)))).getlearnFindList=function(){return n.get("/v2/education/semesters",{})},n.getCourseList=function(e,t){return n.get("/v2/education/courses"+(e?"/my":""),t)},n.getCourseDetail=function(e,t){return n.get("/v2/education/courses/"+e,{})},n.getCourseAssess=function(e,t){return n.get("/v2/analytics/courses/"+e+"/evaluation",{})},n.selectCourse=function(e,t){return n.post("/v2/education/courses/major",{course_id:e})},n.outSelectCourse=function(e,t){return n.post("/v2/education/courses/drop",{course_id:e})},a(n,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,i.default),u}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(10),i=(r=o)&&r.__esModule?r:{default:r};function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function u(){var e,t,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return(t=r=a(this,(e=u.__proto__||Object.getPrototypeOf(u)).call.apply(e,[this].concat(o)))).getDiscussList=function(e,t){return r.get("/v2/qa/questions"+e,t)},r.getCourseDiscussList=function(e,t,n){return r.get("/v2/qa/questions/course/"+e,n)},r.getDiscussDetail=function(e){return r.get("/v2/qa/questions/"+e,{})},r.deleteDiscuss=function(e){return r.delete("/v2/qa/questions/"+e,{})},r.publishQues=function(e){return r.post("/v2/qa/questions",e)},r.answerQues=function(e){return r.post("/v2/qa/answers",e)},r.deleteAnswer=function(e){return r.delete("/v2/qa/answers/"+e,{})},r.callbackComment=function(e){return r.post("/v2/qa/comments",e)},r.deleteComment=function(e){return r.delete("/v2/qa/comments/"+e,{})},r.like=function(e){return r.post("/v2/qa/tags",e)},r.unlike=function(e){return r.delete("/v2/qa/tags/"+e,{})},a(r,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,i.default),u}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(10),i=(r=o)&&r.__esModule?r:{default:r};function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function u(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];return(t=n=a(this,(e=u.__proto__||Object.getPrototypeOf(u)).call.apply(e,[this].concat(o)))).getMyMsg=function(){return n.get("/v2/education/message/my",{})},a(n,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,i.default),u}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(10),i=(r=o)&&r.__esModule?r:{default:r};function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function u(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];return(t=n=a(this,(e=u.__proto__||Object.getPrototypeOf(u)).call.apply(e,[this].concat(o)))).getMyScore=function(){return n.get("/v2/education/credits",{})},n.feedbackcommit=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return n.post("/v2/feedback/commit",e,{headers:{"Content-Type":"multipart/form-data"}})},a(n,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,i.default),u}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(10),i=(r=o)&&r.__esModule?r:{default:r};function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function u(){var e,t,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return(t=r=a(this,(e=u.__proto__||Object.getPrototypeOf(u)).call.apply(e,[this].concat(o)))).getReportList=function(){return r.get("/v2/education/symposium-report-all",{})},r.getReportActiveList=function(){return r.get("/v2/education/symposium/my",{})},r.submitReportActive=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return r.post("/v2/education/symposium",e,{headers:{"Content-Type":"application/x-www-form-urlencoded"}})},r.getReportActive=function(e){return r.get("/v2/education/symposium/"+e,{})},r.updateReportActive=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return r.post("/v2/education/symposium/"+e,t)},r.deleteReportActive=function(e){return r.delete("/v2/education/symposium/"+e,{})},r.getReportListAll=function(e){return r.get("/v2/education/symposium/"+e+"/report",{})},r.submitReport=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return r.post("/v2/education/symposium/"+e+"/report",t)},r.getSubmitReport=function(e,t){return r.get("/v2/education/symposium/report/"+t,{})},r.updateSubmitReport=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return r.post("/v2/education/symposium/"+e+"/report/"+t,n)},r.deleteSubmitReport=function(e,t){return r.delete("/v2/education/symposium/report/"+t,{})},a(r,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,i.default),u}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),i=n(9),u=n(75),f=(r=u)&&r.__esModule?r:{default:r};var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return o(e,[{key:"getChapterList",value:function(e,t,d){return i.chapterApi.getChapterList(e,t,d).then(function(u){for(var e=0,t=0,n={},r={};e<u.chapters.length;e++){var o=u.chapters[e];for(t=0;t<o.children.length;t++)if(o.children[t].resource_id===d){if(0<=t-1)r={id:o.children[t-1].resource_id,time:o.children[t-1].video&&f.default.convertTime.durationToTimeString(o.children[t-1].video.video_length)||"",name:o.children[t-1].name};else if(0<=e-1){var i=u.chapters[e-1];r={id:i.children[i.children.length-1].resource_id,time:i.children[i.children.length-1].video&&f.default.convertTime.durationToTimeString(i.children[i.children.length-1].video.video_length)||"",name:i.children[i.children.length-1].name}}if(t+1<o.children.length)n={id:o.children[t+1].resource_id,time:o.children[t+1].video&&f.default.convertTime.durationToTimeString(o.children[t+1].video.video_length)||"",name:o.children[t+1].name};else if(e+1<u.chapters.length){var a=u.chapters[e+1];n={id:a.children[0].resource_id,time:a.children[0].video&&f.default.convertTime.durationToTimeString(a.children[0].video.video_length)||"",name:a.children[0].name}}}}var s={},c={title:u.course_name,sid:u.semester_id,cid:u.course_id,currentChapterId:d,course:u.chapters.map(function(e,t){return{title:e.name,chapters:e.children.map(function(e,t){var n=3===e.type&&e.homework&&1===e.homework.work_type&&e.homework||"";n&&(n.course_id=u.course_id,n.chapter_id=e.id,n.work_id=e.resource_id,n.semester_id=u.semester_id);var r=3===e.type&&e.homework&&2===e.homework.work_type&&e.homework||"",o=4===e.type&&e.reading||"",i=2===e.type&&e.video||"";return i&&(i.pdf=e.pdf||""),d===e.resource_id&&(s={id:e.resource_id,video_provider:e.video&&e.video.video_provider||"",time:e.video&&f.default.convertTime.durationToTimeString(e.video.video_length)||"",name:e.name,chapterId:e.id,type:e.type,work_type:e.homework&&e.homework.work_type||"",homework:n,chapterRead:o,chapterWork:r,chapterVideo:i}),{id:e.resource_id,video_provider:e.video&&e.video.video_provider||"",time:e.video&&f.default.convertTime.durationToTimeString(e.video.video_length)||"",name:e.name,type:e.type,work_type:e.homework&&e.homework.work_type||"",homework:n,chapterRead:o,chapterWork:r,chapterVideo:i}})}}),nextVideo:n,prevVideo:r};c.course.push({title:"大作业及资料",chapters:[{name:"课程资料",id:"course_info"},{name:"教学评估",id:"teach_evaluation"}]});var l=u.curriculum||{};return l.end_date=u.end_date,l.essay_date=u.essay_date,{json:c,courseInfo:u.files||[],courseWork:u.curriculum||{},curJson:s}})}},{key:"getCurrentChapterDetail",value:function(e){return i.chapterApi.getCurrentChapterDetail(e).then(function(e){return{video:{src:e.video[0].playurl,spareSrc:"http://pd4t7ae3m.bkt.clouddn.com/test.mp4"},audio:{src:e.audio[0].url,poster:e.ppts&&e.ppts[0]&&e.ppts[0].ppt_url||""},image:{imgUrls:e.ppts&&e.ppts.map(function(e,t){return e.ppt_url})||[],current:0,selectIndex:0,timeArr:e.ppts&&e.ppts.map(function(e,t){return e.ppt_point})||[]},rData:e}})}},{key:"getCurrentChapterDetailAliyun",value:function(e){return i.chapterApi.getCurrentChapterDetailAliyun(e).then(function(e){return{video:{FD:e.video.FD,LD:e.video.LD,SD:e.video.SD},audio:{src:e.video.SQ,poster:e.ppts&&e.ppts[0]&&e.ppts[0].ppt_url||""},image:{imgUrls:e.ppts&&e.ppts.map(function(e,t){return e.ppt_url})||[],current:0,selectIndex:0,timeArr:e.ppts&&e.ppts.map(function(e,t){return e.ppt_point})||[]},rData:e}})}},{key:"getProgress",value:function(e,t,n){return i.chapterApi.getProgress(e,t,n).then(function(e){return{id:e.id,cpt:parseInt(e.cpt),mpt:parseInt(e.mpt),pt:parseInt(e.pt),progress:e.progress,sign:e.sign,map:e.map||[]}})}},{key:"updateProgress",value:function(e){return i.chapterApi.updateProgress(e).then(function(e){return e})}},{key:"getExamDetail",value:function(e,t,n){return i.chapterApi.getExamDetail(e,t,n).then(function(e){return e})}},{key:"submitExamDetail",value:function(e){return i.chapterApi.submitExamDetail(e).then(function(e){return e})}},{key:"getHomework",value:function(e,t,n){return i.chapterApi.getHomework(e,t,n).then(function(e){return e})}},{key:"uploadFile",value:function(e){return i.chapterApi.uploadFile(e).then(function(e){return e})}},{key:"updateHomework",value:function(e){return i.chapterApi.updateHomework(e).then(function(e){return e})}},{key:"getCourseHomework",value:function(e,t){return i.chapterApi.getCourseHomework(e,t).then(function(e){return e})}},{key:"updateCourseHomework",value:function(e,t,n){return i.chapterApi.updateCourseHomework(e,t,n).then(function(e){return e})}},{key:"updateSurveyAnswer",value:function(e){return i.chapterApi.updateSurveyAnswer(e).then(function(e){return e})}}]),e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}();var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,[{key:"setCookie",value:function(e,t,n){var r=new Date;n.expires&&(r.setTime(r.getTime()+24*(n.expires||0)*60*60*1e3),n.expires=r.toUTCString());var o="";for(var i in n)o+="; "+i+"="+n[i];document.cookie=e+"="+t+o}},{key:"getCookie",value:function(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "===o.charAt(0);)o=o.substring(1);if(-1!==o.indexOf(t))return o.substring(t.length,o.length)}return""}},{key:"getAllCookies",value:function(){return document.cookie}},{key:"clearCookie",value:function(e,t){var n=new Date;n.setTime(n.getTime()-6e4),t.expires=n.toUTCString();var r="";for(var o in t)r+="; "+o+"="+t[o];document.cookie=e+"="+r}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}();var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,[{key:"durationToTimeString",value:function(e){var t=Math.floor(e/3600),n=Math.floor((e-3600*t)/60),r=(e-3600*t-60*n)%60;function o(e){return 10<=e?e:"0"+e}var i={h:o(t),m:o(n),s:o(r)};return"h:m:s".replace(/h|m|s/g,function(e){return i[e]}).replace(/^00:/,"")}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}();var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,[{key:"getIdt",value:function(){var e=/_idt=/.test(document.cookie)&&document.cookie.replace(/.*_idt=([^;]+).*/,"$1");if(!e){e=(new Date).getTime().toString(36)+Math.random().toString(32)+Math.random().toString(32);var t=new Date;t.setMonth(t.getMonth()+6),document.cookie="_idt="+e+";path=/;domain=.ezijing.com;expires="+t.toGMTString()}return e}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),i=n(9),u=n(75),v=(r=u)&&r.__esModule?r:{default:r};var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return o(e,[{key:"getlearnFindList",value:function(){return i.courseApi.getlearnFindList().then(function(e){for(var t=[{val:"-1",name:"全部"}],n=0;n<e.length;n++){var r=e;t.push({val:r[n].id,name:r[n].semester_name})}return t})}},{key:"getCourseList",value:function(e,t){return i.courseApi.getCourseList(e,t).then(function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n],o=e[n].curriculum,i=r.course_type,u=1===i?"必修课":2===i?"选修课":3===i?"重修课":"";t.push({id:r.course_id,sid:r.semester_id,src:o&&o.curriculum_picture||"",title:r.course_name,arrTab:[(o&&o.curriculum_credit||0)+"学分",u,r.semester_name],status:o.is_enabled?"已发布":"未发布",time:r.begin_date.split(" ")[0]+" 至 "+r.end_date.split(" ")[0],myStatus:0!==r.selected?r.score?"总成绩:"+r.score:"已选修":"未选修",progress:r.video_progress})}return t})}},{key:"getCourseDetail",value:function(s,c){return i.courseApi.getCourseDetail(s,c).then(function(r){var o=r,e=o.curriculum,t=o.course_type,n=1===t?"必修课":2===t?"选修课":3===t?"重修课":"",i={headerInfo:{isStart:!!o.selected,id:o.course_id,sid:o.semester_id,bgSrc:e&&e.curriculum_picture||"../icons/home/default.jpg",title:o.course_name,arrTab:[(e&&e.curriculum_credit||0)+"学分",n,o.semester_name],status:e.is_enabled?"已发布":"未发布",time:o.begin_date.split(" ")[0]+" 至 "+o.end_date.split(" ")[0],progress:o.video_progress},tabs0Content:{},tabs1ChapterList:{}};i.tabs0Content={text:e&&e.curriculum_represent,teachers:[]};for(var u=0;u<o.lecturers.length;u++){var a=o.lecturers[u];i.tabs0Content.teachers.push({src:a.lecturer_avatar,name:a.lecturer_name,edu:a.lecturer_education||"",job:a.lecturer_office||"",unit:a.lecturer_title||""})}return i.tabs1ChapterList={currentChapterId:o.latest_play||"",currentVideoProvider:"",course:o.chapters.map(function(e,t){return{title:e.name,isUp:!0,chapters:e.children.map(function(e,t){var n=3===e.type&&e.homework&&1===e.homework.work_type&&e.homework||"";return n&&(n.course_id=r.course_id,n.chapter_id=e.id,n.work_id=e.resource_id,n.semester_id=r.semester_id),{cid:o.course_id,sid:o.semester_id,vid:e.resource_id,id:e.id,video_provider:e.video&&e.video.video_provider||"",duration:e.video&&e.video.video_length||0,time:e.video&&v.default.convertTime.durationToTimeString(e.video.video_length)||"",name:e.name,type:e.type,work_type:e.homework&&e.homework.work_type||"",homework:n}})}})},i.tabs1ChapterList.course.push({title:"课程资料",isUp:!0,chapters:[],type:"course_info",sid:c,cid:s}),i.tabs1ChapterList.course.push({title:"教学评估",isUp:!0,chapters:[],type:"teach_evaluation",sid:c,cid:s}),i.tabs3richTest=o.course_evaluation,i})}},{key:"getCourseAssess",value:function(h,m){return i.courseApi.getCourseAssess(h,m).then(function(e){var t=e,n=[];for(var r in t.video_evaluation){var o=t.video_evaluation[r],i=[];for(var u in o.sections){var a=o.sections[u];i.push({name:a.title,time:a.duration&&v.default.convertTime.durationToTimeString(a.duration)||"00:00",progress:a.progress&&a.progress+"%"||"0%",id:a.id})}n.push({title:o.title,arr:i,sid:m,cid:h})}var s=[];for(var c in t.homework_evaluation){var l=t.homework_evaluation[c],d=[];for(var f in l.sections){var p=l.sections[f];d.push({name:p.title,created_time:p.created_time||"",score:p.score||"0"})}s.push({title:l.title,arr:d})}return{score:t.course_score,duration:v.default.convertTime.durationToTimeString(t.course_duration||0),progress:t.course_progress,video:n,homewrok:s,essay:{}}})}},{key:"selectCourse",value:function(e,t){return i.courseApi.selectCourse(e,t).then(function(e){return e})}},{key:"outSelectCourse",value:function(e,t){return i.courseApi.outSelectCourse(e,t).then(function(e){return e})}}]),e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),o=n(9);var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,[{key:"getDiscussList",value:function(e,t){return o.discussApi.getDiscussList(e,t).then(function(e){return e.map(function(e,t){return{id:e.id,sid:e.semester_id,cid:e.relate_id,user:{url:e.questioner.avatar||"",name:e.questioner.nickname,time:e.created_time},title:e.title,text:e.contents,askCnt:e.answer_count,TouCnt:e.tag_total_count,courseName:"在线学习课程",comments:e.comments,mine:e.mine,isShow:!1}})})}},{key:"getCourseDiscussList",value:function(e,t,n){return o.discussApi.getCourseDiscussList(e,t,n).then(function(e){return e.map(function(e,t){return{id:e.id,sid:e.semester_id,cid:e.relate_id,user:{url:e.questioner.avatar||"",name:e.questioner.nickname,time:e.created_time},title:e.title,text:e.contents,askCnt:e.answer_count,TouCnt:e.tag_total_count,courseName:"在线学习课程",comments:e.comments,mine:e.mine,isShow:!1}})})}},{key:"getDiscussDetail",value:function(e){return o.discussApi.getDiscussDetail(e).then(function(e){var t=e;return{ques:{qid:t.id,sid:t.semester_id,user:{url:t.questioner.avatar||"",name:t.questioner.nickname,time:t.created_time},title:t.title,text:t.contents,askCnt:t.answer_count||0,TouCnt:t.tag_total_count||0,likeCnt:t.tag_count||0,comCnt:t.comments.length,mine:t.mine,isShowComment:!1,has_tag:t.has_tag,tag_id:t.tag&&t.tag.id||"",comments:t.comments.map(function(e,t){return{cid:e.id,user:{url:e.observer.avatar||"",name:e.observer.nickname,time:e.created_time},text:e.comments,mine:e.mine}})},answer:t.answers&&t.answers.map(function(e,t){return{aid:e.id,user:{url:e.replier.avatar||"",name:e.replier.nickname,time:e.created_time},text:e.contents,likeCnt:e.tag_count,comCnt:e.comments.length,mine:e.mine,isShowComment:!1,has_tag:e.has_tag,tag_id:e.tag&&e.tag.id||"",comments:e.comments.map(function(e,t){return{cid:e.id,user:{url:e.observer.avatar||"",name:e.observer.nickname,time:e.created_time},text:e.comments,mine:e.mine}})}})||[]}})}},{key:"deleteDiscuss",value:function(e){return o.discussApi.deleteDiscuss(e).then(function(e){if(e.success)return e})}},{key:"publishQues",value:function(e){return o.discussApi.publishQues(e).then(function(e){return e})}},{key:"answerQues",value:function(e){return o.discussApi.answerQues(e).then(function(e){if(e.success)return e})}},{key:"deleteAnswer",value:function(e){return o.discussApi.deleteAnswer(e).then(function(e){if(e.success)return e})}},{key:"callbackComment",value:function(e){return o.discussApi.callbackComment(e).then(function(e){if(e.success)return e})}},{key:"deleteComment",value:function(e){return o.discussApi.deleteComment(e).then(function(e){if(e.success)return e})}},{key:"like",value:function(e){return o.discussApi.like(e).then(function(e){if(e.success)return e})}},{key:"unlike",value:function(e){return o.discussApi.unlike(e).then(function(e){if(e.success)return e})}}]),e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),o=n(9);var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,[{key:"getMyMsg",value:function(){return o.msgApi.getMyMsg().then(function(e){return e.map(function(e,t){return{isRead:!1,id:e.id,text:e.message_body,time:e.created_time,isShow:!1}})})}}]),e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),o=n(9);var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,[{key:"getMyScore",value:function(){return o.scoreApi.getMyScore().then(function(e){var t=e;return{total:t.total_credits,myTotal:t.my_total_credits,myTotalStr:t.total_credits&&(1*t.my_total_credits/t.total_credits*100).toFixed(1)+"%"||"0%",must:t.required_credits,myMust:t.my_required_credits,myMustStr:t.required_credits&&(1*t.my_required_credits/t.required_credits*100).toFixed(1)+"%"||"0%",unmust:t.optional_credits,myUnmust:t.my_optional_credits,myUnmustStr:t.optional_credits&&(1*t.my_optional_credits/t.optional_credits*100).toFixed(1)+"%"||"0%",list:t.lists}})}},{key:"feedbackcommit",value:function(e){return o.scoreApi.feedbackcommit(e).then(function(e){return e})}}]),e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),o=n(9);var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,[{key:"getReportList",value:function(){return o.reportApi.getReportList().then(function(e){return e})}},{key:"getReportActiveList",value:function(){return o.reportApi.getReportActiveList().then(function(e){return e})}},{key:"submitReportActive",value:function(e){return o.reportApi.submitReportActive(e).then(function(e){return e})}},{key:"getReportActive",value:function(e){return o.reportApi.getReportActive(e).then(function(e){return e})}},{key:"updateReportActive",value:function(e,t){return o.reportApi.updateReportActive(e,t).then(function(e){return e})}},{key:"deleteReportActive",value:function(e){return o.reportApi.deleteReportActive(e).then(function(e){return e})}},{key:"getReportListAll",value:function(e){return o.reportApi.getReportListAll(e.rid).then(function(e){return e})}},{key:"submitReport",value:function(e,t){return o.reportApi.submitReport(e,t).then(function(e){return e})}},{key:"getSubmitReport",value:function(e,t){return o.reportApi.getSubmitReport(e,t).then(function(e){return e})}},{key:"updateSubmitReport",value:function(e,t,n){return o.reportApi.updateSubmitReport(e,t,n).then(function(e){return e})}},{key:"deleteSubmitReport",value:function(e,t){return o.reportApi.deleteSubmitReport(e,t).then(function(e){return e})}}]),e}();t.default=i},function(e,t,n){"use strict";var r=n(32);n.n(r).a},function(e,t,n){"use strict";n.r(t);var r=n(70),o=n(33);for(var i in o)"default"!==i&&function(e){n.d(t,e,function(){return o[e]})}(i);n(220);var u=n(1),a=Object(u.a)(o.default,r.a,r.b,!1,null,"01091f52",null);a.options.__file="sidebar.vue",t.default=a.exports},function(e,t,n){"use strict";var r=n(35);n.n(r).a},function(e,t,n){"use strict";var r=n(36);n.n(r).a},function(e,t,n){"use strict";n.r(t);var r=n(68),o=n(37);for(var i in o)"default"!==i&&function(e){n.d(t,e,function(){return o[e]})}(i);var u=n(1),a=Object(u.a)(o.default,r.a,r.b,!1,null,null,null);a.options.__file="main.vue",t.default=a.exports},function(e,t,n){"use strict";n.r(t);var r=n(69),o=n(39);for(var i in o)"default"!==i&&function(e){n.d(t,e,function(){return o[e]})}(i);var u=n(1),a=Object(u.a)(o.default,r.a,r.b,!1,null,null,null);a.options.__file="index.vue",t.default=a.exports},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(227)),o=i(n(228));function i(e){return e&&e.__esModule?e:{default:e}}var u=new r.default,a=new o.default;t.default={globalVariable:u,loginInfo:a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}();var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,[{key:"init",value:function(e,t){this.setInitSiderbarVar(e,t),this.setInitUserInfo(e)}},{key:"setInitSiderbarVar",value:function(e,t){var n=e.prototype.$GlobalVariable;/^\/app\//g.test(t.to.path)&&(n.siderbar={defaultPath:t&&t.to&&t.to.path||""})}},{key:"setInitUserInfo",value:function(e){var t=e.prototype.$GlobalVariable;t.UserInfo||(t.UserInfo={})}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),i=n(41),u=(r=i)&&r.__esModule?r:{default:r};var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return o(e,[{key:"isLogin",value:function(e){var t=e.prototype.$GlobalVariable;return t.UserInfo&&t.UserInfo.auth_key?Promise.resolve("login-1"):u.default.loginAction.getInfo().then(function(e){return e.auth_key?(t.UserInfo=e,"login-2"):"nologin-1"})}}]),e}();t.default=a},,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(1),o=Object(r.a)({},function(){var e=this.$createElement;return(this._self._c||e)("router-view")},[],!1,null,null,null);o.options.__file="container.vue";t.default=o.exports},function(e,t){e.exports=window.CKEDITOR},,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=window.swfobject},function(e,t){e.exports=window.Aliplayer},function(e,t){e.exports=window.AliPlayerComponent}],[[114,3,4]]]);
\ No newline at end of file
!function(d){function e(e){for(var t,r,n=e[0],a=e[1],o=e[2],c=0,f=[];c<n.length;c++)r=n[c],b[r]&&f.push(b[r][0]),b[r]=0;for(t in a)Object.prototype.hasOwnProperty.call(a,t)&&(d[t]=a[t]);for(p&&p(e);f.length;)f.shift()();return i.push.apply(i,o||[]),u()}function u(){for(var e,t=0;t<i.length;t++){for(var r=i[t],n=!0,a=1;a<r.length;a++){var o=r[a];0!==b[o]&&(n=!1)}n&&(i.splice(t--,1),e=s(s.s=r[0]))}return e}var r={},l={3:0},b={3:0},i=[];function s(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return d[e].call(t.exports,t,t.exports,s),t.l=!0,t.exports}s.e=function(i){var e=[];l[i]?e.push(l[i]):0!==l[i]&&{0:1,5:1,6:1,7:1,8:1,9:1,10:1,11:1,12:1,13:1,14:1,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1}[i]&&e.push(l[i]=new Promise(function(e,n){for(var t="resources/"+({}[i]||i)+"."+{0:"7e9c19881242",1:"31d6cfe0d16a",5:"b6a10460f085",6:"a5f4fc497c08",7:"b7a3b3beb3de",8:"edadd3d1dece",9:"2b76410db4d0",10:"30b36ab56f09",11:"7275abdd54ff",12:"eeb0f72f9597",13:"03a7345988fb",14:"7b16b71e9379",15:"fc688477e0f2",16:"9c95c5430f41",17:"081b63b62922",18:"53c51a584a84",19:"4b2c45ab9433",20:"399c6307133c",21:"abf993cecc16",22:"db6edaa9662f",23:"5ba1b1bc7480",24:"43ee51cf782c",25:"12c536f6abaf",26:"31d6cfe0d16a",27:"31d6cfe0d16a",28:"31d6cfe0d16a",29:"31d6cfe0d16a",30:"31d6cfe0d16a",31:"31d6cfe0d16a",32:"31d6cfe0d16a",33:"31d6cfe0d16a"}[i]+".css",a=s.p+t,r=document.getElementsByTagName("link"),o=0;o<r.length;o++){var c=(d=r[o]).getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(c===t||c===a))return e()}var f=document.getElementsByTagName("style");for(o=0;o<f.length;o++){var d;if((c=(d=f[o]).getAttribute("data-href"))===t||c===a)return e()}var u=document.createElement("link");u.rel="stylesheet",u.type="text/css",u.onload=e,u.onerror=function(e){var t=e&&e.target&&e.target.src||a,r=new Error("Loading CSS chunk "+i+" failed.\n("+t+")");r.request=t,delete l[i],u.parentNode.removeChild(u),n(r)},u.href=a,document.getElementsByTagName("head")[0].appendChild(u)}).then(function(){l[i]=0}));var t,r=b[i];if(0!==r)if(r)e.push(r[2]);else{var n=new Promise(function(e,t){r=b[i]=[e,t]});e.push(r[2]=n);var a,o=document.getElementsByTagName("head")[0],c=document.createElement("script");c.charset="utf-8",c.timeout=120,s.nc&&c.setAttribute("nonce",s.nc),c.src=s.p+"resources/"+({}[t=i]||t)+"."+{0:"fa8f2b4e",1:"d064c442",5:"c7817f69",6:"28d56e77",7:"22e3a852",8:"70d69ac2",9:"75f8a6c2",10:"bd3cdbd6",11:"1341a433",12:"a35ca632",13:"81f1f175",14:"abfc162b",15:"215fc286",16:"2196badb",17:"ed816a77",18:"6d54dfc5",19:"f42ce2f2",20:"805e4102",21:"015fe65a",22:"2768e3bd",23:"b90bdb3f",24:"c496539e",25:"85669b43",26:"f840b340",27:"96f77249",28:"c9ab77ad",29:"e2b8b230",30:"c7136a86",31:"a2b590da",32:"846a5348",33:"03e953f0"}[t]+".js",a=function(e){c.onerror=c.onload=null,clearTimeout(f);var t=b[i];if(0!==t){if(t){var r=e&&("load"===e.type?"missing":e.type),n=e&&e.target&&e.target.src,a=new Error("Loading chunk "+i+" failed.\n("+r+": "+n+")");a.type=r,a.request=n,t[1](a)}b[i]=void 0}};var f=setTimeout(function(){a({type:"timeout",target:c})},12e4);c.onerror=c.onload=a,o.appendChild(c)}return Promise.all(e)},s.m=d,s.c=r,s.d=function(e,t,r){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(s.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)s.d(r,n,function(e){return t[e]}.bind(null,n));return r},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="https://zws-imgs-pub.ezijing.com/static/build/learn-enterprise/",s.oe=function(e){throw console.error(e),e};var t=window.webpackJsonp=window.webpackJsonp||[],n=t.push.bind(t);t.push=e,t=t.slice();for(var a=0;a<t.length;a++)e(t[a]);var p=n;u()}([]);
\ No newline at end of file
!function(d){function e(e){for(var t,r,n=e[0],a=e[1],c=e[2],o=0,f=[];o<n.length;o++)r=n[o],l[r]&&f.push(l[r][0]),l[r]=0;for(t in a)Object.prototype.hasOwnProperty.call(a,t)&&(d[t]=a[t]);for(p&&p(e);f.length;)f.shift()();return i.push.apply(i,c||[]),u()}function u(){for(var e,t=0;t<i.length;t++){for(var r=i[t],n=!0,a=1;a<r.length;a++){var c=r[a];0!==l[c]&&(n=!1)}n&&(i.splice(t--,1),e=s(s.s=r[0]))}return e}var r={},b={3:0},l={3:0},i=[];function s(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return d[e].call(t.exports,t,t.exports,s),t.l=!0,t.exports}s.e=function(i){var e=[];b[i]?e.push(b[i]):0!==b[i]&&{0:1,5:1,6:1,7:1,8:1,9:1,10:1,11:1,12:1,13:1,14:1,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1}[i]&&e.push(b[i]=new Promise(function(e,n){for(var t="resources/"+({}[i]||i)+"."+{0:"7e9c19881242",1:"31d6cfe0d16a",5:"b6a10460f085",6:"f1bb550b1e6f",7:"b7a3b3beb3de",8:"edadd3d1dece",9:"2b76410db4d0",10:"30b36ab56f09",11:"5302c669b95c",12:"eeb0f72f9597",13:"03a7345988fb",14:"7b16b71e9379",15:"fc688477e0f2",16:"9c95c5430f41",17:"081b63b62922",18:"53c51a584a84",19:"4b2c45ab9433",20:"399c6307133c",21:"abf993cecc16",22:"db6edaa9662f",23:"5ba1b1bc7480",24:"43ee51cf782c",25:"12c536f6abaf",26:"31d6cfe0d16a",27:"31d6cfe0d16a",28:"31d6cfe0d16a",29:"31d6cfe0d16a",30:"31d6cfe0d16a",31:"31d6cfe0d16a",32:"31d6cfe0d16a",33:"31d6cfe0d16a"}[i]+".css",a=s.p+t,r=document.getElementsByTagName("link"),c=0;c<r.length;c++){var o=(d=r[c]).getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(o===t||o===a))return e()}var f=document.getElementsByTagName("style");for(c=0;c<f.length;c++){var d;if((o=(d=f[c]).getAttribute("data-href"))===t||o===a)return e()}var u=document.createElement("link");u.rel="stylesheet",u.type="text/css",u.onload=e,u.onerror=function(e){var t=e&&e.target&&e.target.src||a,r=new Error("Loading CSS chunk "+i+" failed.\n("+t+")");r.request=t,delete b[i],u.parentNode.removeChild(u),n(r)},u.href=a,document.getElementsByTagName("head")[0].appendChild(u)}).then(function(){b[i]=0}));var t,r=l[i];if(0!==r)if(r)e.push(r[2]);else{var n=new Promise(function(e,t){r=l[i]=[e,t]});e.push(r[2]=n);var a,c=document.getElementsByTagName("head")[0],o=document.createElement("script");o.charset="utf-8",o.timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.src=s.p+"resources/"+({}[t=i]||t)+"."+{0:"fa8f2b4e",1:"d064c442",5:"c7817f69",6:"579c6169",7:"22e3a852",8:"70d69ac2",9:"75f8a6c2",10:"bd3cdbd6",11:"5b2fcbe2",12:"a35ca632",13:"81f1f175",14:"abfc162b",15:"215fc286",16:"2196badb",17:"ed816a77",18:"6d54dfc5",19:"f42ce2f2",20:"805e4102",21:"015fe65a",22:"2768e3bd",23:"b90bdb3f",24:"c496539e",25:"85669b43",26:"f840b340",27:"96f77249",28:"c9ab77ad",29:"e2b8b230",30:"c7136a86",31:"a2b590da",32:"846a5348",33:"03e953f0"}[t]+".js",a=function(e){o.onerror=o.onload=null,clearTimeout(f);var t=l[i];if(0!==t){if(t){var r=e&&("load"===e.type?"missing":e.type),n=e&&e.target&&e.target.src,a=new Error("Loading chunk "+i+" failed.\n("+r+": "+n+")");a.type=r,a.request=n,t[1](a)}l[i]=void 0}};var f=setTimeout(function(){a({type:"timeout",target:o})},12e4);o.onerror=o.onload=a,c.appendChild(o)}return Promise.all(e)},s.m=d,s.c=r,s.d=function(e,t,r){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(s.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)s.d(r,n,function(e){return t[e]}.bind(null,n));return r},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="https://zws-imgs-pub.ezijing.com/static/build/learn-enterprise/",s.oe=function(e){throw console.error(e),e};var t=window.webpackJsonp=window.webpackJsonp||[],n=t.push.bind(t);t.push=e,t=t.slice();for(var a=0;a<t.length;a++)e(t[a]);var p=n;u()}([]);
\ No newline at end of file
......@@ -118,7 +118,8 @@ export default {
mapFrames: [], // 记录视频播放过的 所有帧 hash 表,数组 下标表示 视频对应帧 - 1,数组值 表示 播放过的帧,重复播 + 1
videoWidth: VIDEO_DEFAULT_WIDTH,
videoHeight: VIDEO_DEFAULT_HEIGHT,
username: (window.G.UserInfo && window.G.UserInfo.username) || ''
username: (window.G.UserInfo && window.G.UserInfo.username) || '',
duration: 10000
},
/* 增加节流函数 对应 执行 */
resizeVideo: null,
......@@ -193,6 +194,8 @@ export default {
// 播放时间变更
onVideoTimeChange (data) {
let time = data.time
/* 获取视频 总时长 */
this.videoFlash.duration = data.duration || this.videoFlash.duration
/* 获取 对应 播放 速度 和 是否 拖动 进度条 */
this.videoFlash.speed = parseFloat(data.quality.split(' ')[1] || 1)
this.videoFlash.isSeek = data.isSeek
......@@ -342,7 +345,8 @@ export default {
this._rProgress.map = this.videoFlash.mapFrames
}
let _rProgress = this._rProgress
let tempTime = this.videoFlash.lastTime
let _duration = this.videoFlash.duration
let tempTime = Math.min(this.videoFlash.lastTime, _duration)
let _speed = this.videoFlash.speed
let _isSeek = this.videoFlash.isSeek
let _queue = this.videoFlash.queueFrames
......@@ -359,6 +363,11 @@ export default {
/* cpt 和 mpt 应该没问题 */
_rProgress.cpt = tempTime
_rProgress.mpt = tempTime > _rProgress.mpt ? tempTime : _rProgress.mpt
/* mpt 最大不能超过 总时长 */
_rProgress.mpt = _rProgress.mpt > _duration ? _duration : _rProgress.mpt
if (parseInt(_rProgress.mpt) > (parseInt(_duration) + 10000)) {
this.$message.info('视频播放出错,请刷新页面重新观看。')
}
_rProgress.ps = _queue
_rProgress.vid = this.id
/* 调用接口执行刷新 */
......
......@@ -62,11 +62,11 @@ export default {
}
// 播放过程中不断触发,传递当前播放到的时间
window._playerIng = function (time) {
$('#' + PLAYER_WRAP_ID).trigger('player.time', { time, quality: that.getPlayer().callAction('getQuality'), isSeek: false })
$('#' + PLAYER_WRAP_ID).trigger('player.time', { time, duration: that.getPlayer().callAction('getDuration'), quality: that.getPlayer().callAction('getQuality'), isSeek: false })
}
// 拖动播放进度条
window._playerSeek = function () {
$('#' + PLAYER_WRAP_ID).trigger('player.seek', { time: that.getPlayer().callAction('getCurrentTime'), quality: that.getPlayer().callAction('getQuality'), isSeek: true })
$('#' + PLAYER_WRAP_ID).trigger('player.seek', { time: that.getPlayer().callAction('getCurrentTime'), duration: that.getPlayer().callAction('getDuration'), quality: that.getPlayer().callAction('getQuality'), isSeek: true })
}
// 视频播放结束
window._playerFinish = function () {
......
......@@ -84,7 +84,7 @@ export default {
}
if (rate) { _quality += (' ' + rate) }
time = videoPlayer.getCurrentTime()
$('#' + PLAYER_WRAP_ID).trigger('player.time', { time, quality: _quality, isSeek: false })
$('#' + PLAYER_WRAP_ID).trigger('player.time', { time, duration: videoPlayer.getDuration(), quality: _quality, isSeek: false })
}
// 开始拖拽
window._playerSeekStart = function (time) {
......@@ -101,7 +101,7 @@ export default {
case 'SD': _quality = '高清'; break
}
if (rate) { _quality += (' ' + rate) }
$('#' + PLAYER_WRAP_ID).trigger('player.seek', { time: videoPlayer.getCurrentTime(), quality: _quality, isSeek: true })
$('#' + PLAYER_WRAP_ID).trigger('player.seek', { time: videoPlayer.getCurrentTime(), duration: videoPlayer.getDuration(), quality: _quality, isSeek: true })
}
// 视频播放结束
window._playerFinish = function () {
......@@ -170,7 +170,7 @@ export default {
videoPlayer._urls[0].FD = this.videoArr.FD
videoPlayer._urls[1].LD = this.videoArr.LD
videoPlayer._urls[2].SD = this.videoArr.SD
var q = videoPlayer.getComponent('QualityComponent').definition
var q = videoPlayer.getComponent('QualityComponent').definition || 'LD'
objPlayer.loadByUrl(this.videoArr[q])
})
},
......
......@@ -188,6 +188,15 @@ export default {
}).catch(e => { this.$message.error(e.message) }).finally(() => { loading.close() })
}
const loading = this.$loading({ lock: true, text: '', spinner: '', background: 'rgba(255, 255, 255, 0.9)' })
if (this.cid === '0' && this.sid === '0') {
this.$message({
message: 'URL异常,请点击“返回首页”,重新选择课程学习!',
type: 'info',
duration: 10000
})
loading.close()
return
}
cAction.chapterAction.getChapterList(this.cid, this.sid, this.id).then(json => {
this.chapterList = json.json
this.courseInfo = json.courseInfo
......@@ -268,11 +277,18 @@ export default {
for (let i = 0; i < _arr.length; i++) {
_rProgress.ps.shift()
}
} else {
/* 兼容 阿里云视频、CC视频 停止播放 */
let $dom = document.getElementById('player')
let flag = !!$dom.callAction
flag ? ($dom.callAction('pause')) : ($dom.children[0].pause())
}
}).catch(e => {
this.$message.error(e.message)
document.getElementById('player').callAction('pause')
/* 再增加 一个 阿里云视频停止播放 */
/* 兼容 阿里云视频、CC视频 停止播放 */
let $dom = document.getElementById('player')
let flag = !!$dom.callAction
flag ? ($dom.callAction('pause')) : ($dom.children[0].pause())
}).finally(() => { })
}
},
......
......@@ -161,6 +161,19 @@ export default class API {
})
}
err = new Error(res.response.data.message)
} else if (res.response.data.status === 401 && res.response.data.message) {
MessageBox.confirm(res.response.data.message, '提示', {
confirmButtonText: '关闭',
// cancelButtonText: '取消',
type: 'warning',
showClose: false,
closeOnPressEscape: false,
closeOnClickModal: false,
showCancelButton: false
}).then(() => {
/* 重新刷新当前页 */
window.location.reload()
})
} else {
/* 错误处理,服务端非正常返回 */
err = new Error(JSON.stringify(res.response))
......
......@@ -94,7 +94,7 @@ export default class CourseAction {
/* 课程内容 */
json.tabs1ChapterList = {
currentChapterId: cur.latest_play || '',
currentVideoProvider: '',
currentVideoProvider: '1',
course: cur.chapters.map((_, i) => {
return {
title: _.name,
......
......@@ -21,7 +21,7 @@ Vue.use(VueRouter)
const router = createRouter()
/* 设置全局变量 */
window.G = Vue.prototype.$GlobalVariable = {
VERSION: 'PC-1.1.0'
VERSION: 'PC-1.1.3'
}
Vue.prototype.$md5 = md5
/* 导航守卫 */
......
const state = process.env.NODE_ENV
let conf = {}
if (state === 'test') {
// conf.agentApiUrl = 'https://api2.ezijing.com/'
conf.agentApiUrl = 'https://zapi.ezijing.com/'
conf.agentApiUrl = 'https://api2.ezijing.com/'
// conf.agentApiUrl = 'https://zapi.ezijing.com/'
// conf.agentApiUrl = 'http://10.1.1.5:8024/'
// conf.agentApiUrl = 'http://192.168.3.254:8081'
} else if (state === 'production') {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论