(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-66eae29a"],{1107:function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return s}));var a=n("b775");function i(t){return Object(a["a"])({url:"/app/train/queryTrainPlanPage",method:"get",params:t})}function r(t){return Object(a["a"])({url:"/app/train/queryCourseByTrainingPlanId",method:"get",params:t})}function s(t){return Object(a["a"])({url:"/app/train/queryQuestionBankByTrainingPlanId",method:"get",params:t})}},"7dfe":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"container"},[n("Header",{attrs:{title:"课程列表"}}),n("van-pull-refresh",{staticStyle:{height:"calc(100% - 50px)"},on:{refresh:t.onRefresh},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},[n("div",{staticClass:"main"},[n("ul",t._l(t.list,(function(e,a){return n("van-swipe-cell",{key:a},[n("li",{class:[10===e.dangerStatus?"itemLi":"itemLi1"],on:{click:function(n){return t.seeItem(e)}}},[n("div",{staticClass:"itemTop"},[n("h4",[t._v(t._s(e.dangerName))])]),n("div",{staticClass:"cont"},[e.coverPhoto?n("img",{staticClass:"img",attrs:{src:e.coverPhoto,alt:""}}):n("div",{staticClass:"none_box img"},[t._v("暂无封面")]),n("div",{staticClass:"text"},[n("p",[t._v(" 标题："),n("span",[t._v(t._s(e.coursewareName))])]),n("p",[t._v(" 作者："),n("span",[t._v(t._s(e.categoriesAuthor))])]),n("p",[t._v(" 主讲老师："),n("span",[t._v(t._s(e.categoriesLecturer))])])])])])])})),1)])])],1)},i=[],r=(n("9a83"),n("f564")),s=(n("96cf"),n("1da1")),c=n("5530"),u=n("2f62"),o=n("1107"),l={name:"TrainList",data:function(){return{isLoading:!1,queryParams:{pageNo:1,pageSize:10},list:[]}},computed:Object(c["a"])({},Object(u["b"])("baseUrl",["baseUrl"])),mounted:function(){this.initList()},methods:{initList:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["a"])({trainingPlanId:t.$route.query.id||""});case 2:if(n=e.sent,a=n.data,200===a.code){e.next=6;break}return e.abrupt("return",Object(r["a"])({type:"danger",message:a.msg}));case 6:t.list=a.data;case 7:case"end":return e.stop()}}),e)})))()},onRefresh:function(){this.initList(),this.isLoading=!1},seeItem:function(t){this.$router.push({path:"/courseDetails",query:{item:t}})}}},d=l,p=(n("e308"),n("2877")),f=Object(p["a"])(d,a,i,!1,null,"51962cda",null);e["default"]=f.exports},c067:function(t,e,n){},e308:function(t,e,n){"use strict";var a=n("c067"),i=n.n(a);i.a}}]);