(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-article-index"],{"13f7":function(t,a,i){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var e=0,n=!0,s=0,c="tabs-border-active",r={data:function(){return{pageLoad:!1,pageData:{},winHeight:600,defaultActive:"tabs-border-active"}},onLoad:function(t){var a=uni.getSystemInfoSync();this.winHeight=a.windowHeight-50,uni.setNavigationBarTitle({title:"福鼎头条新闻"}),this.getPage()},onReachBottom:function(){this.getList()},onPullDownRefresh:function(){this.refresh()},methods:{getPage:function(){var t=this;uni.request({url:t.app.apiHost+"?m=article&ajax=1",success:function(a){n=!1,t.pageLoad=!0,t.pageData=a.data.data,e=a.data.data.per_page}})},setCat:function(t){s=t,n=!0,e=0,this.defaultActive=0==s?c:"";var a=this.pageData.catlist;for(var i in a)a[i].catid==s?a[i].isactive=1:a[i].isactive=0;this.pageData.catlist=a,this.getList()},getList:function(){var t=this;if(!n&&0==e)return!1;uni.request({url:t.app.apiHost+"?m=article&ajax=1",data:{per_page:e,catid:s},success:function(a){a.data.error||(n?(t.pageData.list=a.data.data.list,n=!1):t.pageData.list=t.app.json_add(t.pageData.list,a.data.data.list),e=a.data.data.per_page)}})},goArticle:function(t){uni.navigateTo({url:"../article/show?id="+t})},refresh:function(){this.getPage(),setTimeout((function(){uni.stopPullDownRefresh()}),1e3)},loadMore:function(){this.getList()}}};a.default=r},"1b23":function(t,a,i){"use strict";i.r(a);var e=i("13f7"),n=i.n(e);for(var s in e)"default"!==s&&function(t){i.d(a,t,(function(){return e[t]}))}(s);a["default"]=n.a},"82ad":function(t,a,i){"use strict";i.r(a);var e=i("df9d"),n=i("1b23");for(var s in n)"default"!==s&&function(t){i.d(a,t,(function(){return n[t]}))}(s);var c,r=i("f0c5"),u=Object(r["a"])(n["default"],e["b"],e["c"],!1,null,"f910170a",null,!1,e["a"],c);a["default"]=u.exports},df9d:function(t,a,i){"use strict";var e;i.d(a,"b",(function(){return n})),i.d(a,"c",(function(){return s})),i.d(a,"a",(function(){return e}));var n=function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("v-uni-view",[t.pageLoad?t._e():i("v-uni-view",{},[i("page-loading")],1),t.pageLoad?i("v-uni-view",[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-inner ",class:t.defaultActive,on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.setCat(0)}}},[t._v("全部")]),t._l(t.pageData.catlist,(function(a,e){return i("v-uni-view",{key:e,staticClass:"tabs-border-item-inner",class:{"tabs-border-active":a.isactive},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.setCat(a.catid)}}},[t._v(t._s(a.cname))])}))],2)],1),i("v-uni-view",{staticClass:"main-body"},[i("v-uni-view",{staticClass:"flexlist"},t._l(t.pageData.list,(function(a,e){return i("v-uni-view",{key:e,staticClass:"flexlist-item pdb-10",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goArticle(a.id)}}},[""!=a.imgurl?i("v-uni-image",{staticClass:"flexlist-img",attrs:{src:a.imgurl+".100x100.jpg"}}):t._e(),i("v-uni-view",{staticClass:"flex-1"},[i("v-uni-view",{staticClass:"flexlist-title f16"},[t._v(t._s(a.title))]),i("v-uni-view",{staticClass:"flexlist-desc cl2 f14"},[t._v(t._s(a.description))])],1)],1)})),1)],1)],1):t._e()],1)},s=[]}}]);