webpackJsonp([29],{GRcN:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={data:function(){return{res:[],loading:!1,finished:!1,refreshing:!1,isShow:!1,page:1}},methods:{goBack:function(){if(this.$router.isBack=!0,window.history.length<=1)return this.$router.push({path:"/"}),!1;this.$router.go(-1)},goTo:function(t){this.$router.push(t)},getNotice:function(){var t=this;this.loading=!0;var e={uid:this.$store.state.userInfo.userid,page:this.page};this.ajax.get(this.$store.state.api+"getNews",e).then(function(e){0==e.data[0].length?t.isShow=!0:t.isShow=!1,t.page++,t.loading=!1,t.refreshing=!1,t.finished=!1,t.res=e.data[0],console.log(e.data)}).catch(function(e){t.loading=!1,t.refreshing=!1,console.error(e)})},onRefresh:function(){this.page=1,this.getNotice()},onLoad:function(){var t=this,e={uid:this.$store.state.userInfo.userid,page:this.page};this.ajax.get(this.$store.state.api+"getNews",e).then(function(e){t.loading=!1,t.refreshing=!1,t.res=t.res.concat(e.data[0]);var i=t.res.length?t.res[0].num:0;t.res.length<i?(t.page++,t.loading=!1):(t.finished=!0,t.loading=!0),console.log(e.data)}).catch(function(e){t.loading=!1,t.refreshing=!1,console.error(e)})}},created:function(){this.getNotice()}},s={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"pb_content2",staticStyle:{background:"#fff"}},[n("div",{staticClass:"pb_head"},[n("van-icon",{staticClass:"pb_back",attrs:{name:"arrow-left",color:"#fff",size:"1.2rem"},on:{click:t.goBack}}),t._v(" "),n("span",[t._v("消息通知")])],1),t._v(" "),n("div",{staticClass:"pb_content_body"},[n("div",{staticClass:"n_content"},[n("van-pull-refresh",{staticStyle:{"padding-top":"0.5rem"},attrs:{"looing-text":"释放刷新","pulling-text":"下拉刷新"},on:{refresh:t.onRefresh},model:{value:t.refreshing,callback:function(e){t.refreshing=e},expression:"refreshing"}},[n("van-list",{attrs:{finished:t.finished,"finished-text":"没有更多啦",offset:"10","immediate-check":!1},on:{load:t.onLoad},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},[t.isShow?n("van-empty",{staticClass:"custom-image",attrs:{image:i("0vHl"),description:"暂无数据"}}):t._e(),t._v(" "),t._l(t.res,function(e,i){return n("div",{key:i,staticClass:"n_content_body van-hairline--top noticeBox",on:{click:function(i){return t.goTo("/my/Notice/NoticeDetail?id="+e.newsid)}}},[1==e.isRead&&0!=e.recipientid?n("span",{staticClass:"red"}):t._e(),t._v(" "),n("div",{staticClass:"n_content_title"},[n("span",[t._v(t._s(e.title))])]),t._v(" "),n("div",{staticClass:"n_content_time"},[n("span",[t._v(t._s(e.time))])])])})],2)],1)],1)])])},staticRenderFns:[]};var a=i("VU/8")(n,s,!1,function(t){i("U+p4")},"data-v-775dd8e9",null);e.default=a.exports},"U+p4":function(t,e){}});
//# sourceMappingURL=29.f624e4327da71f8cbfc8.js.map