(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[5],{"2psR":function(e,n,t){"use strict";t.r(n);var o,a,i,c=t("2Taf"),r=t.n(c),s=t("vZ4D"),d=t.n(s),l=t("MhPg"),_=t.n(l),u=t("l4Ni"),f=t.n(u),m=t("ujKo"),p=t.n(m),h=t("q1tI"),g=t.n(h),b=t("/MKj"),y=(t("YW/v"),t("3y1r")),v=t.n(y),x=t("DYBX"),w=t("9ibs"),M=t("6jie");function E(e){var n=L();return function(){var t,o=p()(e);if(n){var a=p()(this).constructor;t=Reflect.construct(o,arguments,a)}else t=o.apply(this,arguments);return f()(this,t)}}function L(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}var N=(o=Object(b["c"])(function(e){var n=e.announcementModel;return{announcementModel:n}}),o((i=function(e){_()(t,e);var n=E(t);function t(){var e;r()(this,t);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return e=n.call.apply(n,[this].concat(a)),e.state={selectedTypeJson:{id:"",title:"\u6700\u65b0"},pageNum:1},e.componentWillMount=function(){},e.isWeiXin=function(){var e=navigator.userAgent.toLowerCase();return"micromessenger"==e.match(/MicroMessenger/i)},e.getAnnouncementList=function(){e.props.dispatch({type:"announcementModel/getAnnouncementList",payload:{pageNo:e.state.pageNum,pageSize:10,sortId:e.state.selectedTypeJson.id}})},e.getTabList=function(){e.props.dispatch({type:"announcementModel/getTabList",payload:{}})},e.onRefresh=function(){e.setState({pageNum:1},function(){e.getAnnouncementList()})},e.onEndReached=function(){e.setState({pageNum:1*e.state.pageNum+1},function(){e.getAnnouncementList()})},e.componentDidMount=function(){var n;e.getAnnouncementList(),e.getTabList(),n=setInterval(function(){window.js&&window.js.shareButtonVisbile&&(clearInterval(n),/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.webkit.messageHandlers.shareButtonVisbile.postMessage({visible:1}):/(Android)/i.test(navigator.userAgent)&&window.js.shareButtonVisbile(1))},300)},e}return d()(t,[{key:"componentWillMount",value:function(){document.title="\u516c\u544a"}},{key:"render",value:function(){var e=this,n=function(e,n){return g.a.createElement("div",null,e.title)},t=function(n,t,o){return g.a.createElement(M["default"],{article:n,rowID:o,history:e.props.history,tabList:e.props.announcementModel.tabList})};return g.a.createElement("div",{className:v.a.body},this.isWeiXin()?null:g.a.createElement(x["default"],{leftBtn:function(){/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.webkit.messageHandlers.H5Finish.postMessage({}):/(Android)/i.test(navigator.userAgent)&&window.js.H5Finish()}},"\u516c\u544a"),g.a.createElement("div",{className:v.a.index_container},g.a.createElement("div",{className:v.a.index_tabs},g.a.createElement(w["f"],{tabs:this.props.announcementModel.tabList,renderTab:n,tabBarBackgroundColor:"#fff",tabBarUnderlineStyle:{display:"none"},initialPage:0,animated:!1,onChange:function(n,t){e.setState({selectedTypeJson:n,pageNum:1},function(){e.refs.announcementView.scrollTo(0,0),e.getAnnouncementList()})}})),g.a.createElement("div",{className:v.a.index_content},g.a.createElement("div",{className:v.a.index_content_table},g.a.createElement("div",{className:v.a.index_content_table_body},g.a.createElement(w["c"],{ref:"announcementView",dataSource:this.props.announcementModel.announcementList,renderFooter:function(){return g.a.createElement("div",{style:{padding:10,textAlign:"center"}},e.props.announcementModel.isLoading?"\u52a0\u8f7d\u4e2d...":"\u6570\u636e\u66f4\u65b0\u4e2d")},renderRow:t,style:{flex:"1"},useBodyScroll:!0,pageSize:4,scrollRenderAheadDistance:500,onEndReached:this.onEndReached,onEndReachedThreshold:10,pullToRefresh:g.a.createElement(w["e"],{refreshing:!1,onRefresh:this.onRefresh})})),0===this.props.announcementModel.announcementList.length&&g.a.createElement("div",{className:v.a.index_content_nodata},"\u6570\u636e\u66f4\u65b0\u4e2d")))))}}]),t}(h["Component"]),a=i))||a);n["default"]=N},"3y1r":function(e,n,t){e.exports={body:"body___2yz21",index_container:"index_container___1JgSR",index_tabs:"index_tabs___1nwVh",index_content:"index_content___15zhs",index_content_title:"index_content_title___2bNg0",index_content_subtitle:"index_content_subtitle___jewVd",index_content_table:"index_content_table___2CT0v",index_content_table_body:"index_content_table_body___1ZU8t",index_content_table_head:"index_content_table_head___3ZTBy",index_content_table_body_tr:"index_content_table_body_tr___2Yt7z",first_col:"first_col___2Ls72",second_col:"second_col___38JFN",third_col:"third_col___2KWlF",fourth_col:"fourth_col___s3vJM",index_content_nodata:"index_content_nodata___J38_t"}}}]);