require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/extension/news_list/index"],{"0a15":function(t,e,i){"use strict";i.r(e);var n=i("3f7b"),r=i("3107");for(var a in r)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(a);i("f38c");var c=i("828b"),s=Object(c["a"])(r["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=s.exports},"210d":function(t,e,i){"use strict";(function(t,e){var n=i("47a9");i("f076");n(i("3240"));var r=n(i("0a15"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(r.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},3107:function(t,e,i){"use strict";i.r(e);var n=i("38de"),r=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},"38de":function(t,e,i){"use strict";(function(t){var n=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(i("7ca3")),a=i("360a"),c=n(i("89cc")),s=i("4d38"),o=i("8f59");function u(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}var l={components:{emptyPage:function(){i.e("components/emptyPage").then(function(){return resolve(i("398a"))}.bind(null,i)).catch(i.oe)}},mixins:[c.default],computed:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?u(Object(i),!0).forEach((function(e){(0,r.default)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):u(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},(0,o.mapGetters)(["uid"])),data:function(){return{imgUrls:[],articleList:[],navList:[],active:0,page:1,limit:10,status:!1,scrollLeft:0,imgHost:s.HTTP_REQUEST_URL,grid:!0}},onLoad:function(){this.getArticleHot(),this.getArticleBanner(),this.getArticleCate()},onReachBottom:function(){this.getCidArticle()},onPageScroll:function(e){t.$emit("scroll")},onShareAppMessage:function(){return{title:"资讯",path:"/pages/extension/news_list/index?spid="+this.uid}},onShareTimeline:function(){return{title:"资讯",path:"/pages/extension/news_list/index?spid="+this.uid}},methods:{getDetail:function(e){t.navigateTo({url:"/pages/extension/news_details/index?id="+e})},checkGrid:function(){this.grid=!this.grid},getArticleHot:function(){var t=this;(0,a.getArticleHotList)().then((function(e){t.$set(t,"articleList",e.data)}))},getArticleBanner:function(){var t=this;(0,a.getArticleBannerList)().then((function(e){t.imgUrls=e.data}))},getCidArticle:function(){var t=this;if(0!=t.active){t.articleList;t.status||(0,a.getArticleList)(t.active,{page:t.page,limit:t.limit}).then((function(e){var i=e.data.length;t.articleList=t.articleList.concat(e.data),t.page++,t.status=t.limit>i}))}},getArticleCate:function(){var t=this;(0,a.getArticleCategoryList)().then((function(e){t.$set(t,"navList",e.data)}))},tabSelect:function(t,e){this.active=t,this.scrollLeft=60*e,0==this.active?this.getArticleHot():(this.$set(this,"articleList",[]),this.page=1,this.status=!1,this.getCidArticle())}}};e.default=l}).call(this,i("df3c")["default"])},"3f7b":function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var n={easyLoadimage:function(){return i.e("components/easy-loadimage/easy-loadimage").then(i.bind(null,"94dd"))}},r=function(){var t=this.$createElement,e=(this._self._c,this.imgUrls.length),i=this.articleList.length;this.$mp.data=Object.assign({},{$root:{g0:e,g1:i}})},a=[]},"93e5":function(t,e,i){},f38c:function(t,e,i){"use strict";var n=i("93e5"),r=i.n(n);r.a}},[["210d","common/runtime","common/vendor"]]]);