webpackJsonp([36],{"00zk":function(t,s){},kex0:function(t,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var i={name:"main-keep-alive",data:function(){return{res:[],loading:!1,finished:!1,refreshing:!1,isShow:!1,page:1}},methods:{goBack:function(){if(this.$router.isBack=!0,window.history.length<=1)return this.$router.push({path:"/"}),!1;this.$router.go(-1)},goTo:function(t){this.$router.push(t)},getMyClass:function(){var t=this;this.loading=!0;var s={uid:this.$store.state.userInfo.userid,page:this.page};this.ajax.get(this.$store.state.api+"findMyClass",s).then(function(s){0==s.data[0].length?t.isShow=!0:t.isShow=!1,t.page++,t.loading=!1,t.refreshing=!1,t.finished=!1,s.data[0].filter(function(t){t.count=JSON.parse(t.chapters).midia.split(",").length,t.imgUrl=JSON.parse(t.chapters).poster.split(",")[0]}),t.res=s.data[0],console.log(s.data)}).catch(function(s){t.loading=!1,t.refreshing=!1,console.error(s)})},onRefresh:function(){this.page=1,this.getMyClass()},onLoad:function(){var t=this,s={uid:this.$store.state.userInfo.userid,page:this.page};this.ajax.get(this.$store.state.api+"findMyClass",s).then(function(s){t.loading=!1,t.refreshing=!1,s.data[0]&&s.data[0].filter(function(t){t.count=JSON.parse(t.chapters).midia.split(",").length,t.imgUrl=JSON.parse(t.chapters).poster.split(",")[0]}),t.res=t.res.concat(s.data[0]);var e=t.res.length?t.res[0].num:0;t.res.length