(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[3],{"56vT":function(e,t,n){"use strict";n.r(t);var a=n("d6i3"),r=n.n(a),i=n("p0pE"),s=n.n(i),o=n("Aeqt"),c=n("uk3j"),u=n("9ibs"),d=new u["c"].DataSource({rowHasChanged:function(e,t){return e!==t}});t["default"]={namespace:"announcementDetailModel",state:{announcementListArr:[],announcementList:d,isLoading:!1,article:{}},reducers:{updateState:function(e,t){var n=t.payload;return s()({},e,n)}},effects:{getTitleListBySameSort:r.a.mark(function e(t,n){var a,i,d,l,p,w,g,f,h,m,x;return r.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return a=t.payload,i=n.call,d=n.put,l=n.select,u["g"].loading("\u52a0\u8f7d\u4e2d",0,null,!0),e.next=5,d({type:"updateState",payload:{isLoading:!0}});case 5:return e.next=7,i(c["d"],s()({},a));case 7:return p=e.sent,w=p.rc,g=p.msg,f=p.total,h=p.data,e.next=14,l(function(e){return e.announcementDetailModel});case 14:if(m=e.sent,m.announcementList,m.announcementListArr,w!==o["a"].constant.codeSuccess){e.next=25;break}return u["g"].hide(),f,x=h,e.next=23,d({type:"updateState",payload:{announcementListArr:x,isLoading:!1,refreshing:!1}});case 23:e.next=26;break;case 25:u["g"].fail(g);case 26:case"end":return e.stop()}},e)}),getDetail:r.a.mark(function e(t,n){var a,i,d,l,p,w,g;return r.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return a=t.payload,i=n.call,d=n.put,n.select,e.next=4,i(c["b"],s()({},a));case 4:if(l=e.sent,p=l.rc,w=l.msg,g=l.data,p!==o["a"].constant.codeSuccess){e.next=14;break}return e.next=11,d({type:"updateState",payload:{article:g}});case 11:window.shareNotice=function(){/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.webkit.messageHandlers.toShare.postMessage({title:g.title,content:g.title,url:window.location.href}):/(Android)/i.test(navigator.userAgent)&&window.js.toShare(g.title,"",g.content,window.location.href)},e.next=15;break;case 14:u["g"].fail(w);case 15:case"end":return e.stop()}},e)})},subscriptions:{}}}}]);