(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-b3afcd9e"],{"0b1d":function(t,e,n){},1502:function(t,e,n){"use strict";n.r(e);var a,i,r=n("2909"),s=(n("96cf"),n("1da1")),o=(n("93b0"),n("2bdd")),c=(n("3ec1"),n("7744")),u=n("bf1c");s={mixins:[n("9f53").a],components:{"van-cell":c.a,"van-list":o.a},created:(i=Object(s.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.onLoad(1);case 2:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)}),data:function(){return{list:[],loading:!1,finished:!1,total:0,parmValue:{page:1,size:10}}},methods:{onLoad:(a=Object(s.a)(regeneratorRuntime.mark((function t(e){var n,a,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e?this.parmValue.page=1:this.parmValue.page++,this.loading||1===this.parmValue.page&&(this.list=[]),t.next=4,u.a.list(this.parmValue);case 4:if(!(n=t.sent)||0!=n.code||!n.data){t.next=13;break}i=n.data.list,(a=this.list).push.apply(a,Object(r.a)(i)),this.total=n.data.count,0<this.list.length&&0<this.total&&this.total===this.list.length&&(this.finished=!0),0===this.total&&(this.finished=!0),t.next=20;break;case 13:if(n&&100<=n.code&&n.code<=104)return t.next=16,this.logout();t.next=18;break;case 16:t.next=20;break;case 18:this.show_title(n.msg),1!==this.parmValue.page&&this.parmValue.page--;case 20:case"end":return t.stop()}}),t,this)}))),function(t){return a.apply(this,arguments)}),goto:function(t){window.vm.$router.push({path:"/liveD",query:{id:t}})}}},n("82e2"),n=n("2877"),s=Object(n.a)(s,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"live",staticStyle:{"padding-top":"44px"}},[n("div",{staticClass:"live-title"},[n("van-nav-bar",{staticClass:"van-nav-bar-my-fixed",attrs:{title:"直播","left-arrow":""},on:{"click-left":t.onClickLeft}})],1),t.list&&0<t.list.length?n("van-list",{staticClass:"videoList",attrs:{finished:t.finished,"finished-text":"没有更多了"},on:{load:function(e){return t.onLoad(1)}},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},t._l(t.list,(function(e){return n("div",{key:e.id,staticClass:"videoItem",on:{click:function(n){return t.goto(e.id)}}},[n("div",{staticClass:"img"},[n("img",{attrs:{src:e.video_img,border:0,alt:""}})]),n("div",{staticClass:"videoName"},[t._v(t._s(e.video_name))]),n("div",{staticClass:"videoDesc"},[t._v(t._s(e.video_sn))])])})),0):n("van-empty",{attrs:{description:"暂无视频！"}})],1)}),[],!1,null,"8aa78c3a",null);e.default=s.exports},"1b69":function(t,e,n){"use strict";n("96cf");var a=n("1da1"),i=n("5daa"),r=n("5f87"),s={};window.ajaxTimeout=2e4,e.a=Object(a.a)(regeneratorRuntime.mark((function t(){var e,n,o,c,u,l,d,p=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=0<p.length&&void 0!==p[0]?p[0]:"",n=1<p.length&&void 0!==p[1]?p[1]:{},c=3<p.length&&void 0!==p[3]?p[3]:{},u=4<p.length&&void 0!==p[4]?p[4]:s,l=5<p.length?p[5]:void 0,o=(o=2<p.length&&void 0!==p[2]?p[2]:"GET").toLowerCase(),d={method:o,baseURL:"",url:i.a.baseURL+e,data:n,params:c,processData:!0,timeout:window.ajaxTimeout,headers:u,onUploadProgress:l},l&&"function"==typeof l&&(d.onUploadProgress=l),axios.interceptors.request.use((function(t){return t.data.token||(t.data.token=Object(r.d)()),t}),(function(t){return Promise.reject(new Error("服务器异常，请联系管理员！"))})),axios.interceptors.response.use(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return 200===e.status&&100<=(n=e.data.code)&&n<=104&&Object(r.e)(),t.abrupt("return",e);case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),(function(t){return Promise.reject(t.response.data)})),t.abrupt("return",new Promise((function(t,e){axios(d).then((function(e){t(e.data)})).catch((function(t){t.response&&t.response.data?e(t.response.data):e(t)}))})));case 12:case"end":return t.stop()}}),t)})))},"82e2":function(t,e,n){"use strict";n("0b1d")},"9f53":function(t,e,n){"use strict";n("433b");var a,i=n("d399");n("96cf"),n=n("1da1");e.a={methods:{logout:(a=Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("/login"!==this.$route.path)return t.next=3,this.$store.dispatch("user/logout");t.next=4;break;case 3:this.$router.push("/login");case 4:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)}),show_title:function(t){Object(i.a)({message:t})}}}},bf1c:function(t,e,n){"use strict";var a=n("1b69");e.a={list:function(t,e){return Object(a.a)("home/obtainlist",t,"post",e)},detail:function(t,e){return Object(a.a)("home/preview",t,"post",e)}}}}]);