webpackJsonp([24],{"87Th":function(t,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i={name:"index",data:function(){return{content:"",liked:!1,title:"",newData:[],id:0,tags:[],likeCount:0,newList:[]}},mounted:function(){this.getInfo()},methods:{topage2:function(){this.$router.push({name:"home"})},toPage:function(t,n){this.$router.push({name:t,query:{id:n}}),location.reload()},goBack:function(){this.$router.back(-1)},likeArticle:function(t){var n=this,a={id:this.id};this.$axios("post","/article/likeArticle",a).then(function(a){200===a.code&&(n.liked=1===t)})},getInfo:function(){var t=this,n={id:this.$route.query.id};this.$axios("post","/article/getArticleInfoById",n).then(function(n){200===n.code&&(t.id=n.data.id,t.newData=n.data,t.content=n.data.content,t.title=n.data.title,t.liked=n.data.liked,t.tags=n.data.tags,t.likeCount=n.data.likeCount,t.newList=n.data.associateArticle)})}}},e={render:function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("div",{staticClass:"newDeatils"},[a("div",{staticClass:"back",on:{click:function(n){return t.goBack()}}},[a("i",{staticClass:"go-back"})]),t._v(" "),a("div",{staticClass:"title"},[t._v("新闻详情")]),t._v(" "),a("div",{staticClass:"content"},[a("div",[a("h2",[t._v(t._s(t.title))])]),t._v(" "),a("div",{staticClass:"mt-10 mb-10 fx align-items"},[a("div",[a("img",{staticClass:"authorAvatar",attrs:{src:t.newData.authorAvatar}})]),t._v(" "),a("div",[a("div",[t._v(t._s(t.newData.authorName))]),t._v(" "),a("div",{staticClass:"fs-12 c-9D"},[t._v(t._s(t.newData.releaseTime))])])]),t._v(" "),a("div",{domProps:{innerHTML:t._s(t.content)}}),t._v(" "),a("div",{staticClass:"fx align-items mt-10"},t._l(t.tags,function(n,i){return i<3?a("div",{key:i,staticClass:"tags"},[t._v(t._s(n.name))]):t._e()}),0)])])},staticRenderFns:[]};var o=a("VU/8")(i,e,!1,function(t){a("LkLG"),a("WJT6")},"data-v-a2258092",null);n.default=o.exports},LkLG:function(t,n,a){var i=a("zp2f");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a("rjj0")("7e039670",i,!0,{})},WJT6:function(t,n,a){var i=a("jmld");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a("rjj0")("72cd7090",i,!0,{})},jmld:function(t,n,a){(t.exports=a("FZ+f")(!1)).push([t.i,"\np img {\n  width: 100%!important;\n}\np{\n  margin-top: 10px;\n}\nh1{\n  display: none;\n}\n",""])},zp2f:function(t,n,a){(t.exports=a("FZ+f")(!1)).push([t.i,"\n.tags[data-v-a2258092]{\n  font-size: 12px;\n  color: #FF2E4B;\n  margin-right: 10px;\n  background: #FFEFF0;\n  padding: 2px 3px;\n}\n.new-list[data-v-a2258092]{\n  margin:10px;\n  padding-top: 10px;\n  border-top: 1px solid #EEEEEE;\n}\n.content[data-v-a2258092] {\n  position: absolute;\n  top: 50px;\n  bottom: 0px;\n  -webkit-box-sizing: border-box;\n  box-sizing: border-box;\n  overflow: hidden;\n  overflow-y: scroll;\n  /*display: flex;*/\n  /*flex-direction: column;*/\n  padding: 10px;\n}\n.authorAvatar[data-v-a2258092]{\n  width: 36px;\n  height: 36px;\n  /*border: 1px solid;*/\n  border-radius: 50%;\n  margin-right: 10px;\n}\n.back[data-v-a2258092]{\n  position: absolute;\n  top:10px;\n  left: 15px;\n  z-index: 11;\n  color: #4a4c5b;\n}\n.go-back[data-v-a2258092]{\n  display: inline-block;\n  width: 10px;\n  height: 10px;\n  -webkit-transform: rotate(\n    -45deg\n  );\n          transform: rotate(\n    -45deg\n  );\n  border: 1px solid #4a4c5b;\n  border-bottom: none;\n  border-right: none;\n}\n.title[data-v-a2258092]{\n  text-align: center;\n  margin-top: 10px;\n  font-weight: 700;\n}\n.new-img[data-v-a2258092]{\n  border-radius: 5px;\n  width: 110px;\n  height: 83px;\n}\n.lodding[data-v-a2258092]{\n  width: 100%;\n  position: absolute;\n  top:30%;\n  text-align: center;\n  font-size: 16px;\n  font-weight: 700;\n}\n",""])}});