(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c1cc87bc"],{"0142":function(t,e,a){"use strict";a("e1c0")},"25a9":function(t,e,a){"use strict";a("edf7")},cc70:function(t,e,a){"use strict";a.r(e);var c=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"home"},[a("HeaderWrap"),a("div",{staticClass:"nav-page-header",attrs:{id:"level_two_top_nav"}},[a("div",{staticClass:"left-div"},[a("a",{on:{click:t.back}},[a("span",{staticClass:"lable"},[a("a-icon",{attrs:{type:"left"}}),t._v("返回")],1)])])]),a("div",{staticClass:"container"},[a("a-card",{staticClass:"big-card card-no-border-top",staticStyle:{"margin-top":"106px"},attrs:{bordered:!1}},[a("a-row",{attrs:{gutter:16}},[a("a-col",{attrs:{span:16}},[a("div",[t.lectureData&&!t.lectureData.iframe_url?a("mVideo",{attrs:{src:t.lectureData&&t.lectureData.video_path,title:t.lectureData&&t.lectureData.lecture_name},on:{back:function(e){t.videoVisible=!1}}}):t._e(),a("div",{domProps:{innerHTML:t._s(t.lectureData&&t.lectureData.iframe_url)}})],1)]),a("a-col",{attrs:{span:8}},[a("div",[a("span",{staticClass:"lecture-title"},[t._v(" "+t._s(t.lectureData&&t.lectureData.lecture_name)+" ")]),a("div",{staticStyle:{"margin-top":"20px"}},[t._v(" "+t._s(t.lectureData&&t.lectureData.lecture_excerpt)+" ")]),a("div",{staticStyle:{"margin-top":"20px"}},[a("a",{attrs:{target:"_blank",href:"http://ceshi.kidssteam.cn/"}},[a("a-button",{attrs:{type:"primary"}},[t._v("写作业")])],1),a("a",{attrs:{target:"_blank",href:"http://ceshi.kidssteam.cn/"}},[a("a-button",{staticStyle:{"margin-left":"5px"}},[t._v("重置作业")])],1)],1),t.lectureData.note_file?a("div",{staticStyle:{"margin-top":"20px"}},[a("h1",[t._v("笔记")]),a("a",{attrs:{download:"",href:t.lectureData.note_file}},[a("a-button",[t._v(" 下载笔记 ")])],1)]):t._e()])])],1)],1)],1),a("FooterWrap")],1)},i=[],n=a("c1d6"),r=a("be4b"),o=a("cabd"),l=a("c505"),s=a("d242"),d={name:"Home",components:{HeaderWrap:n["a"],FooterWrap:r["a"],modal:l["a"],mVideo:s["a"]},data:function(){return{lectureId:null,modalVisible:!1,videoVisible:!1,lectureData:null}},created:function(){},mounted:function(){this.lectureId=this.$route.params.id,this.handleGetLectureById()},methods:{back:function(){this.$router.go(-1)},handleCreateHomework:function(t){var e=this;Object(o["b"])({lecture_id:this.lectureData.id,reset:t}).then((function(t){1==t.data.code?"python"==e.lectureData.lecture_type?window.open("http://ceshi.kidssteam.cn/","_blank"):window.open("http://ceshi.kidssteam.cn/","_blank"):e.$message.warning(t.data.msg),e.$loading.hide()})).catch((function(t){e.$loading.hide()}))},openCourse:function(t){0!=t.lecture_status?(this.lectureData=t,this.modalVisible=!0):this.$message.warning("该课时暂未开放！")},handleGetLectureById:function(){var t=this;this.$loading.show(),Object(o["g"])({id:this.lectureId}).then((function(e){t.lectureData=e.data.data,console.log(e.data.data),t.$loading.hide()})).catch((function(e){t.$loading.hide()}))}}},u=d,p=(a("0142"),a("25a9"),a("5d22")),h=Object(p["a"])(u,c,i,!1,null,"03ca2c84",null);e["default"]=h.exports},e1c0:function(t,e,a){},edf7:function(t,e,a){}}]);