webpackJsonp([32],{QVLQ:function(t,e){},"Zu+p":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={data:function(){return{id:this.$route.query.id,res:{}}},methods:{goBack:function(){if(this.$router.isBack=!0,window.history.length<=1)return this.$router.push({path:"/"}),!1;this.$router.go(-1)},getNotice:function(){var t=this,e={nid:this.id};this.ajax.get(this.$store.state.api+"getNewByid",e).then(function(e){t.res=e.data[0][0],console.log(e.data)}).catch(function(t){console.error(t)})},updateRead:function(){var t=this,e=[{nid:this.id}];this.ajax.post(this.$store.state.api+"updateNewsRead",e).then(function(e){t.getnCount()}).catch(function(t){console.error(t)})},getnCount:function(){var t=this,e={uid:this.$store.state.userInfo.userid};this.ajax.get(this.$store.state.api+"getNewsCount",e).then(function(e){console.log(e),e.data[0].length>0?t.$store.commit("update",["nCount",e.data[0][0].num]):t.$store.commit("update",["nCount",0])}).catch(function(t){console.error(t)})}},created:function(){this.getNotice(),this.updateRead()}},i={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"pb_content2",staticStyle:{background:"#fff"}},[s("div",{staticClass:"pb_head"},[s("van-icon",{staticClass:"pb_back",attrs:{name:"arrow-left",color:"#fff",size:"1.2rem"},on:{click:t.goBack}}),t._v(" "),s("span",[t._v("消息详情")])],1),t._v(" "),s("div",{staticClass:"pb_content_body"},[s("div",{staticClass:"nd_body"},[s("div",{staticClass:"nd_head van-hairline--bottom"},[s("div",{staticClass:"nd_title"},[s("span",[t._v(t._s(t.res.title))])]),t._v(" "),s("div",{staticClass:"nd_time"},[s("span",[t._v(t._s(t.res.time))])])]),t._v(" "),s("div",{staticClass:"nd_article cont",domProps:{innerHTML:t._s(t.res.newscontent)}})])])])},staticRenderFns:[]};var a=s("VU/8")(n,i,!1,function(t){s("QVLQ")},"data-v-66c8badf",null);e.default=a.exports}});
//# sourceMappingURL=32.627222f770c680ca195d.js.map