(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7198fd36"],{"08cb":function(e,t,c){"use strict";c("b702")},"25cc":function(e,t,c){e.exports=c.p+"assets/img/carousel_default.b0e9bfe4.jpg"},"2cb7":function(e,t,c){"use strict";c("ee89")},"59ab":function(e,t,c){"use strict";var o=c("f2bf");const l={class:"img_container"},i={class:"header_img"},r=["src"];function s(e,t,c,s,n,a){return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",l,[Object(o["createElementVNode"])("div",i,[Object(o["createElementVNode"])("img",{src:a.useImgUrl,alt:""},null,8,r)])])}var n={name:"top-imgview",props:{imgUrl:{required:!0,type:String,default:""}},computed:{useImgUrl(){return this.imgUrl||""==this.imgUrl?this.imgUrl:c("25cc")}}},a=(c("2cb7"),c("6b0d")),d=c.n(a);const u=d()(n,[["render",s],["__scopeId","data-v-8a3ecbf4"]]);t["a"]=u},"86f0":function(e,t,c){"use strict";var o=c("f2bf");const l=e=>(Object(o["pushScopeId"])("data-v-31841d62"),e=e(),Object(o["popScopeId"])(),e),i=l(()=>Object(o["createElementVNode"])("div",{class:"image-slot"}," 图片加载失败 ",-1)),r={class:"cell__txt"},s=["title"],n={class:"cell__txt-title-container"},a=["title"],d=["title"];function u(e,t,c,l,u,p){const h=Object(o["resolveComponent"])("el-image"),m=Object(o["resolveComponent"])("el-card");return Object(o["openBlock"])(),Object(o["createBlock"])(m,{"body-style":{padding:"0px"}},{default:Object(o["withCtx"])(()=>[Object(o["createVNode"])(h,{src:c.imageUrl,fit:"cover",class:"image"},{error:Object(o["withCtx"])(()=>[i]),_:1},8,["src"]),Object(o["createElementVNode"])("div",r,[Object(o["createElementVNode"])("span",{class:"text-no-wrap top",title:c.titleText},Object(o["toDisplayString"])(c.titleText),9,s),Object(o["createElementVNode"])("div",n,[Object(o["createElementVNode"])("h3",{class:"text-no-wrap cell__txt-title",title:c.peopleText},"主讲人:"+Object(o["toDisplayString"])(c.peopleText),9,a),Object(o["createElementVNode"])("h3",{class:"text-no-wrap cell__txt-people horizontal-right",title:c.message},Object(o["toDisplayString"])(c.message),9,d)])])]),_:1})}var p={name:"cell-card-title-message",props:{imageUrl:String,titleText:String,peopleText:String,message:String},computed:{}},h=(c("08cb"),c("6b0d")),m=c.n(h);const g=m()(p,[["render",u],["__scopeId","data-v-31841d62"]]);t["a"]=g},"87fb":function(e,t,c){"use strict";c.r(t);var o=c("f2bf");const l=e=>(Object(o["pushScopeId"])("data-v-152e1542"),e=e(),Object(o["popScopeId"])(),e),i={class:"fill-parent-height flex-container flex-direction-column"},r=["src"],s=l(()=>Object(o["createElementVNode"])("span",null,"全部",-1)),n={key:1,class:"content__padding_left_right flex-fill-main"};function a(e,t,l,a,d,u){const p=Object(o["resolveComponent"])("el-carousel-item"),h=Object(o["resolveComponent"])("el-carousel"),m=Object(o["resolveComponent"])("topimgview"),g=Object(o["resolveComponent"])("el-menu-item"),b=Object(o["resolveComponent"])("el-menu"),j=Object(o["resolveComponent"])("el-aside"),O=Object(o["resolveComponent"])("cell-view"),f=Object(o["resolveComponent"])("grid-list"),y=Object(o["resolveComponent"])("el-main"),k=Object(o["resolveComponent"])("el-container"),v=Object(o["resolveDirective"])("loading");return Object(o["withDirectives"])((Object(o["openBlock"])(),Object(o["createElementBlock"])("div",i,[Object(o["createElementVNode"])("header",null,[-1==d.tagId&&d.topUrlArr.length>0?(Object(o["openBlock"])(),Object(o["createBlock"])(h,{key:0,interval:7e3},{default:Object(o["withCtx"])(()=>[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(d.topUrlArr,(e,t)=>(Object(o["openBlock"])(),Object(o["createBlock"])(p,{key:t},{default:Object(o["withCtx"])(()=>[Object(o["createElementVNode"])("img",{style:{"object-fit":"cover"},src:e.url||c("a615"),alt:""},null,8,r)]),_:2},1024))),128))]),_:1})):(Object(o["openBlock"])(),Object(o["createBlock"])(m,{key:1,imgUrl:d.topImgUrl||c("a615")},null,8,["imgUrl"]))]),1==d.type&&null==d.keyword?Object(o["withDirectives"])((Object(o["openBlock"])(),Object(o["createBlock"])(k,{key:0,class:"list-container fill-parent-height"},{default:Object(o["withCtx"])(()=>[Object(o["createVNode"])(j,{class:"list-category fill-parent-height"},{default:Object(o["withCtx"])(()=>[Object(o["createVNode"])(b,{"default-active":d.navIndex,onSelect:u.select},{default:Object(o["withCtx"])(()=>[d.categoryList.length>0?(Object(o["openBlock"])(),Object(o["createBlock"])(g,{key:0,index:"-1"},{default:Object(o["withCtx"])(()=>[s]),_:1})):Object(o["createCommentVNode"])("",!0),(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(d.categoryList,(e,t)=>(Object(o["openBlock"])(),Object(o["createBlock"])(g,{key:t,index:t},{default:Object(o["withCtx"])(()=>[Object(o["createElementVNode"])("span",null,Object(o["toDisplayString"])(e.tagName),1)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active","onSelect"])]),_:1}),Object(o["createVNode"])(y,{class:"flex-fill-main"},{default:Object(o["withCtx"])(()=>[Object(o["createVNode"])(f,{column:d.column,"data-list":d.resourceList,onHandleClick:u.handleItemClick,"gap-width":30,"gap-height":30},{default:Object(o["withCtx"])(({data:e,index:t})=>[Object(o["createVNode"])(O,{imageUrl:e.image,titleText:e.title,peopleText:e.presenter,message:e.msg},null,8,["imageUrl","titleText","peopleText","message"])]),_:1},8,["column","data-list","onHandleClick"])]),_:1})]),_:1})),[[v,d.loading]]):(Object(o["openBlock"])(),Object(o["createElementBlock"])("main",n,[Object(o["createVNode"])(f,{column:d.column,"data-list":d.resourceList,onHandleClick:u.handleItemClick,"gap-width":30,"gap-height":30},{default:Object(o["withCtx"])(({data:e,index:t})=>[Object(o["createVNode"])(O,{imageUrl:e.image,titleText:e.title,peopleText:e.presenter,message:e.msg},null,8,["imageUrl","titleText","peopleText","message"])]),_:1},8,["column","data-list","onHandleClick"])]))])),[[v,d.loading]])}c("7864");var d=c("ff79"),u=c("86f0"),p=c("59ab"),h=c("ed08");const m=c("c1df");var g={name:"course-list-page",inject:["$global","$api","$message"],components:{topimgview:p["a"],gridList:d["a"],cellView:u["a"]},data(){return{column:3,loading:!1,type:1,keyword:null,resourceList:[],navIndex:-1,tagId:-1,categoryList:[],topImgUrl:null,topUrlArr:[]}},created(){document.body.clientWidth>1600?this.column=4:this.column=3,window.onresize=()=>{document.body.clientWidth>1600?this.column=4:this.column=3},this.keyword=this.$route.query.search,this.type=this.$route.query.type||1,this.tagId=this.$route.query.tagId||-1,this.requestCourseList()},beforeRouteUpdate(e,t,c){this.keyword=e.query.search,this.type=e.query.type||1,this.tagId=e.query.tagId||-1,this.requestCourseList(),c()},methods:{handleItemClick(e,t){console.log("handleItemClick ",e,t),t>=0&&t{const t=e.data;t&&0===t.code&&(this.resourceList.splice(0,this.resourceList.length,...t.data),this.resourceList.forEach(e=>{if(1===e.type)e.msg="时长:"+Object(h["a"])(e.totalDuration,1);else if(2===e.type){const t=1e3*e.startTime,c=new Date(t);e.msg="开始时间:"+m(c).format("YYYY-MM-DD HH:mm:ss")}})),this.loading=!1}).catch(e=>{console.error(e),this.loading=!1}):(this.requestCourseCategoryNew(),this.requestCourseListNew(this.tagId))},requestCourseCategoryNew(){this.$api.courses.getCourseCategoryList({}).then(e=>{const t=e.data;t&&0===t.code&&(console.log(t),this.categoryList=t.data,this.topUrlArr=[],this.categoryList.map((e,t)=>{console.log(t,e),e.id==this.tagId&&(this.navIndex=t),e.url&&this.topUrlArr.push(e)}),this.topImgUrl=this.categoryList[this.navIndex].url||null)}).catch(e=>{console.error(e)})},requestCourseListNew(e){this.$api.courses.getCourseList({},this.type,e).then(e=>{const t=e.data;t&&0===t.code&&(this.resourceList.splice(0,this.resourceList.length,...t.data),this.resourceList.forEach(e=>{if(1===e.type)e.msg="时长:"+Object(h["a"])(e.totalDuration,1);else if(2===e.type){const t=1e3*e.startTime,c=new Date(t);e.msg="开始时间:"+m(c).format("YYYY-MM-DD HH:mm:ss")}})),this.loading=!1}).catch(e=>{console.error(e),this.loading=!1})},select(e,t,c,o){console.log("select:",e,this.tagId),-1==e?(this.tagId=-1,this.topImgUrl=null):(this.tagId=this.categoryList[e].id,this.topImgUrl=this.categoryList[e].url||null),this.$router.replace({query:{type:this.$route.query.type,tagId:this.tagId}})}}},b=(c("c06a"),c("6b0d")),j=c.n(b);const O=j()(g,[["render",a],["__scopeId","data-v-152e1542"]]);t["default"]=O},"8f88":function(e,t,c){"use strict";c("fccd")},"97e0":function(e,t,c){},a615:function(e,t,c){e.exports=c.p+"assets/img/top_default.3a0edc79.jpg"},b702:function(e,t,c){},c06a:function(e,t,c){"use strict";c("97e0")},ed08:function(e,t,c){"use strict";function o(e,t){if(e<0||1!==t&&1e3!==t)return"";const c=parseInt(e/(60*t*60*24)),o=parseInt(e%(60*t*60*24)/(60*t*60)),l=parseInt(e%(60*t*60)/(60*t));(e%(60*t)/t).toFixed(0);let i="";return c>0&&(i+=c+"天"),o>0&&(i+=o+"小时"),l>0&&(i+=l+"分"),i}function l(){for(var e=navigator.userAgent,t=new Array("Android","iPhone","SymbianOS","iPad","iPod"),c=!1,o=0;o0){c=!0;break}return c}c.d(t,"a",(function(){return o})),c.d(t,"b",(function(){return l}))},ee89:function(e,t,c){},fccd:function(e,t,c){},ff79:function(e,t,c){"use strict";var o=c("f2bf");const l=e=>(Object(o["pushScopeId"])("data-v-3478dc72"),e=e(),Object(o["popScopeId"])(),e),i={ref:"list",class:"grid-list"},r={key:0,class:"clearfix"},s={class:"grid-list__main fill-parent-height"},n={key:0,class:"grid-list__content"},a=["onClick"],d={key:1,class:"grid_list__no_content fill-parent-height"},u=l(()=>Object(o["createElementVNode"])("div",{class:"horizontal-center vertical-center"}," 暂无数据 ",-1)),p={key:1,class:"clearfix"};function h(e,t,c,l,h,m){const g=Object(o["resolveComponent"])("el-col"),b=Object(o["resolveComponent"])("el-row");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",i,[c.header?(Object(o["openBlock"])(),Object(o["createElementBlock"])("header",r,[Object(o["renderSlot"])(e.$slots,"header",{},void 0,!0)])):Object(o["createCommentVNode"])("",!0),Object(o["createElementVNode"])("main",s,[m.rowList&&m.rowList.length>0?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",n,[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(m.rowList,(t,l)=>(Object(o["openBlock"])(),Object(o["createBlock"])(b,{key:l,gutter:c.gapWidth,style:Object(o["normalizeStyle"])({"margin-bottom":c.gapHeight+"px"})},{default:Object(o["withCtx"])(()=>[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(t,(t,i)=>(Object(o["openBlock"])(),Object(o["createBlock"])(g,{span:Math.floor(24/c.column),key:i},{default:Object(o["withCtx"])(()=>[Object(o["createElementVNode"])("div",{class:"grid-list__col_item",onClick:e=>m.handleClick(t,l*c.column+i)},[Object(o["renderSlot"])(e.$slots,"default",{data:t,index:l*c.column+i},void 0,!0)],8,a)]),_:2},1032,["span"]))),128))]),_:2},1032,["gutter","style"]))),128))])):(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",d,[Object(o["renderSlot"])(e.$slots,"empty",{},()=>[u],!0)]))]),c.footer?(Object(o["openBlock"])(),Object(o["createElementBlock"])("footer",p,[Object(o["renderSlot"])(e.$slots,"footer",{},void 0,!0)])):Object(o["createCommentVNode"])("",!0)],512)}var m={name:"grid-list",computed:{rowList(){const e=[];this.dataList&&this.dataList.length>0&&e.push(...this.dataList),this.row>0&&this.dataList.length>this.column*this.row&&e.splice(this.column*this.row);let t=Math.floor(e.length/this.column);e.length%this.column>0&&t++;const c=[];for(let o=0;o=e.length)break;t.push(e[o*this.column+c])}c.push(t)}return c}},methods:{handleClick(e,t){console.log(`item = ${JSON.stringify(e)}, index = ${t}`),this.$emit("handle-click",e,t)}},props:{column:{type:Number,default:4},gapHeight:{type:Number,default:0},gapWidth:{type:Number,default:0},dataList:Array,header:{type:Boolean,default:!1},footer:{type:Boolean,default:!1},row:{type:Number,default:0}}},g=(c("8f88"),c("6b0d")),b=c.n(g);const j=b()(m,[["render",h],["__scopeId","data-v-3478dc72"]]);t["a"]=j}}]);