(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/packageB/news/new_list"],{359:function(e,t,n){"use strict";(function(e,t){var o=n(4);n(26);o(n(25));var i=o(n(360));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n(1)["default"],n(2)["createPage"])},360:function(e,t,n){"use strict";n.r(t);var o=n(361),i=n(363);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);var s,a=n(42),c=Object(a["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],s);c.options.__file="pages/packageB/news/new_list.vue",t["default"]=c.exports},361:function(e,t,n){"use strict";n.r(t);var o=n(362);n.d(t,"render",(function(){return o["render"]})),n.d(t,"staticRenderFns",(function(){return o["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return o["recyclableRender"]})),n.d(t,"components",(function(){return o["components"]}))},362:function(e,t,n){"use strict";var o;n.r(t),n.d(t,"render",(function(){return i})),n.d(t,"staticRenderFns",(function(){return s})),n.d(t,"recyclableRender",(function(){return r})),n.d(t,"components",(function(){return o}));try{o={tnNavBar:function(){return Promise.all([n.e("common/vendor"),n.e("tuniao-ui/components/tn-nav-bar/tn-nav-bar")]).then(n.bind(null,394))},tnTabs:function(){return Promise.all([n.e("common/vendor"),n.e("tuniao-ui/components/tn-tabs/tn-tabs")]).then(n.bind(null,416))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范，文档：https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范，需手动引入，并在 components 中注册该组件")}var i=function(){var e=this,t=e.$createElement,n=(e._self._c,e.news_list.length),o=e.__map(e.news_list,(function(t,n){var o=e.__get_orig(t),i=e.formatTime(t.showtime);return{$orig:o,m0:i}}));e.$mp.data=Object.assign({},{$root:{g0:n,l0:o}})},r=!1,s=[];i._withStripped=!0},363:function(e,t,n){"use strict";n.r(t);var o=n(364),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);t["default"]=i.a},364:function(e,t,n){"use strict";(function(e){var o=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(5)),r=o(n(18)),s=n(33),a=o(n(30)),c={data:function(){return{current:0,goryList:[],news_list:[],page:1,size:10,apiImgUrl:this.$store.state.imgUrl}},onLoad:function(){this.getNewsGoryList()},onReachBottom:function(){this.page+=1,this.getNewsList()},methods:{change:function(e){this.current=e;var t=this.goryList[e];this.gory_id=t.id,this.type=0===e?1:0,this.page=1,this.news_list=[],this.getNewsList()},getNewsList:function(){var t=this;(0,s.newsList)({association_id:a.default.state.Gid,type:this.type,gory_id:this.gory_id,page:this.page,size:this.size}).then((function(e){var n;(console.log(e),1==e.code)&&(n=t.news_list).push.apply(n,(0,r.default)(e.data.ret))})).catch((function(t){e.showToast({title:t,icon:"none",duration:2e3})}))},getNewsGoryList:function(){var t=this;(0,s.newsGoryList)({association_id:this.association_id}).then((function(e){if(console.log(e),1==e.code){var n=e.data;t.goryList=n,t.type=0,t.gory_id=n[0].id,t.getNewsList()}})).catch((function(t){e.showToast({title:t,icon:"none",duration:2e3})}))},openNewUrl:function(t){console.log(t),""==t.wx_url?e.navigateTo({url:"/pages/packageB/news/new_info?id="+t.news_id}):e.navigateTo({url:"/pages/index/web?url="+encodeURIComponent(t.wx_url)})},goBack:function(){getCurrentPages().length>1?e.navigateBack():e.redirectTo({url:"/pages/index/index"})},formatTime:function(e){var t=e.split(" ")[0].split("-"),n=(0,i.default)(t,3),o=n[0],r=n[1],s=n[2];return"".concat(o,"-").concat(r,"-").concat(s)}}};t.default=c}).call(this,n(2)["default"])}},[[359,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/packageB/news/new_list.js.map