webpackJsonp([12],{"4WeB":function(e,t){},HLJ5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("lC5x"),a=n.n(r),s=n("J0Oq"),c=n.n(s),i={data:function(){return{news:[]}},methods:{getContent:function(e){return e.replace(/<(style|script|iframe)[^>]*?>[\s\S]+?<\/\1\s*>/gi,"").replace(/<[^>]+?>/g,"").replace(/\s+/g," ").replace(/ /g," ").replace(/&[^>]+?;/g," ").replace(/>/g," ").substr(0,320)}},mounted:function(){var e=this;return c()(a.a.mark(function t(){var n;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.testDom=document.createElement("div"),t.next=3,e.$http.get("/news",{params:{page:0,limit:100}});case 3:n=t.sent.data.content,e.news=n.data;case 5:case"end":return t.stop()}},t,e)}))()}},o={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"l_layout"},e._l(e.news,function(t){return n("div",{key:t.id,staticClass:"article"},[n("img",{attrs:{src:t.cover,alt:""}}),e._v(" "),n("div",[n("h2",[e._v(e._s(t.title))]),e._v(" "),n("span",[t.origin?[e._v("来源："+e._s(t.origin)+"  | ")]:e._e(),e._v("\n        "+e._s(new Date(Number(t.date)).format("yyyy-MM-dd"))+" 发表\n      ")],2),e._v(" "),n("p",[e._v(e._s(e.getContent(t.content)))]),e._v(" "),n("a",{attrs:{href:"#/information/news/"+t.id}},[e._v("阅读全文>>")])])])}))},staticRenderFns:[]};var u=n("C7Lr")(i,o,!1,function(e){n("4WeB")},"data-v-3bc29459",null);t.default=u.exports}});
//# sourceMappingURL=12.bd55e4f0c3771e5e60df.js.map