webpackJsonp([37],{BEXt:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=r("Dd8w"),a=r.n(s),n=r("RuWt"),g=r("+PoZ"),i=r("NYxO"),A={data:function(){return{noticeMessage:[],orderMessage:[],key:""}},created:function(){this.getmessageSystemList(),this.getmessageOrderList(),this.getMessageCount(n.a.MESSAGE_TYPE.SYSTEM),this.getMessageCount(n.a.MESSAGE_TYPE.ORDER)},computed:a()({},Object(i.e)({lastOrderMsgTime:function(e){return e.message.lastOrderMsgTime},lastSystemMsgTime:function(e){return e.message.lastSystemMsgTime},orderUnreadCount:function(e){return e.message.orderUnreadCount},systemUnreadCount:function(e){return e.message.systemUnreadCount},isOnline:function(e){return e.auth.isOnline},user:function(e){return e.auth.user}})),methods:a()({},Object(i.d)({saveOrderUnread:"saveOrderUnread",saveSystemUnread:"saveSystemUnread"}),{goBack:function(){this.$router.go(-1)},getOrderMessage:function(){this.$router.push("orderMessageList")},getmessageOrderList:function(){var e=this;Object(g.b)(1,10).then(function(t){t&&(e.orderMessage=t.messages)})},getNoticeMessage:function(){this.$router.push("systemMessageList")},getmessageSystemList:function(){var e=this;Object(g.c)(1,10).then(function(t){t&&(e.noticeMessage=t.messages)})},getMessageCount:function(e){var t=this;if(null!=this.user){var r=null;e===n.a.MESSAGE_TYPE.SYSTEM?r=this.lastSystemMsgTime?this.lastSystemMsgTime:"0":e===n.a.MESSAGE_TYPE.ORDER&&(r=this.lastOrderMsgTime?this.lastOrderMsgTime:"0"),Object(g.a)(r,e).then(function(r){r&&(e===n.a.MESSAGE_TYPE.SYSTEM?t.saveSystemUnread(r.count):e===n.a.MESSAGE_TYPE.ORDER&&t.saveOrderUnread(r.count))})}}})},m={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"container"},[r("mt-header",{staticClass:"header",attrs:{title:"消息中心"}},[r("header-item",{attrs:{slot:"left",isBack:!0},on:{onclick:function(t){e.goBack()}},slot:"left"})],1),e._v(" "),r("div",{staticClass:"flex-wrapper"},[r("div",{staticClass:"newslist",on:{click:function(t){e.getOrderMessage()}}},[e._m(0),e._v(" "),r("div",{staticClass:"flex-right"},[r("h3",[e._v("订单消息")]),e._v(" "),e.orderMessage.length>0?r("span",[e._v(e._s(e.orderMessage[0].content))]):e._e(),e._v(" "),e.orderMessage.length<=0?r("span",[e._v("暂无信息")]):e._e(),e._v(" "),e.orderUnreadCount>0?r("span",{staticClass:"prompt"}):e._e()])]),e._v(" "),r("div",{staticClass:"newslist",on:{click:function(t){e.getNoticeMessage()}}},[e._m(1),e._v(" "),r("div",{staticClass:"flex-right"},[r("h3",[e._v("通知消息")]),e._v(" "),e.noticeMessage.length>0?r("span",[e._v(e._s(e.noticeMessage[0].content))]):e._e(),e._v(" "),e.noticeMessage.length<=0?r("span",[e._v("暂无信息")]):e._e(),e._v(" "),e.systemUnreadCount>0?r("span",{staticClass:"prompt"}):e._e()])])])],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui-image-wrapper"},[t("img",{attrs:{src:r("NK8N")}})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui-image-wrapper"},[t("img",{attrs:{src:r("hkWs")}})])}]};var v=r("VU/8")(A,m,!1,function(e){r("hXGR")},"data-v-1a946849",null);t.default=v.exports},NK8N:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAMAAAAL34HQAAABklBMVEVHcEz/iRP7gAr/qlX6gAr/iBL7gQr6gAr6gAr6gAr6gAr6gAv6gAr6gAr/igr6gAr6gAr/hAr6gAr6gAr6gQr7gQv8ggv7gAv6gAr/mRn6gAr6gAr/hAr7gAr6gQr6gAr8ggv/kST6gAr7gAr6hA78gAv6gAv6gAv8ggr/jRz6gQv6gQr6gAr/iBH7gAv7gQv6gAr6gAr6gAv6gAr6gQr8gQz6gAr7gQr/hQv/hg37gAr7gAr/iBH/kRL/vz//jAz7gQv7gAv6gAr6gAr7ggz6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/vjnv3ItR7KiABZIwV9/81GOZC0ABYMa99U3rCPLKGBJserLf53/EmkJ84pVX2v4l6d5zKlW6ciaQ06xSktWDkW1Kj1ZRUSVqjRlRbGiUqUrawUdClXasjoQUajSlhVBu0KVtqx2+BWqtGX5zbN+e1Wt0pZl/iX+Wq3S+CVGyMQvzH+S5qwIOux9yht+48gPxKq9T3m9+dqBrFWUbH+KA1klFCVmxZGTmJXDnMSsi5iXmHUBSxKzLqFgyMsyCsCCvKwIgKi8rBKARXlZlwHk5WXlAXwhL2sCe2alZZ0H9mSlZWUrWRlpWZnqdYGkrAQqZmRlzTR0FfWy5tqXapTNUA3zS+Gqzxq6uPuZq6gG12N++K3pxZ35NedPH5qd9f6d+TWn+aXwzm654gHzXTp0l/lB+Timh3d36CQxxSv0e8y36NAt5nvqh80NexQHDraZb9ChG8zb6ofNtaiOZ2wxf3uV9l19xbylfthcl+owy/U7zLdp323mO9eVD5sLpZVHfzaZefs57Xn+HTNvqR82l0SttRQ14CYzP3r29OmzR8x8U/2wudQ6jpikBly5xoeuXVE/bG7S2hDe/RePec/jF/eVDqsO4amPLD55uLn58ElTD1d5hQ54yhyHFTo8LHPUWuRgelzqGH8dMXLRuOAnIvIf1Mh/fgRMkSumZD5t25D5EFDms0mZj0xlP8mV/4BZ/nNv+Y/jgTGtqwTkL16Qv6ZC/lIP+StQgI2zGhbGyFqvI3MZkczVTQIXXRUDgteCyV+iJn/lnLrTZ0Qt6Ktat7POcDq5JnL5o8hVmRr0es8pLRaVtoZ1NptJyFpauxBdtLm01v6K32J05WDF70q0mJubXyrAnv8BC0opepCMA3wAAAAASUVORK5CYII="},hXGR:function(e,t){},hkWs:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAMAAAAL34HQAAAB1FBMVEVHcEz9a2v9amr/qqr/a2v9amr/a2v9amr9amr/bW39amr9amr/amr9a2v9a2v9amr9amr9amr9amr9a2v/cHD/a2v9amr/a2v9amr/a2v/amr9a2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