(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-article-list"],{"2e8f":function(t,a,i){var e=i("24fb");a=e(!1),a.push([t.i,".tabs-border-item[data-v-2175dd92]{width:60px}",""]),t.exports=a},"45de":function(t,a,i){"use strict";i.r(a);var e=i("f4cf"),s=i("c788");for(var n in s)"default"!==n&&function(t){i.d(a,t,(function(){return s[t]}))}(n);i("ef12");var c,r=i("f0c5"),l=Object(r["a"])(s["default"],e["b"],e["c"],!1,null,"2175dd92",null,!1,e["a"],c);a["default"]=l.exports},"9f35":function(t,a,i){var e=i("2e8f");"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var s=i("4f06").default;s("03fbd034",e,!0,{sourceMap:!1,shadowMode:!1})},c788:function(t,a,i){"use strict";i.r(a);var e=i("ca80"),s=i.n(e);for(var n in e)"default"!==n&&function(t){i.d(a,t,(function(){return e[t]}))}(n);a["default"]=s.a},ca80:function(t,a,i){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var e=!1,s={data:function(){return{pageData:{},pageLoad:!1,type:"",per_page:0,catid:0,scatid:0}},onLoad:function(t){this.catid=t.catid,this.scatid=t.catid,this.getPage()},methods:{setCatid:function(t){this.catid=t,e=!0,this.per_page=0,this.getList()},goArticle:function(t){uni.navigateTo({url:"show?id="+t})},getPage:function(){var t=this;t.app.get({url:t.app.apiHost+"/index.php?m=article&a=list&ajax=1&catid="+this.catid,dataType:"json",success:function(a){t.pageData=a.data,t.pageLoad=!0,t.per_page=a.data.per_page,e=!1,uni.setNavigationBarTitle({title:a.data.cat.cname})}})},getList:function(){var t=this;if(0==t.per_page&&!e)return skyToast("已经到底了"),!1;t.app.get({url:t.app.apiHost+"/index.php?m=article&a=list&ajax=1&catid="+this.catid,data:{type:t.type,per_page:t.per_page,catid:this.catid},dataType:"json",success:function(a){if(t.per_page=a.data.per_page,e)t.pageData.list=a.data.list;else{for(var i=t.pageData.list,s=0;s<a.data.list.length;s++)i.push(a.data.list[s]);t.pageData.list=i}e=!1}})}}};a.default=s},ef12:function(t,a,i){"use strict";var e=i("9f35"),s=i.n(e);s.a},f4cf:function(t,a,i){"use strict";var e;i.d(a,"b",(function(){return s})),i.d(a,"c",(function(){return n})),i.d(a,"a",(function(){return e}));var s=function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("v-uni-view",[i("v-uni-view",{staticClass:"header"},[i("v-uni-view",{staticClass:"header-back"}),i("v-uni-view",{staticClass:"header-title"},[t._v("文章")])],1),i("v-uni-view",{staticClass:"header-row"}),t.pageLoad?i("v-uni-view",{staticClass:"main-body"},[i("v-uni-scroll-view",{staticClass:"bg-fff",attrs:{"scroll-x":"true"}},[i("v-uni-view",{staticClass:"tabs-border"},[i("v-uni-view",{staticClass:"tabs-border-item",class:t.catid==t.scatid?"tabs-border-active":"",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.setCatid(t.scatid)}}},[t._v("全部")]),t._l(t.pageData.catlist,(function(a,e){return i("v-uni-view",{key:e,staticClass:"tabs-border-item",class:t.catid==a.catid?"tabs-border-active":"",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.setCatid(a.catid)}}},[t._v(t._s(a.cname))])}))],2)],1),i("v-uni-view",{staticClass:"sglist"},t._l(t.pageData.list,(function(a,e){return i("v-uni-view",{key:e,staticClass:"sglist-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goArticle(a.id)}}},[a.imgurl?i("v-uni-view",{staticClass:"sglist-imgbox"},[i("v-uni-image",{staticClass:"sglist-img",attrs:{mode:"widthFix",src:a.imgurl+".middle.jpg"}})],1):t._e(),i("v-uni-view",{staticClass:"sglist-title"},[t._v(t._s(a.title))]),i("v-uni-view",{staticClass:"sglist-desc"},[t._v(t._s(a.description))]),i("v-uni-view",{staticClass:"flex flex-jc-bettwen pd-10"},[i("v-uni-view",{staticClass:"btn-love btn-love-small mgr-5"},[t._v(t._s(a.love_num))]),i("v-uni-view",{staticClass:"btn-fav btn-fav-small mgr-5"},[t._v(t._s(a.fav_num))]),i("v-uni-view",{staticClass:"btn-comment btn-comment-small"},[t._v(t._s(a.comment_num))])],1)],1)})),1)],1):t._e()],1)},n=[]}}]);