chunk-2d10bb15.fd2ee356.js
8.7 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d10bb15"],{"3e50":function(t,i,e){"use strict";e.r(i);var o=function(){var t=this,i=t.$createElement,o=t._self._c||i;return o("div",{staticClass:"inform"},[o("dingbu"),o("div",{staticClass:"inform-box"},[o("div",{staticClass:"box-top"},[o("span",{staticClass:"shouye"},[t._v("首页")]),t._m(0),o("router-link",{staticClass:"tonzhil",attrs:{tag:"span",to:"/learn"}},[t._v("学习系统")]),t._m(1),o("router-link",{staticClass:"tonzhil",attrs:{tag:"span",to:{path:"/profile",query:{id:this.id}}}},[t._v("课程列表")]),o("span",{}),t._m(2),o("span",{staticClass:"tonzhi"},[t._v("课程详情")])],1)]),o("div",{staticClass:"box-mat"},[o("div",{staticClass:"box-lok"},t._l(t.addkio,(function(i,e){return o("div",{key:e,staticClass:"box-list",class:t.orderindex==e?"orderactivegd":"",attrs:{"data-index":e},on:{click:t.selorder}},[o("img",{staticClass:"ziliao",attrs:{src:i.url,alt:""}}),o("div",{staticClass:"ziliao-text"},[t._v(t._s(i.text))])])})),0),o("div",{staticClass:"box-contentukj"},[o("div",{staticClass:"ke-title"},[t._v(t._s(t.addki.name))]),o("div",{staticClass:"kecheng-listto"},[o("div",{staticClass:"listto-ke"},[o("div",{staticClass:"class_hour"},[t._v(t._s(t.addki.class_hour)+"课时")]),o("div",{staticClass:"minrd"},[t._v("课程时长:"+t._s(t.addki.min)+"分钟")]),o("div",{staticClass:"jiezhi-time"},[t._v("截止时间:"+t._s(t.addki.expirationtime))])]),1==t.addki.is_join?o("div",{staticClass:"xuexi-jihua",attrs:{plain:"true"},on:{click:function(i){return t.jixue(t.addki.id)}}},[t._v("+ 加入学习计划")]):t._e(),2==t.addki.is_join?o("div",{staticClass:"xuexi-jihuaa",attrs:{plain:"trueo"},on:{click:function(i){return t.jixue(t.addki.id)}}},[t._v("已加入")]):t._e()]),o("div",{staticClass:"shiping",attrs:{id:"shi"},on:{click:function(i){return t.videofang(t.coutent)}}},[t.vio?o("img",{staticClass:"bofang_icon",attrs:{src:e("bea5"),alt:""}}):t._e(),o("video",{attrs:{poster:t.addki.video_image,id:"video",src:t.addki.video_file,loop:"loop",controlslist:"nodownload",height:"100%",width:"100%",controls:t.controls},domProps:{muted:t.muted}})]),o("div",{staticClass:"kecheng"},[t._v("课程详情")]),o("div",{staticClass:"kecheng-text",domProps:{innerHTML:t._s(t.addki.content)}})])]),o("dibu"),o("daohan")],1)},s=[function(){var t=this,i=t.$createElement,o=t._self._c||i;return o("span",[o("img",{staticClass:"img-o",attrs:{src:e("5e6c"),alt:""}})])},function(){var t=this,i=t.$createElement,o=t._self._c||i;return o("span",[o("img",{staticClass:"img-o",attrs:{src:e("5e6c"),alt:""}})])},function(){var t=this,i=t.$createElement,o=t._self._c||i;return o("span",[o("img",{staticClass:"img-o",attrs:{src:e("5e6c"),alt:""}})])}],n=e("cb1d"),a=e("45f4"),d=e("17f9"),r={components:{daohan:n["a"],dibu:a["a"],dingbu:d["default"]},data:function(){return{id:"",muted:!1,orderindex:1,zhebi:!0,addki:[],addkio:[{url:e("5d54"),text:"我的资料"},{url:e("4503"),text:"课程列表"},{url:e("a92f"),text:"我的考试"},{url:e("a526"),text:"考试记录"},{url:e("9791"),text:"修改密码"},{url:e("5fb3"),text:"学习系统导引"}],vio:!0,duration:"",controls:!1,coutent:"",gosid:"",orderid:"",miao:"",is_endt:""}},created:function(){var t=this;console.log(this.id),window.addEventListener("beforeunload",(function(i){return t.test(i)}));this.id=this.$route.query.id,this.gosid=this.$route.query.gosid,console.log(this.id)},mounted:function(){this.getzan(),this.gosid=this.$route.query.gosid,this.orderid=this.$route.query.orderid,window.onbeforeunload=function(t){return console.log(t),t=t||window.event,t&&that.ad(),""},this.getvideo_detail()},methods:{test:function(t){alert("111")},selorder:function(t){if(this.orderindex=t.currentTarget.dataset.index,localStorage.setItem("ordertodo",this.orderindex),0==this.orderindex&&this.$router.push({path:"/profile",query:{id:this.id}}),2==this.orderindex&&this.$router.push({path:"/profile",query:{id:this.id}}),3==this.orderindex&&this.$router.push({path:"/profile",query:{id:this.id}}),4==this.orderindex){this.$router.push({path:"/profile",query:{id:this.id}}),document.getElementById("app").scrollIntoView();var i=function(t){t.preventDefault()};document.body.style.overflow="hidden",document.addEventListener("touchmove",i,!1)}if(5==this.orderindex){this.$router.push({path:"/profile",query:{id:this.gosid}}),document.documentElement.scrollTop=200,document.getElementById("app").scrollIntoView();i=function(t){t.preventDefault()};document.body.style.overflow="hidden",document.addEventListener("touchmove",i,!1)}},videofang:function(t){this.controls=!0;var i,e=1,o=this,s=o.miao,n=document.getElementById("video");2==this.is_endt?setInterval((function(){var t=n.currentTime;t-i>1&&(n.currentTime=i),i=n.currentTime}),500):this.zhebi=!1,n.paused?(n.currentTime=t,0==this.controls&&n.play(),this.vio=!1,n.addEventListener("timeupdate",(function(){Math.floor(n.currentTime),console.log(Math.floor(n.currentTime)),o.duration=Math.floor(n.currentTime),o.coutent=o.duration,o.coutent==o.miao&&(n.pause(),e+=1,s*=e,o.miao=s,console.log(o.miao),o.vio=!0),o.duration>=o.addki.duration&&(o.ad(),o.controls=!0)}))):(0==this.controls&&n.pause(),console.log(o.duration),o.duration>0&&this.ad())},ad:function(){var t="user/bofang",i={id:this.id,duration:this.duration};this.post(t,i).then((function(t){console.log(t)})).catch((function(t){console.log(t)}))},jixue:function(t){var i=this,e="user/join",o={id:this.id,duration:this.duration};this.post(e,o).then((function(e){i.$message(e.msg),localStorage.setItem("id",t)})).catch((function(t){console.log(t)}))},getvideo_detail:function(){var t=this,i="user/video_detail",e={id:this.id};this.post(i,e).then((function(i){t.addki=i.data,t.is_endt=i.data.is_end,console.log(t.is_endt),1==t.addki.is_end?(t.controls=!0,t.coutent=0):t.coutent=t.addki.bofangtime,console.log(t.coutent),console.log(i)})).catch((function(t){console.log(t)}))},getzan:function(){var t=this,i="index/zan";this.post(i).then((function(i){t.miao=i.data.stopnum})).catch((function(t){console.log(t)}))}}},c=r,u=(e("fe3c"),e("2877")),l=Object(u["a"])(c,o,s,!1,null,"8d96452e",null);i["default"]=l.exports},"67bb":function(t,i,e){},bea5:function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAHYElEQVR4Xu2dj5FcNQzGrQrgKiCpgKQCchWQVACpgFwFhArIVQCpgKQCSAUkFZCrgKQCMb8dv8X77lmWn+23u3fxzM7tzL4/9mdJnyTLPglHbKr6dQjh2xDCoxDCg/iXHvGdT9o+hhD40N7H7/z9ICKfjjUM2frFqvp9COFJ/ABcjwaQf/ERkbc9Huh9xiYAqiqA/RBCeBpCQOpGNqTxTQjhtYgA6tA2FEBVBbSXC+o4dFDJw1H5lyLyetQLuwMY7dpPIYQfjwjcHC+A/D2EcN3bXnYFUFVR0V9PCLglIK9EBBXv0roAqKowJsABYGv7EELIserE2q3vAECAnFh99fOaAYxS99tKcgCsHXvilogIbFpsqjq5PROb4wrVNibpeas0NgGoqkjdi8qev4v26E0vexTtLtKP3f2usj+vROSq8p795asAjB3+M3F8S+//HEJ4BXA91MZ6WTQnAMnEflXqWPwdyb9cM6HVAFaCNwHHLG8aLcR+AqIXyFUgVgEYbQ+S53GGiQhejJa4koRFiUT6iYBKjUlGEl22mIe5AYwz+o8DPKTu6RZRQAmN9PcYDcG+JbUGxIdejXEBWKG2EATgbaquXiDjOACxRDRudfYC+LeDMIg9Md4n31SVqIQw02rvReRxaTBFAFUV+0FoZjWcUq47m6aqkAtumNUI/Uw3zQQwOsl/FF6CM8qMnl1TVTSGIMBqzyxnOwtgZC9U12Lcs5O8OVIOScSeP855ExaASJ4V256NzSuphsMmEjU9W3rOIoAO1X0nIsShd6apKvG4xc74h7cStLcAjFSP6s7XJCaw8PMenKqrsnZG47jJzuT8RH5DlQ9ctCUAySD/bHRkcSbWdvyU7ovONpFWrt2y+UsA/msQx1sR6ZHzOyXcDvqiqjjaubCPlNvD9IYDAAu0juo+GhHb8t5TcYWi90EkklP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QWQMIsyuNIRS1xDmqfrsmKtdOWuj64KjnJpqy75xyeecbgAjK4NIFrbQad+d6+O6gFgxRlfVbuy3ABGECk4R8pKZ69webcT0loArDxZDvCQPHctTRWAiSR61HmKWjDU3Q8+LIGaHATJsq3npCW32qbvrgZwBYgpkCQih20Zi30j1TSdoOkBbkcYXps3n7hVAFa6OPN3Ir1sbMS770I2UdrYJE00USKIeX+Krool7U0AxhknbgYQj12c92V/fHEIgVSRy/bEcguSHS3HKWPvSOA2HQfaDGCiNt4T0krmKz1we37t0gHdpect/d7tZLkuACYqjTQCZC4VtmawPe8hJYXUddtC2xXAhGBgPuzRqQAJcNMJml3s7jSr3QFMxSVuF2V58FhAAhx1g8PO9hoKYKLaGHskEhVfQzY1agw5QAzE5t1UNdeBTQCcSSUgthxfvDSW/XHKraxaM1NcuzmAMzBxdAkPl/4dxlztUcelf4dBLXdXu1YD4n8P99ujgHASOwAAAABJRU5ErkJggg=="},fe3c:function(t,i,e){"use strict";var o=e("67bb"),s=e.n(o);s.a}}]);
//# sourceMappingURL=chunk-2d10bb15.fd2ee356.js.map