(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0c5da274"],{"3e61":function(t,s,e){"use strict";e.r(s);var a=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"message comBody"},[e("div",{staticClass:"heading-title"},[t._v("站内信件")]),e("div",{staticClass:"message-content"},[t._m(0),e("div",{staticClass:"features"}),e("ul",{staticClass:"message-list"},[t._m(1),t._l(t.msgList,function(s,a){return e("li",{key:a,staticClass:"msg-li",on:{click:function(e){return t.openMsgDetails(s)}}},[e("span",{staticClass:"ohvEllipsis",class:{unRead:s.unRead},domProps:{innerHTML:t._s(t.delHtmlTag(s.msgContent))}}),e("span",[t._v(t._s(s.createDate))])])})],2),0==t.msgList.length?e("div",{staticClass:"noData"},[e("i",{staticClass:"iconfont iconzhuyi"}),t._v("æ— ä¿¡æ¯")]):t._e(),e("div",{staticClass:"pageNum"},[e("customPage",{attrs:{hasNext:t.hasNext,hasPrev:t.nextValList.length>1},on:{"on-change":t.changePage}})],1)]),e("Modal",{attrs:{width:"850","class-name":"showMessageItem","footer-hide":""},model:{value:t.showMessageItem,callback:function(s){t.showMessageItem=s},expression:"showMessageItem"}},[e("p",{staticClass:"showMessageItem-title",attrs:{slot:"header"},slot:"header"},[t._v(t._s(t.messageItem.msgTitle))]),e("div",{staticClass:"msgBody"},[e("div",{staticClass:"msgContent-view",class:{backbg:1==t.messageItem.msgType},domProps:{innerHTML:t._s(t.messageItem.msgContent)}})]),e("div",{staticClass:"modal-footer"},[e("div",{staticClass:"btn",on:{click:function(s){t.showMessageItem=!1}}},[t._v("å…³é—")])])])],1)},i=[function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("ul",{staticClass:"nav-tabs"},[e("li",{staticClass:"active"},[t._v("收件匣")])])},function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("li",{staticClass:"first-li"},[e("span",[t._v("主旨")]),e("span",[t._v("时间")])])}],n=(e("a481"),{data:function(){return{hasNext:!0,nextVal:"",nextCount:10,prevOrNext:"next",nextValList:[],msgList:[],showMessageItem:!1,messageItem:{}}},created:function(){this.getmessageList()},methods:{openMsgDetails:function(t){t.unRead=!1,this.messageItem=t,this.showMessageItem=!0},delHtmlTag:function(t){return t?t.replace(/<[^>]+>/g,""):void 0},getmessageList:function(){var t=this;if(this.hasNext){"next"==this.prevOrNext&&this.nextValList.push(this.nextVal);var s={nextVal:this.nextValList[this.nextValList.length-1],nextCount:this.nextCount};this.msgList=[],this.$showLoading(),this.$api.getMsgList(s).then(function(s){t.$hideLoading(),s.result?(t.hasNext=s.data.hasNext,t.nextVal=s.data.nextVal,t.msgList=s.data.items?s.data.items:[]):(t.nextValList.pop(),t.remoteLogin(s))})}},changePage:function(t){if(this.prevOrNext=t,"prev"==this.prevOrNext){if(!(this.nextValList.length>1))return void console.log("没有上一页了");this.nextValList.pop(),this.nextVal=this.nextValList[this.nextValList.length-1],this.hasNext=!0}else if(!this.hasNext)return void console.log("没有下一页了");this.getmessageList()}},destroyed:function(){var t=this;this.$store.dispatch("user/getHomeUserInfo",t)}}),l=n,o=(e("62f9"),e("2877")),c=Object(o["a"])(l,a,i,!1,null,"14d824c8",null);s["default"]=c.exports},"62f9":function(t,s,e){"use strict";var a=e("fa53"),i=e.n(a);i.a},fa53:function(t,s,e){}}]);