text: (window.webpackJsonp=window.webpackJsonp||[]).push([[0],{10:function(e,t){e.exports={act_index_height:function(e){return{type:"INDEX_HEIGHT",data:e}},act_soft_height:function(e){return{type:"SOFT_HEIGHT",data:e}},act_game_height:function(e){return{type:"GAME_HEIGHT",data:e}},act_search_key:function(e){return{type:"SEARCH_KEY",data:e}},act_search_data:function(e){return{type:"SEARCH_DATA",data:e}},act_list_data:function(e){return{type:"LIST_DATA",data:e}},act_classify_id:function(e){return{type:"CLASSIFY_ID",data:e}}}},115:function(e,t,a){},116:function(e,t,a){"use strict";a.r(t);var n=a(9),o=a(25),s=a.n(o),c=a(0),l=a.n(c),i=a(118),r=a(120),A=a(53),h=a(3),d=a(4),u=a(6),m=a(5),g=a(2),p=a(7),f=a(14),v=a.n(f),b=a(20),C=a.n(b),E="https://apk.kindlesend.com/api";C.a.defaults.baseURL=E,C.a.defaults.timeout=1e5,C.a.interceptors.request.use(function(e){return e}),C.a.interceptors.response.use(function(e){return e},function(e){return Promise.reject(e)});var y=function(e){var t="",a={index:"".concat(E,"/index"),soft:"".concat(E,"/soft"),game:"".concat(E,"/game"),item:"".concat(E,"/getapk"),searchkey:"".concat(E,"/searchkey"),search:"".concat(E,"/search"),download:"".concat(E,"/download"),classify:"".concat(E,"/classify"),classlist:"".concat(E,"/classlist"),tag:"".concat(E,"/tag"),topic:"".concat(E,"/topic"),getkey:"".concat(E,"/getkey")};switch(e){case"index":t=a.index;break;case"soft":t=a.soft;break;case"game":t=a.game;break;case"item":t=a.item;break;case"searchkey":t=a.searchkey;break;case"search":t=a.search;break;case"download":t=a.download;break;case"classify":t=a.classify;break;case"classlist":t=a.classlist;break;case"tag":t=a.tag;break;case"topic":t=a.topic;break;case"getkey":t=a.getkey;break;default:t=a.category}return t},k=function(e,t,a){var n=y(e);return new Promise(function(e,a){C.a.get(n,{params:t}).then(function(t){200===t.status&&e(t.data)}).catch(function(e){a(e)})})},K=a(117),w=function(e){return l.a.createElement("nav",{className:"bar-tab row"},l.a.createElement(K.a,{exact:!0,to:"/",className:"col",activeClassName:"active"},l.a.createElement("i",{className:"fa fa-adn"}),l.a.createElement("span",null,"\u7cbe\u9009")),l.a.createElement(K.a,{to:{pathname:"/soft",state:{type:"soft"}},className:"col",activeClassName:"active"},l.a.createElement("i",{className:"fa fa-eercast"}),l.a.createElement("span",null,"\u8f6f\u4ef6")),l.a.createElement(K.a,{to:{pathname:"/game",state:{type:"game"}},className:"col",activeClassName:"active"},l.a.createElement("i",{className:"fa fa-grav"}),l.a.createElement("span",null,"\u6e38\u620f")),l.a.createElement(K.a,{to:"/classify",className:"col",activeClassName:"active"},l.a.createElement("i",{className:"fa fa-buysellads"}),l.a.createElement("span",null,"\u5206\u7c7b")))},j=a(40),O=a(30),S=a.n(O),N=(a(49),function(e){function t(e){var a;Object(h.a)(this,t);var n=(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).props.data;return a.state={swiper:n},a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"componentDidMount",value:function(){new S.a(".swiper-container",{loop:!0,autoplay:{delay:4e3,stopOnLastSlide:!1,disableOnInteraction:!0},direction:"horizontal",spaceBetween:15,slidesPerView:1.1,loopedSlides:2})}},{key:"render",value:function(){var e=this.state.swiper;return l.a.createElement("div",null,e&&e.length>0&&l.a.createElement("div",{className:"swiper"},l.a.createElement("div",{className:"banner"},l.a.createElement("div",{className:"swiper-container"},l.a.createElement("div",{className:"swiper-wrapper"},e.length>0&&e.map(function(e,t){return l.a.createElement(j.a,{to:"/item/".concat(e.apks[0].id),key:e.id,className:"swiper-slide"},l.a.createElement("img",{src:e.more,className:"img-100",alt:e.title}))}))))))}}]),t}(c.Component)),D=function(e){function t(e){var a;return Object(h.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).state={src:a.props.src?a.props.src:""},a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"handleImageScuess",value:function(){}},{key:"handleImageError",value:function(){this.setState({src:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAA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gAoAKACgAoAKACgAoAKAPMP2l/+SJeI/8At2/9KYqAPT6ACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKAPMP2l/wDkiXiP/t2/9KYqAPT6ACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKAPMP2l/8AkiXiP/t2/wDSmKgD0+gAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgDzD9pf/kiXiP8A7dv/AEpioA9PoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoA8w/aX/5Il4j/wC3b/0pioA9PoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoA8w/aX/AOSJeI/+3b/0pioA9PoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoA8w/aX/wCSJeI/+3b/ANKYqAPT6ACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKAPMP2l/+SJeI/wDt2/8ASmKgD0+gAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgDzD9pf/kiXiP/ALdv/SmKgD0+gAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgDzD9pf8A5Il4j/7dv/SmKgD0+gAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgDzD9pf/AJIl4j/7dv8A0pioA9PoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoA8w/aX/5Il4j/AO3b/wBKYqAPT6ACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKAPMP2l/+SJeI/8At2/9KYqAPT6ACgAoAKACgBryIhAd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nOc8CgAla2kJOGVj3AoAIJxGTukZl7DFABLKstxCUzwR1+tAF4kAEk4AoAqQfv7ppf4V4FAFygCrqP+pX/e/oaALQ6UAFABQAUAFAHmH7S/8AyRLxH/27f+lMVAHp9ABQAUAFABQBE8CPKHbJI4x2oAXyY/8Anmn5UAHkx/8APNPyFABDEsKkKSQTnmgCSgBAABgDAoAWgBCoPUA/hQAAAdABQApGQQehoAbHGsa4QYHWgB1ABQAx4kdlZhkr05oAV1V1KsMigAjRY0CqOKAHUARzRLMoDEgA54oAkoAKACgAoAKAPMP2l/8AkiXiP/t2/wDSmKgD0+gAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgDzD9pf/kiXiP8A7dv/AEpioA9PoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoA8w/aX/5Il4j/wC3b/0pioA9PoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoA8w/aX/AOSJeI/+3b/0pioA9PoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoA8w/aX/wCSJeI/+3b/ANKYqAPT6ACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKAPMP2l/+SJeI/wDt2/8ASmKgD0+gAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgDzD9pf/kiXiP/ALdv/SmKgD0+gAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgDzD9pf8A5Il4j/7dv/SmKgD0+gAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgDzD9pf/AJIl4j/7dv8A0pioA9PoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoAKACgAoA8w/aX/5Il4j/AO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DG6AD/AIXz8Sf+hj/8kbb/AON0AH/C+fiT/wBDH/5I23/xugA/4Xz8Sf8AoY//ACRtv/jdAB/wvn4k/wDQx/8Akjbf/G6AD/hfPxJ/6GP/AMkbb/43QAf8L5+JP/Qx/wDkjbf/ABugA/4Xz8Sf+hj/APJG2/8AjdAB/wAL5+JP/Qx/+SNt/wDG6AMvxN8W/G/ifRLnSNc1v7Vp1zt82L7JAm7awYcqgI5UHg9qAP8A/9k="})}},{key:"render",value:function(){return l.a.createElement("img",{src:this.state.src,alt:this.props.alt,className:"apkls-img",onLoad:this.handleImageScuess.bind(this),onError:this.handleImageError.bind(this)})}}]),t}(c.Component),T=a(8);function B(e){return{red_index_height:e.red_index_height,red_soft_heigh:e.red_soft_heigh,red_game_height:e.red_game_height,red_search_key:e.red_search_key,red_search_data:e.red_search_data,red_list_data:e.red_list_data,red_classify_id:e.red_classify_id}}var P=a(10),Q=function(e){function t(e){var a;Object(h.a)(this,t);var n=(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).props.data;return a.state={topic:n,scrollTop:a.props.height},a.download=a.download.bind(Object(g.a)(a)),a.setHeight=a.setHeight.bind(Object(g.a)(a)),a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"setHeight",value:function(e){this.props.act_index_height(this.state.scrollTop)}},{key:"download",value:function(e,t){this.props.handleDownload(t),e.preventDefault()}},{key:"componentWillReceiveProps",value:function(e){var t=e.height;void 0===t&&(t=0),this.setState({scrollTop:t})}},{key:"render",value:function(){var e=this;return l.a.createElement("div",null,this.state.topic&&this.state.topic.length>0&&this.state.topic.map(function(t,a){return l.a.createElement("div",{className:"block",key:t.id},l.a.createElement("div",{className:"catalog"},l.a.createElement("div",{className:"row"},l.a.createElement("div",{className:"col b-title"},t.title),l.a.createElement(j.a,{to:{pathname:"/list/".concat(t.id),state:{type:"topic",title:t.title}},className:"col title-more"},l.a.createElement("i",{className:"fa fa-angle-right"})))),t.apks.length>0&&t.apks.map(function(t,a){return l.a.createElement(j.a,{to:"/item/".concat(t.id),className:"row apkls",key:t.id,onClick:e.setHeight},l.a.createElement("div",{className:"col col-20"},l.a.createElement(D,{src:t.more.cover})),l.a.createElement("div",{className:"col col-66 apkmore"},l.a.createElement("h1",null,t.title),l.a.createElement("div",null,l.a.createElement("span",null,t.apk_count,"\u4eba\u4e0b\u8f7d"),l.a.createElement("span",null,t.more.apk_size)),l.a.createElement("h3",null,t.more.intro)),l.a.createElement("button",{className:"col download",onClick:function(a){e.download(a,t.id)}},"\u4e0b\u8f7d"))}))}))}}]),t}(c.Component);var I=Object(n.b)(B,function(e){return Object(T.b)(P,e)})(Q),H=a(18),x=a.n(H),L=a(19),Y=a.n(L),q=function(e){function t(e){var a;return Object(h.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).state={must:a.props.data,scrollTop:a.props.height,downurl:""},a.download=a.download.bind(Object(g.a)(a)),a.setHeight=a.setHeight.bind(Object(g.a)(a)),a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"setHeight",value:function(e){this.props.act_index_height(this.state.scrollTop)}},{key:"download",value:function(e,t){this.props.handleDownload(t),e.preventDefault()}},{key:"componentWillReceiveProps",value:function(e){var t=e.height;void 0===t&&(t=0),this.setState({scrollTop:t})}},{key:"render",value:function(){var e=this;return l.a.createElement("div",null,this.state.must&&this.state.must.length>0&&this.state.must.map(function(t,a){return l.a.createElement("div",{className:"block",key:t.id},l.a.createElement("div",{className:"catalog"},l.a.createElement("div",{className:"row"},l.a.createElement("div",{className:"col b-title"},t.title),l.a.createElement("div",{className:"col title-more"},l.a.createElement("i",{className:"fa"})))),l.a.createElement(Y.a,{iScroll:x.a,className:"inner",options:{eventPassthrough:!0,scrollX:!0,scrollY:!1}},l.a.createElement("ul",{className:"list"},l.a.createElement("li",null,t.apks.length>0&&t.apks.map(function(t,a){return l.a.createElement(j.a,{className:"apkls",to:{pathname:"/item/".concat(t.id),state:{id:t.id}},key:t.id,onClick:e.setHeight},l.a.createElement("div",null,l.a.createElement(D,{src:t.more.cover})),l.a.createElement("div",{className:"apkmore"},l.a.createElement("h1",null,t.title),l.a.createElement("h5",null,t.more.apk_size)),l.a.createElement("button",{className:"download",onClick:function(a){e.download(a,t.id)}},"\u4e0b\u8f7d"))})))))}))}}]),t}(c.Component);var z=Object(n.b)(B,function(e){return Object(T.b)(P,e)})(q),M=function(e){function t(e){var a;return Object(h.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).state={scrollTop:a.props.height,rank:a.props.data},a.setHeight=a.setHeight.bind(Object(g.a)(a)),a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"setHeight",value:function(e){this.props.act_index_height(this.state.scrollTop)}},{key:"componentWillReceiveProps",value:function(e){var t=e.height;void 0===t&&(t=0),this.setState({scrollTop:t})}},{key:"render",value:function(){var e=this,t=this.state.rank;return l.a.createElement("div",{className:"block"},l.a.createElement("div",{className:"row rank"},t.length>0&&t.map(function(t,a){return l.a.createElement(j.a,{className:"col col-33",to:{pathname:"/list/".concat(t.id),state:{type:"topic",title:t.title}},key:a,onClick:e.setHeight},l.a.createElement("i",{className:"fa ".concat(t.more)}),l.a.createElement("span",null,t.title))})))}}]),t}(c.Component);var F=Object(n.b)(B,function(e){return Object(T.b)(P,e)})(M),J=function(e){function t(e){var a;return Object(h.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).state={bottom:"\u6211\u662f\u6709\u5e95\u7ebf\u7684\uff01\uff01"},a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"render",value:function(){return l.a.createElement("div",{className:"last-block"},l.a.createElement("h2",null,this.state.bottom))}}]),t}(c.Component),U=a(55),G=a.n(U),Z=function(e){function t(e){var a;return Object(h.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).state={scrollTop:0},a.setHeight=a.setHeight.bind(Object(g.a)(a)),a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"setHeight",value:function(){this.props.act_index_height(this.state.scrollTop)}},{key:"componentWillReceiveProps",value:function(e){var t=e.height;void 0===t&&(t=0),this.setState({scrollTop:t})}},{key:"render",value:function(){return l.a.createElement("header",{className:"packup"},l.a.createElement("div",{className:"item-header"},l.a.createElement("div",{className:"item-nav logo"},l.a.createElement("img",{src:G.a,alt:"logo"})),l.a.createElement(j.a,{to:"/search",className:"searchInput",onClick:this.setHeight},l.a.createElement("div",{className:"searchI"},l.a.createElement("i",{className:"fa fa-search"}),l.a.createElement("span",null,"24\u5c0f\u65f6\u70ed\u641c")))))}}]),t}(c.Component);var X=Object(n.b)(B,function(e){return Object(T.b)(P,e)})(Z),R=function(e){function t(e){var a;return Object(h.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).state={isLoading:!0,scrollTop:0},a.handleScroll=a.handleScroll.bind(Object(g.a)(a)),a.handleDownload=a.handleDownload.bind(Object(g.a)(a)),a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"getData",value:function(){var e=this;k("index").then(function(t){e.setState({isLoading:!1,data:t})}).catch(function(e){console.log(e)})}},{key:"handleScroll",value:function(){var e=this._container.scrollTop;this.setState({scrollTop:e})}},{key:"handleDownload",value:function(e){var t=this.refs.frame;k("download",{id:e}).then(function(e){e&&(t.src=e)}).catch(function(e){console.log(e)})}},{key:"componentDidMount",value:function(){this.setState({isLoading:!0}),this.getData(),setTimeout(function(){var e=this._container,t=this.props.red_index_height;void 0===t&&(t=0),void 0!==e&&(e.scrollTop=t)}.bind(this),100)}},{key:"render",value:function(){var e=this,t=this.state.data;return l.a.createElement("div",null,this.state.isLoading?l.a.createElement(v.a,{color:"#34affb",height:3}):l.a.createElement("div",null,t&&l.a.createElement(X,{height:this.state.scrollTop}),t&&l.a.createElement("section",{className:"content",ref:function(t){return e._container=t},onScrollCapture:function(){return e.handleScroll()}},l.a.createElement(N,{data:t.swiper}),l.a.createElement(F,{data:t.rank,height:this.state.scrollTop}),l.a.createElement(z,{data:t.must,handleDownload:this.handleDownload,height:this.state.scrollTop}),l.a.createElement(I,{data:t.topic,handleDownload:this.handleDownload,height:this.state.scrollTop}),l.a.createElement(J,null),l.a.createElement("iframe",{ref:"frame",src:"",title:"download",style:{display:"none"}})),l.a.createElement(w,null)))}}]),t}(c.Component);var _=Object(n.b)(B,function(e){return Object(T.b)(P,e)})(R),W=a(119),V=Object(W.a)(function(e){var t=e.history;return t.length>1&&l.a.createElement("div",{onClick:t.goBack,className:"back"},l.a.createElement("i",{className:"fa fa-angle-left"}))}),$=function(e){function t(){return Object(h.a)(this,t),Object(u.a)(this,Object(m.a)(t).apply(this,arguments))}return Object(p.a)(t,e),Object(d.a)(t,[{key:"render",value:function(){return l.a.createElement("header",{className:"packup"},l.a.createElement("div",{className:"item-header"},l.a.createElement(V,null),l.a.createElement(K.a,{to:"/",className:"item-nav"},"\u7cbe\u9009"),l.a.createElement(K.a,{to:{pathname:"/soft",state:{type:"soft"}},className:"item-nav"},"\u8f6f\u4ef6"),l.a.createElement(K.a,{to:{pathname:"/game",state:{type:"game"}},className:"item-nav"},"\u6e38\u620f"),l.a.createElement(K.a,{to:"/classify",className:"item-nav"},"\u5206\u7c7b"),l.a.createElement(K.a,{to:"/search",className:"search"},l.a.createElement("i",{className:"fa fa-search"}))))}}]),t}(c.Component),ee=function(e){function t(e){var a;return Object(h.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).state={top:a.props.data,title:a.props.title,created_at:a.props.date,count:a.props.count},a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"render",value:function(){var e=this.state.top;return l.a.createElement("section",{className:"bgcolor-fff"},e&&l.a.createElement("div",{className:"item"},l.a.createElement("div",{className:"item-img"},l.a.createElement("img",{src:e.cover,alt:this.state.title})),l.a.createElement("div",null,l.a.createElement("h1",null,this.state.title),l.a.createElement("h5",null,l.a.createElement("span",null,this.state.count,"\u4eba\u4e0b\u8f7d"),l.a.createElement("span",null,e.apk_size)),l.a.createElement("h5",null,this.state.created_at,"\u66f4\u65b0"))))}}]),t}(c.Component),te=function(e){function t(e){var a;return Object(h.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).state={down:a.props.data},a.download=a.download.bind(Object(g.a)(a)),a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"download",value:function(){this.props.handleDownload(this.state.down)}},{key:"render",value:function(){var e=this.state.down;return l.a.createElement("section",{className:"item-dl"},e&&l.a.createElement("button",{className:"item-download",onClick:this.download},l.a.createElement("i",{className:"fa fa-download"}),l.a.createElement("div",null,"\u7acb\u5373\u4e0b\u8f7d")))}}]),t}(c.Component),ae=function(e){function t(e){var a;Object(h.a)(this,t);var n=(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).props.data;return a.state={imgls:n},a.showSwiper=a.showSwiper.bind(Object(g.a)(a)),a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"showSwiper",value:function(){this.props.handleSwiper(!0)}},{key:"render",value:function(){var e=this.state.imgls;return l.a.createElement(Y.a,{iScroll:x.a,className:"inner",options:{eventPassthrough:!0,scrollX:!0,scrollY:!1},onClick:this.showSwiper},l.a.createElement("ul",{className:"list"},l.a.createElement("li",null,e&&e.length>0&&e.map(function(e,t){return l.a.createElement("div",{className:"item-infoImg",key:t},l.a.createElement("img",{src:e,alt:t,className:"img-100"}))}))))}}]),t}(c.Component),ne=function(e){function t(e){var a;Object(h.a)(this,t);var n=(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).props.data;return a.state={show:!0,info:n},a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"toggle",value:function(){this.setState({show:!this.state.show})}},{key:"render",value:function(){var e=this.state.info;return l.a.createElement("section",{className:"bgcolor-fff"},e&&l.a.createElement("div",null,l.a.createElement("div",{className:"row"},l.a.createElement("div",{className:"col f11 text-left h99 padding-lr15 padding-t15",style:{overflow:this.state.show?"hidden":"inherit",height:this.state.show?"3.5rem":"auto"}},e&&e.length>0&&e.map(function(e,t){return l.a.createElement("p",{key:t},e)}))),l.a.createElement("div",{className:"anniu f11",style:{display:this.state.show?"none":"block"},onClick:this.toggle.bind(this)},"\u6536\u8d77\u4ecb\u7ecd ",l.a.createElement("i",{className:"fa fa-angle-up"})),l.a.createElement("div",{className:"anniu f11",style:{display:this.state.show?"block":"none"},onClick:this.toggle.bind(this)},"\u5c55\u5f00\u5168\u90e8\u4ecb\u7ecd ",l.a.createElement("i",{className:"fa fa-angle-down"}))))}}]),t}(c.Component),oe=function(e){function t(e){var a;Object(h.a)(this,t);var n=(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).props.data;return a.state={show:!0,tags:n},a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"toggle",value:function(){this.setState({show:!this.state.show})}},{key:"render",value:function(){var e=this.state.tags;return l.a.createElement("section",{className:"block padding-b15"},e&&l.a.createElement(Y.a,{iScroll:x.a,className:"inner",options:{eventPassthrough:!0,scrollX:!0,scrollY:!1}},l.a.createElement("ul",{className:"list"},l.a.createElement("li",null,e&&e.length>0&&e.map(function(e,t){return l.a.createElement(j.a,{to:{pathname:"/list/".concat(e.id),state:{type:"tag",title:e.tag}},className:"tag",key:t},e.tag)})))))}}]),t}(c.Component),se=function(e){function t(e){var a;return Object(h.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).state={newlist:a.props.data,title:a.props.title,downurl:""},a.download=a.download.bind(Object(g.a)(a)),a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"download",value:function(e,t){var a=this.state.newlist[t].more.download;this.props.handleDownload(a),e.preventDefault()}},{key:"render",value:function(){var e=this,t=this.state.newlist;return l.a.createElement("div",null,l.a.createElement("div",{className:"block"},l.a.createElement("div",{className:"catalog"},l.a.createElement("div",{className:"row"},l.a.createElement("div",{className:"col b-title"},this.state.title),l.a.createElement("div",{className:"col title-more"},l.a.createElement("i",{className:"fa"})))),l.a.createElement(Y.a,{iScroll:x.a,className:"inner",options:{eventPassthrough:!0,scrollX:!0,scrollY:!1}},l.a.createElement("ul",{className:"list"},l.a.createElement("li",null,t.length>0&&t.map(function(t,a){return l.a.createElement(j.a,{className:"apkls",to:"/item/".concat(t.id),key:t.id},l.a.createElement("div",null,l.a.createElement(D,{src:t.more.cover})),l.a.createElement("div",{className:"apkmore"},l.a.createElement("h1",null,t.title),l.a.createElement("h5",null,t.more.apk_size)),l.a.createElement("button",{className:"download",onClick:function(t){e.download(t,a)}},"\u4e0b\u8f7d"))}))))))}}]),t}(c.Component),ce=function(e){function t(e){var a;return Object(h.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).state={data:a.props.data,title:a.props.title,btshow:a.props.btshow,id:a.props.id},a.download=a.download.bind(Object(g.a)(a)),a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"download",value:function(){this.props.handleDownload(this.state.id)}},{key:"componentWillReceiveProps",value:function(e){e.btshow!==this.state.btshow&&this.setState({btshow:e.btshow})}},{key:"render",value:function(){var e=this.state.data;return l.a.createElement("div",{className:"row bootom-down ".concat(this.state.btshow?"active":"")},l.a.createElement("div",{className:"col col-15"},l.a.createElement("img",{src:e.cover,alt:this.state.title})),l.a.createElement("div",{className:"col col-65"},l.a.createElement("h1",null,this.state.title),l.a.createElement("span",null,e.apk_size)),l.a.createElement("div",{className:"col"},l.a.createElement("button",{className:"bt-down",onClick:this.download},"\u4e0b\u8f7d")))}}]),t}(c.Component),le=function(e){function t(e){var a;return Object(h.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).state={data:a.props.data,show:a.props.show},a.hideSwiper=a.hideSwiper.bind(Object(g.a)(a)),a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"componentDidMount",value:function(){new S.a(".swiper-container",{loop:!1,direction:"horizontal",slidesPerView:"auto",pagination:{el:".swiper-pagination"}})}},{key:"componentWillReceiveProps",value:function(e){e.show!==this.state.show&&this.setState({show:e.show})}},{key:"hideSwiper",value:function(){this.props.handleSwiper(!1)}},{key:"render",value:function(){var e=this.state.data;return l.a.createElement("div",{className:"item-swiper ".concat(this.state.show?"active":""),onClick:this.hideSwiper},e&&e.length>0&&l.a.createElement("div",{className:"swiper-container"},l.a.createElement("div",{className:"swiper-wrapper"},e.length>0&&e.map(function(e,t){return l.a.createElement("div",{key:t,className:"swiper-slide"},l.a.createElement("img",{src:e,className:"img-100",alt:t}))}))),l.a.createElement("div",{className:"swiper-pagination"}))}}]),t}(c.Component),ie=function(e){function t(e){var a;Object(h.a)(this,t);var n=(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).props.match.params.id;return a.state={isLoading:!0,id:n,btshow:!1,swshow:!1},a._onScrollEvent=a._onScrollEvent.bind(Object(g.a)(a)),a.handleSwiper=a.handleSwiper.bind(Object(g.a)(a)),a.handleDownload=a.handleDownload.bind(Object(g.a)(a)),a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"componentWillMount",value:function(){this.setState({isLoading:!0})}},{key:"getData",value:function(e){var t=this;e||(e=this.state.id),k("item",{id:e}).then(function(e){t.setState({isLoading:!1,data:e}),document.title=t.state.data.title}).catch(function(e){console.log(e)})}},{key:"_onScrollEvent",value:function(){this._container.scrollTop>=283?this.setState({btshow:!0}):this.setState({btshow:!1})}},{key:"handleSwiper",value:function(e){this.setState({swshow:e})}},{key:"handleDownload",value:function(e){var t=this.refs.frame;k("download",{id:e}).then(function(e){e&&(t.src=e)}).catch(function(e){console.log(e)})}},{key:"componentWillReceiveProps",value:function(e,t){var a=e.match.params.id;a!==this.state.id&&(this.setState({isLoading:!0,btshow:!1,id:a}),this.getData(a))}},{key:"componentDidMount",value:function(){this.getData()}},{key:"render",value:function(){var e=this;return l.a.createElement("div",null,this.state.isLoading?l.a.createElement(v.a,{color:"#34affb",height:3}):l.a.createElement("div",null,l.a.createElement($,null),l.a.createElement("section",{ref:function(t){return e._container=t},className:"content",onScrollCapture:function(){return e._onScrollEvent()}},this.state.data&&l.a.createElement("div",null,l.a.createElement(ee,{data:this.state.data.more,title:this.state.data.title,date:this.state.data.created_at,count:this.state.data.apk_count}),l.a.createElement(te,{data:this.state.id,handleDownload:this.handleDownload}),l.a.createElement(ae,{data:this.state.data.more.infoimg,handleSwiper:this.handleSwiper}),l.a.createElement(ne,{data:this.state.data.more.intromore}),l.a.createElement(oe,{data:this.state.data.tags}),l.a.createElement(se,{data:this.state.data.newlist,title:"\u6700\u65b0\u7684\u4e0d\u5bb9\u9519\u8fc7",handleDownload:this.handleDownload}),l.a.createElement(se,{data:this.state.data.hotlist,title:"\u70ed\u5230\u53d1\u7d2b\u7684\u5e94\u7528",handleDownload:this.handleDownload}),l.a.createElement(J,null))),l.a.createElement("iframe",{ref:"frame",src:"",title:"download",style:{display:"none"}}),this.state.btshow&&l.a.createElement(ce,{btshow:this.state.btshow,data:this.state.data.more,title:this.state.data.title,id:this.state.id,handleDownload:this.handleDownload}),this.state.swshow&&l.a.createElement(le,{data:this.state.data.more.infoimg,show:this.state.swshow,handleSwiper:this.handleSwiper})))}}]),t}(c.Component),re=a(1),Ae=a.n(re),he=a(31),de=a.n(he),ue=a(41),me=a.n(ue),ge=function(e){function t(e){var a;return Object(h.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).state={key:a.props.query,results:a.props.results,hides:a.props.hd,first:a.props.first},a.setKeyData=a.setKeyData.bind(Object(g.a)(a)),a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"setKeyData",value:function(){this.props.act_search_key({query:this.state.key,results:this.state.results,hides:this.state.hides,first:this.state.first})}},{key:"componentWillReceiveProps",value:function(e){var t=e.query,a=e.results,n=e.hd,o=e.first;void 0!==t&&void 0!==a&&void 0!==n&&this.setState({key:t,results:a,hides:n,first:o})}},{key:"render",value:function(){var e=this,t=this.state.results,a=this.state.first;return l.a.createElement("ul",{className:"search-over ".concat(this.state.hides?"":"hd")},a&&a.id&&l.a.createElement(j.a,{to:"/item/".concat(a.id),onClick:this.setKeyData},l.a.createElement("div",{className:"first"},l.a.createElement("div",{className:"first-img"},l.a.createElement("img",{src:a.cover,alt:a.title})),l.a.createElement("div",{className:"first-text"},l.a.createElement("h1",null,me()(a.title,this.state.key,function(e,t){return l.a.createElement("span",{className:"blue",key:t},e)})),l.a.createElement("h5",null,a.apk_count,"\u4eba\u4e0b\u8f7d ",a.size)))),t&&t.length>0&&t.map(function(t){return l.a.createElement(j.a,{className:"list",key:t.id,to:"/item/".concat(t.id),onClick:e.setKeyData},l.a.createElement("i",{className:"fa fa-search"}),l.a.createElement("span",null,me()(t.title,e.state.key,function(e,t){return l.a.createElement("span",{className:"blue",key:t},e)})))}))}}]),t}(c.Component);var pe=Object(n.b)(B,function(e){return Object(T.b)(P,e)})(ge),fe=de()(),ve=function(e){function t(e){var a;return Object(h.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).state={query:"",results:[],hides:!0,first:{}},a.clearInput=a.clearInput.bind(Object(g.a)(a)),a.handleInputChange=a.handleInputChange.bind(Object(g.a)(a)),a.onKeyup=a.onKeyup.bind(Object(g.a)(a)),a.handleSubmit=a.handleSubmit.bind(Object(g.a)(a)),a.goBack=a.goBack.bind(Object(g.a)(a)),a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"getInfo",value:function(){var e=this,t={key:this.state.query};k("searchkey",t).then(function(t){e.setState({first:t.first,results:t.list,hides:!0})}).catch(function(e){console.log(e)})}},{key:"clearInput",value:function(){this.search.value="";var e={query:"",results:[],hides:!1,first:{}};this.setState(e),this.props.handleSearchKey(!1),this.props.act_search_key(e),this.props.act_search_data({key:!1,data:[],page:1,scrollTop:0}),this.search.focus()}},{key:"handleInputChange",value:function(){var e=this;this.setState({query:this.search.value},function(){e.state.query&&e.state.query.length>0?e.state.query.length%1===0&&e.getInfo():e.state.query||e.setState({query:"",results:[],hides:!1})})}},{key:"onKeyup",value:function(e){13===e.keyCode&&this.handleSubmit()}},{key:"handleSubmit",value:function(){var e={query:this.state.query,results:[],hides:!1,first:{}};this.setState(e),this.props.act_search_key(e),this.props.handleSearchKey(this.state.query)}},{key:"goBack",value:function(){this.clearInput(),fe.goBack()}},{key:"componentDidMount",value:function(){var e=this.props.red_search_key;e.query.length>0&&(this.search.value=e.query,this.setState(e)),this.search.focus()}},{key:"render",value:function(){var e=this;return l.a.createElement("header",{className:"packup"},l.a.createElement("div",{className:"item-header"},l.a.createElement("div",{onClick:this.goBack,className:"back"},l.a.createElement("i",{className:"fa fa-angle-left"})),l.a.createElement("div",{className:"searchInput"},l.a.createElement("div",{className:"searchI"},l.a.createElement("i",{className:"fa fa-search"}),this.state.query&&this.state.query.length>=1?l.a.createElement("i",{onClick:this.clearInput,className:"fa fa-times-circle"}):null,l.a.createElement("input",{placeholder:"24\u5c0f\u65f6\u70ed\u641c",ref:function(t){return e.search=t},onChange:this.handleInputChange,onKeyUp:this.onKeyup}))),this.state.query&&this.state.query.length>=1?l.a.createElement("button",{onClick:this.handleSubmit,className:"search-btn"},"\u641c\u7d22"):l.a.createElement("div",{onClick:this.goBack,className:"search-back"},"\u53d6\u6d88"),l.a.createElement(pe,{first:this.state.first,results:this.state.results,hd:this.state.hides,query:this.state.query})))}}]),t}(c.Component);ve.contextTypes={router:Ae.a.object.isRequired};var be=Object(n.b)(B,function(e){return Object(T.b)(P,e)})(ve),Ce=function(e){function t(e){var a;return Object(h.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).state={soft:[],game:[]},a.pushKey=a.pushKey.bind(Object(g.a)(a)),a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"pushKey",value:function(e){this.props.handleSearchKey(e)}},{key:"getData",value:function(){var e=this;k("getkey").then(function(t){t&&e.setState({soft:t.soft,game:t.game})}).catch(function(e){console.log(e)})}},{key:"componentDidMount",value:function(){this.getData()}},{key:"render",value:function(){var e=this,t=this.state,a=t.soft,n=t.game;return l.a.createElement("section",{className:"content bgcolor-fff"},l.a.createElement("div",{className:"bt-block"},l.a.createElement("div",null,l.a.createElement("h1",null,"\u8f6f\u4ef6\u70ed\u8bcd"),l.a.createElement("div",{className:"tagls"},a&&a.length>0&&a.map(function(t,a){return l.a.createElement("span",{key:a,onClick:function(){e.pushKey(t)}},t)}))),l.a.createElement("div",null,l.a.createElement("h1",null,"\u6e38\u620f\u70ed\u8bcd"),l.a.createElement("div",{className:"tagls"},n&&n.length>0&&n.map(function(t,a){return l.a.createElement("span",{key:a,onClick:function(){e.pushKey(t)}},t)})))))}}]),t}(c.Component),Ee=a(32),ye=a(11),ke=a.n(ye),Ke=0,we=function(e){function t(e){var a;return Object(h.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).handleAction=function(e){if((e===a.state.action||e===ye.STATS.refreshing)&&(a.state.action===ye.STATS.loading||e===ye.STATS.loading)&&a.state.action===ye.STATS.refreshing)return!1;if(e===ye.STATS.refreshing)setTimeout(function(){a.getFirstData(a.state.key)},300);else if(e===ye.STATS.loading){var t=a.state.key,n=a.state.page;a.setState({hasMore:!0}),setTimeout(function(){a.getNewData(t,n)},300)}a.setState({action:e})},a.state={hasMore:!0,data:[],action:ye.STATS.init,page:1,isScrollBottom:Ke,scrollheight:0},a.setData=a.setData.bind(Object(g.a)(a)),a.onScrollHandle=a.onScrollHandle.bind(Object(g.a)(a)),a.download=a.download.bind(Object(g.a)(a)),a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"onScrollHandle",value:function(e){var t=e.target.clientHeight,a=e.target.scrollHeight,n=t+e.target.scrollTop===a;this.state.isScrollBottom!==n&&this.setState({isScrollBottom:n})}},{key:"getFirstData",value:function(e){var t=this,a={key:e,page:1};k("search",a).then(function(n){n.length>0?t.setState({data:n,action:ye.STATS.reset,page:a.page,key:e}):t.setState({action:ye.STATS.reset,hasMore:!1})}).catch(function(e){console.log(e)})}},{key:"getNewData",value:function(e,t){var a=this,n={key:e,page:Number(t+1)};k("search",n).then(function(e){e.length>0?(a.setState({data:Object(Ee.a)(a.state.data),action:ye.STATS.reset,page:t+1}),e.forEach(function(e,t){a.state.data.push(e)})):a.setState({action:ye.STATS.reset,hasMore:!1})}).catch(function(e){console.log(e)})}},{key:"setData",value:function(){var e=document.getElementById("train-course").scrollTop,t=this.state,a=t.key,n=t.data,o=t.page;this.props.act_search_data({key:a,data:n,page:o,scrollTop:e})}},{key:"download",value:function(e,t){var a=this.refs.frame;k("download",{id:t}).then(function(e){e&&(a.src=e)}).catch(function(e){console.log(e)}),e.preventDefault()}},{key:"componentDidMount",value:function(){var e=this;if(this.contentNode&&(this.contentNode.addEventListener("scroll",this.onScrollHandle.bind(this)),this.contentNode.scrollTop=Ke),document.getElementById("train-course").addEventListener("scroll",function(t){return e.onScrollHandle(t)}),this.props.list.length>0)this.setState({key:this.props.data,data:this.props.list,action:ye.STATS.reset,page:this.props.page}),setTimeout(function(){document.getElementById("train-course").scrollTop=this.props.listHeight}.bind(this),200);else{var t=this.props.data;t!==this.state.key&&this.getFirstData(t)}}},{key:"componentWillUnmount",value:function(){this.contentNode&&(this.contentNode.removeEventListener("scroll",this.onScrollHandle.bind(this)),Ke=this.contentNode.scrollTop)}},{key:"componentWillReceiveProps",value:function(e){var t=e.data;t!==this.state.key&&(this.getFirstData(t),document.getElementById("train-course").scrollTop=0)}},{key:"render",value:function(){var e=this,t=this.state,a=t.data,n=t.hasMore;return l.a.createElement("section",{className:"content nobottom bgcolor-fff"},l.a.createElement(ke.a,{id:"train-course",className:"scroll-block",isBlockContainer:!0,downEnough:200,action:this.state.action,handleAction:this.handleAction,hasMore:n,distanceBottom:1e3},a.length>0&&a.map(function(t,a){return l.a.createElement(j.a,{to:"/item/".concat(t.id),className:"row apkls",key:t.id,onClick:e.setData},l.a.createElement("div",{className:"col col-20"},l.a.createElement(D,{src:t.more.cover})),l.a.createElement("div",{className:"col col-66 apkmore"},l.a.createElement("h1",null,t.title),l.a.createElement("div",null,l.a.createElement("span",null,t.apk_count,"\u4eba\u4e0b\u8f7d"),l.a.createElement("span",null,t.more.apk_size)),l.a.createElement("h3",null,t.more.intro)),l.a.createElement("button",{className:"col download",onClick:function(a){e.download(a,t.id)}},"\u4e0b\u8f7d"))})),l.a.createElement("iframe",{ref:"frame",src:"",title:"download",style:{display:"none"}}))}}]),t}(c.Component);var je=Object(n.b)(B,function(e){return Object(T.b)(P,e)})(we),Oe=function(e){function t(e){var a;return Object(h.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).state={isLoading:!0,listHeight:0,list:[],key:!1,page:1},a.handleDownload=a.handleDownload.bind(Object(g.a)(a)),a.handleSearchKey=a.handleSearchKey.bind(Object(g.a)(a)),a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"componentWillMount",value:function(){this.setState({isLoading:!1}),this.props.act_search_data({key:!1,data:[],page:1,scrollTop:0})}},{key:"handleSearchKey",value:function(e){this.setState({key:e})}},{key:"handleDownload",value:function(e){this.refs.frame.src=e}},{key:"componentDidMount",value:function(){var e=this.props.red_search_data;""!==e.key&&this.setState({key:e.key,listHeight:e.scrollTop,list:e.data,page:e.page}),setTimeout(function(){var e=this._container,t=this.props.red_index_height;void 0===t&&(t=0),void 0!==e&&(e.scrollTop=t)}.bind(this),200)}},{key:"render",value:function(){var e=this.state,t=e.key,a=e.listHeight,n=e.list,o=e.page;return l.a.createElement("div",null,this.state.isLoading?l.a.createElement(v.a,{color:"#34affb",height:3}):l.a.createElement("div",null,l.a.createElement(be,{handleSearchKey:this.handleSearchKey}),t&&t.length>0?l.a.createElement(je,{data:t,listHeight:a,list:n,page:o,type:"search"}):l.a.createElement(Ce,{handleSearchKey:this.handleSearchKey})))}}]),t}(c.Component);var Se=Object(n.b)(B,function(e){return Object(T.b)(P,e)})(Oe),Ne=function(e){function t(e){var a;return Object(h.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).state={isLoading:!0,active:1,data:[]},a.changeClassify=a.changeClassify.bind(Object(g.a)(a)),a.setActiveID=a.setActiveID.bind(Object(g.a)(a)),a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"getData",value:function(){var e=this;k("classify").then(function(t){e.setState({isLoading:!1,data:t})}).catch(function(e){console.log(e)})}},{key:"changeClassify",value:function(e){this.setState({active:e})}},{key:"setActiveID",value:function(e){this.props.act_classify_id(e)}},{key:"componentDidMount",value:function(){this.getData(),this.setState({active:this.props.red_classify_id})}},{key:"render",value:function(){var e=this,t=this.state.data;return l.a.createElement("div",null,this.state.isLoading?l.a.createElement(v.a,{color:"#34affb",height:3}):l.a.createElement("div",null,t&&l.a.createElement(X,null),l.a.createElement("section",{className:"content bgcolor-fff"},l.a.createElement("div",{className:"block row classify"},t&&t.length>0&&t.map(function(t,a){return l.a.createElement("div",{className:"col col-50 ".concat(t.id===e.state.active?"active":""),key:a,onClick:function(){e.changeClassify(t.id)}},l.a.createElement("i",{className:"fa ".concat("\u8f6f\u4ef6"===t.classname?"fa-tasks":"fa-gamepad"," ")}),l.a.createElement("h1",null,t.classname))}),l.a.createElement("div",{className:"c-tab-ink-bar ".concat(t[1].id===this.state.active?"active":"")},l.a.createElement("div",{className:"c-tab-bar-inner"}))),l.a.createElement("div",{className:"block"},t&&t.length>0&&t.map(function(t,a){return t.id===e.state.active&&l.a.createElement("div",{className:"row row-wrap sm-classify",key:a},t.classify.map(function(a,n){return l.a.createElement(j.a,{to:{pathname:"/list/".concat(a.id),state:{type:"classlist",title:a.classname}},className:"col col-25",key:n,onClick:function(){e.setActiveID(t.id)}},l.a.createElement("i",{className:"fa fa-gg"}),a.classname)}))}))),l.a.createElement(w,null)))}}]),t}(c.Component);var De=Object(n.b)(B,function(e){return Object(T.b)(P,e)})(Ne),Te=de()(),Be=function(e){function t(e){var a;return Object(h.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).clearInput=a.clearInput.bind(Object(g.a)(a)),a.goBack=a.goBack.bind(Object(g.a)(a)),a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"clearInput",value:function(){this.props.act_list_data({cid:!1,data:[],page:1,scrollTop:0})}},{key:"goBack",value:function(){this.clearInput(),Te.goBack()}},{key:"render",value:function(){return l.a.createElement("header",{className:"packup"},l.a.createElement("div",{className:"item-header"},l.a.createElement("div",{onClick:this.goBack,className:"back"},l.a.createElement("i",{className:"fa fa-angle-left"})),l.a.createElement("h1",{className:"item-nav"},this.props.title),l.a.createElement(j.a,{to:"/search",className:"search"},l.a.createElement("i",{className:"fa fa-search"}))))}}]),t}(c.Component);Be.contextTypes={router:Ae.a.object.isRequired};var Pe=Object(n.b)(B,function(e){return Object(T.b)(P,e)})(Be),Qe=function(e){function t(e){var a;return Object(h.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).handleAction=function(e){if((e===a.state.action||e===ye.STATS.refreshing)&&(a.state.action===ye.STATS.loading||e===ye.STATS.loading)&&a.state.action===ye.STATS.refreshing)return!1;if(e===ye.STATS.refreshing)setTimeout(function(){a.getFirstData(a.state.cid,a.state.type)},300);else if(e===ye.STATS.loading){var t=a.state.cid,n=a.state.page,o=a.state.type;a.setState({hasMore:!0}),setTimeout(function(){a.getNewData(t,n,o)},300)}a.setState({action:e})},a.state={hasMore:!0,data:[],action:ye.STATS.init,page:1,isScrollBottom:0,scrollTop:0},a.setData=a.setData.bind(Object(g.a)(a)),a.onScrollHandle=a.onScrollHandle.bind(Object(g.a)(a)),a.download=a.download.bind(Object(g.a)(a)),a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"onScrollHandle",value:function(e){var t=e.target.clientHeight,a=e.target.scrollHeight,n=t+e.target.scrollTop===a;this.state.isScrollBottom!==n&&this.setState({isScrollBottom:n})}},{key:"getFirstData",value:function(e,t){var a=this,n={id:e,page:1};k(t,n).then(function(o){o.length>0?a.setState({data:o,action:ye.STATS.reset,page:n.page,cid:e,type:t}):a.setState({action:ye.STATS.reset,hasMore:!1})}).catch(function(e){console.log(e)})}},{key:"getNewData",value:function(e,t,a){var n=this,o={id:e,page:Number(t+1)};k(a,o).then(function(e){e.length>0?(n.setState({data:Object(Ee.a)(n.state.data),action:ye.STATS.reset,page:t+1}),e.forEach(function(e,t){n.state.data.push(e)})):n.setState({action:ye.STATS.reset,hasMore:!1})}).catch(function(e){console.log(e)})}},{key:"setData",value:function(){var e=document.getElementById("train-course").scrollTop,t=this.state,a=t.cid,n=t.data,o=t.page;this.props.act_list_data({cid:a,data:n,page:o,scrollTop:e})}},{key:"download",value:function(e,t){var a=this.refs.frame;k("download",{id:t}).then(function(e){e&&(a.src=e)}).catch(function(e){console.log(e)}),e.preventDefault()}},{key:"componentDidMount",value:function(){var e=this;this.contentNode&&(this.contentNode.addEventListener("scroll",this.onScrollHandle.bind(this)),this.contentNode.scrollTop=this.state.scrollTop),document.getElementById("train-course").addEventListener("scroll",function(t){return e.onScrollHandle(t)});var t=this.props.data,a=this.props.type;t!==this.state.cid&&(this.getFirstData(t,a),document.getElementById("train-course").scrollTop=0),setTimeout(function(){var t=e.props.red_list_data;t.data.length>0&&t.cid===e.state.cid&&(e.setState({data:t.data,page:t.page,action:ye.STATS.reset}),document.getElementById("train-course").scrollTop=t.scrollTop)},50)}},{key:"componentWillUnmount",value:function(){this.contentNode&&this.contentNode.removeEventListener("scroll",this.onScrollHandle.bind(this))}},{key:"render",value:function(){var e=this,t=this.state,a=t.data,n=t.hasMore;return l.a.createElement("section",{className:"content nobottom bgcolor-fff"},l.a.createElement(ke.a,{id:"train-course",className:"scroll-block",isBlockContainer:!0,downEnough:200,action:this.state.action,handleAction:this.handleAction,hasMore:n,distanceBottom:1e3},a.length>0&&a.map(function(t,a){return l.a.createElement(j.a,{to:"/item/".concat(t.id),className:"row apkls",key:a,onClick:e.setData},l.a.createElement("div",{className:"col col-20"},l.a.createElement(D,{src:t.more.cover})),l.a.createElement("div",{className:"col col-66 apkmore"},l.a.createElement("h1",null,t.title),l.a.createElement("div",null,l.a.createElement("span",null,t.apk_count,"\u4eba\u4e0b\u8f7d"),l.a.createElement("span",null,t.more.apk_size)),l.a.createElement("h3",null,t.more.intro)),l.a.createElement("button",{className:"col download",onClick:function(a){e.download(a,t.id)}},"\u4e0b\u8f7d"))})),l.a.createElement("iframe",{ref:"frame",src:"",title:"download",style:{display:"none"}}))}}]),t}(c.Component);var Ie=Object(n.b)(B,function(e){return Object(T.b)(P,e)})(Qe),He=function(e){function t(e){var a;return Object(h.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).state={isLoading:!0,listHeight:0,list:[],cid:a.props.match.params.id,type:a.props.location.state.type,title:a.props.location.state.title,page:1},a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"componentWillMount",value:function(){this.setState({isLoading:!1})}},{key:"render",value:function(){var e=this.state,t=e.cid,a=e.type;return l.a.createElement("div",null,this.state.isLoading?l.a.createElement(v.a,{color:"#34affb",height:3}):l.a.createElement("div",null,l.a.createElement(Pe,{title:this.state.title}),a&&l.a.createElement(Ie,{data:t,type:a})))}}]),t}(c.Component);var xe=Object(n.b)(B,function(e){return Object(T.b)(P,e)})(He),Le=function(e){function t(e){var a;Object(h.a)(this,t);var n=(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).props.data;return a.state={img:n},a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"render",value:function(){var e=this.state.img;return l.a.createElement("div",null,e&&l.a.createElement("div",{className:"swiper adimg"},l.a.createElement(j.a,{to:"/item/".concat(e.id)},l.a.createElement("img",{src:e.img,className:"img-100",alt:e.id}))))}}]),t}(c.Component),Ye=function(e){function t(e){var a;Object(h.a)(this,t);var n=(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).props.data;return a.state={topic:n,scrollTop:a.props.height,type:a.props.type},a.download=a.download.bind(Object(g.a)(a)),a.setHeight=a.setHeight.bind(Object(g.a)(a)),a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"setHeight",value:function(e){"soft"===this.state.type?this.props.act_soft_height(this.state.scrollTop):this.props.act_game_height(this.state.scrollTop)}},{key:"download",value:function(e,t){this.props.handleDownload(t),e.preventDefault()}},{key:"componentWillReceiveProps",value:function(e){var t=e.height;void 0===t&&(t=0),this.setState({scrollTop:t})}},{key:"render",value:function(){var e=this;return l.a.createElement("div",null,this.state.topic&&this.state.topic.length>0&&this.state.topic.map(function(t,a){return l.a.createElement("div",{className:"block",key:t.id},l.a.createElement("div",{className:"catalog"},l.a.createElement("div",{className:"row"},l.a.createElement("div",{className:"col b-title"},t.title),l.a.createElement(j.a,{to:{pathname:"/list/".concat(t.id),state:{type:"topic",title:t.title}},className:"col title-more"},l.a.createElement("i",{className:"fa fa-angle-right"})))),t.apks.length>0&&t.apks.map(function(t,a){return l.a.createElement(j.a,{to:"/item/".concat(t.id),className:"row apkls",key:t.id,onClick:e.setHeight},l.a.createElement("div",{className:"col col-20"},l.a.createElement(D,{src:t.more.cover})),l.a.createElement("div",{className:"col col-66 apkmore"},l.a.createElement("h1",null,t.title),l.a.createElement("div",null,l.a.createElement("span",null,t.apk_count,"\u4eba\u4e0b\u8f7d"),l.a.createElement("span",null,t.more.apk_size)),l.a.createElement("h3",null,t.more.intro)),l.a.createElement("button",{className:"col download",onClick:function(a){e.download(a,t.id)}},"\u4e0b\u8f7d"))}))}))}}]),t}(c.Component);var qe=Object(n.b)(B,function(e){return Object(T.b)(P,e)})(Ye),ze=function(e){function t(e){var a;return Object(h.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).state={must:a.props.data,scrollTop:a.props.height,downurl:"",type:a.props.type},a.download=a.download.bind(Object(g.a)(a)),a.setHeight=a.setHeight.bind(Object(g.a)(a)),a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"setHeight",value:function(e){"soft"===this.state.type?this.props.act_soft_height(this.state.scrollTop):this.props.act_game_height(this.state.scrollTop)}},{key:"download",value:function(e,t){this.props.handleDownload(t),e.preventDefault()}},{key:"componentWillReceiveProps",value:function(e){var t=e.height;void 0===t&&(t=0),this.setState({scrollTop:t})}},{key:"render",value:function(){var e=this;return l.a.createElement("div",null,this.state.must&&this.state.must.length>0&&this.state.must.map(function(t,a){return l.a.createElement("div",{className:"block",key:t.id},l.a.createElement("div",{className:"catalog"},l.a.createElement("div",{className:"row"},l.a.createElement("div",{className:"col b-title"},t.title),l.a.createElement("div",{className:"col title-more"},l.a.createElement("i",{className:"fa"})))),l.a.createElement(Y.a,{iScroll:x.a,className:"inner",options:{eventPassthrough:!0,scrollX:!0,scrollY:!1}},l.a.createElement("ul",{className:"list"},l.a.createElement("li",null,t.apks.length>0&&t.apks.map(function(t,a){return l.a.createElement(j.a,{className:"apkls",to:{pathname:"/item/".concat(t.id),state:{id:t.id}},key:t.id,onClick:e.setHeight},l.a.createElement("div",null,l.a.createElement(D,{src:t.more.cover})),l.a.createElement("div",{className:"apkmore"},l.a.createElement("h1",null,t.title),l.a.createElement("h5",null,t.more.apk_size)),l.a.createElement("button",{className:"download",onClick:function(a){e.download(a,t.id)}},"\u4e0b\u8f7d"))})))))}))}}]),t}(c.Component);var Me=Object(n.b)(B,function(e){return Object(T.b)(P,e)})(ze),Fe=function(e){function t(e){var a;return Object(h.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).state={scrollTop:a.props.height,rank:a.props.data,type:a.props.type},a.setHeight=a.setHeight.bind(Object(g.a)(a)),a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"setHeight",value:function(e){"soft"===this.state.type?this.props.act_soft_height(this.state.scrollTop):this.props.act_game_height(this.state.scrollTop)}},{key:"componentWillReceiveProps",value:function(e){var t=e.height;void 0===t&&(t=0),this.setState({scrollTop:t})}},{key:"render",value:function(){var e=this,t=this.state.rank;return l.a.createElement("div",{className:"block"},l.a.createElement("div",{className:"row rank"},t.length>0&&t.map(function(t,a){return l.a.createElement(j.a,{className:"col col-33",to:{pathname:"/list/".concat(t.id),state:{type:"topic",title:t.title}},key:a,onClick:e.setHeight},l.a.createElement("i",{className:"fa ".concat(t.more)}),l.a.createElement("span",null,t.title))})))}}]),t}(c.Component);var Je=Object(n.b)(B,function(e){return Object(T.b)(P,e)})(Fe),Ue=function(e){function t(e){var a;return Object(h.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).state={isLoading:!0,scrollTop:0,type:""},a.handleScroll=a.handleScroll.bind(Object(g.a)(a)),a.handleDownload=a.handleDownload.bind(Object(g.a)(a)),a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"componentWillMount",value:function(){var e=this.props.location.state.type;this.setState({type:e})}},{key:"getData",value:function(){var e=this,t=this.state.type;k(t).then(function(t){e.setState({isLoading:!1,data:t})}).catch(function(e){console.log(e)})}},{key:"handleScroll",value:function(){var e=this._container.scrollTop;this.setState({scrollTop:e})}},{key:"handleDownload",value:function(e){var t=this.refs.frame;k("download",{id:e}).then(function(e){e&&(t.src=e)}).catch(function(e){console.log(e)})}},{key:"componentDidMount",value:function(){this.setState({isLoading:!0}),this.getData(),setTimeout(function(){var e=this._container,t=this.props.red_soft_height;void 0===t&&(t=0),void 0!==e&&(e.scrollTop=t)}.bind(this),100)}},{key:"render",value:function(){var e=this,t=this.state.data;return l.a.createElement("div",null,this.state.isLoading?l.a.createElement(v.a,{color:"#34affb",height:3}):l.a.createElement("div",null,t&&l.a.createElement(X,{height:this.state.scrollTop}),t&&l.a.createElement("section",{className:"content",ref:function(t){return e._container=t},onScrollCapture:function(){return e.handleScroll()}},l.a.createElement(Le,{data:t.ad}),l.a.createElement(Je,{data:t.rank,height:this.state.scrollTop,type:this.state.type}),l.a.createElement(Me,{data:t.choice,handleDownload:this.handleDownload,height:this.state.scrollTop,type:this.state.type}),l.a.createElement(qe,{data:t.topic,handleDownload:this.handleDownload,height:this.state.scrollTop,type:this.state.type}),l.a.createElement(J,null),l.a.createElement("iframe",{ref:"frame",src:"",title:"download",style:{display:"none"}})),l.a.createElement(w,null)))}}]),t}(c.Component);var Ge=Object(n.b)(B,function(e){return Object(T.b)(P,e)})(Ue),Ze=function(e){function t(e){var a;return Object(h.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).state={isLoading:!0,scrollTop:0,type:""},a.handleScroll=a.handleScroll.bind(Object(g.a)(a)),a.handleDownload=a.handleDownload.bind(Object(g.a)(a)),a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"componentWillMount",value:function(){var e=this.props.location.state.type;this.setState({type:e})}},{key:"getData",value:function(){var e=this,t=this.state.type;k(t).then(function(t){e.setState({isLoading:!1,data:t})}).catch(function(e){console.log(e)})}},{key:"handleScroll",value:function(){var e=this._container.scrollTop;this.setState({scrollTop:e})}},{key:"handleDownload",value:function(e){var t=this.refs.frame;k("download",{id:e}).then(function(e){e&&(t.src=e)}).catch(function(e){console.log(e)})}},{key:"componentDidMount",value:function(){this.setState({isLoading:!0}),this.getData(),setTimeout(function(){var e=this._container,t=this.props.red_game_height;void 0===t&&(t=0),void 0!==e&&(e.scrollTop=t)}.bind(this),100)}},{key:"render",value:function(){var e=this,t=this.state.data;return l.a.createElement("div",null,this.state.isLoading?l.a.createElement(v.a,{color:"#34affb",height:3}):l.a.createElement("div",null,t&&l.a.createElement(X,{height:this.state.scrollTop}),t&&l.a.createElement("section",{className:"content",ref:function(t){return e._container=t},onScrollCapture:function(){return e.handleScroll()}},l.a.createElement(Le,{data:t.ad}),l.a.createElement(Je,{data:t.rank,height:this.state.scrollTop,type:this.state.type}),l.a.createElement(Me,{data:t.choice,handleDownload:this.handleDownload,height:this.state.scrollTop,type:this.state.type}),l.a.createElement(qe,{data:t.topic,handleDownload:this.handleDownload,height:this.state.scrollTop,type:this.state.type}),l.a.createElement(J,null),l.a.createElement("iframe",{ref:"frame",src:"",title:"download",style:{display:"none"}})),l.a.createElement(w,null)))}}]),t}(c.Component);var Xe=Object(n.b)(B,function(e){return Object(T.b)(P,e)})(Ze),Re=function(){return l.a.createElement(r.a,null,l.a.createElement(A.a,{exact:!0,path:"/",component:_}),l.a.createElement(A.a,{path:"/item/:id",component:ie}),l.a.createElement(A.a,{path:"/search",component:Se}),l.a.createElement(A.a,{exact:!0,path:"/classify",component:De}),l.a.createElement(A.a,{path:"/list/:id",component:xe}),l.a.createElement(A.a,{exact:!0,path:"/soft",component:Ge}),l.a.createElement(A.a,{exact:!0,path:"/game",component:Xe}))},_e=a(57);var We=Object(T.c)({red_index_height:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INDEX_HEIGHT":return t.data;default:return e}},red_search_key:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{query:"",results:[],hides:!1,first:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SEARCH_KEY":return t.data;default:return e}},red_search_data:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{key:!1,data:[],page:1,scrollTop:0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SEARCH_DATA":return t.data;default:return e}},red_list_data:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{cid:!1,data:[],page:1,scrollTop:0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LIST_DATA":return t.data;default:return e}},red_classify_id:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CLASSIFY_ID":return t.data;default:return e}}}),Ve=Object(T.a)(_e.a)(T.d)(We);a(115),Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function $e(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(function(e){e.unregister()})}s.a.render(l.a.createElement(n.a,{store:Ve},l.a.createElement(i.a,null,l.a.createElement(Re,null))),document.getElementById("root")),$e()},55:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATMAAABQCAYAAAB1T5IeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABZ0RVh0Q3JlYXRpb24gVGltZQAwMy8xNC8xOf3wyv8AAAAfdEVYdFNvZnR3YXJlAE1hY3JvbWVkaWEgRmlyZXdvcmtzIDi1aNJ4AAAVeklEQVR4nO2dW3AkV3nHf6d7em66zIy08q5sryVvB18Wwy6QhEtie7lWhcRYuLATIAa58LqcShlkHsJDEhCkyEOSKst2Hly7BMuGuJJKgXdJkao8BEsbSDAQ0AZjex33erS73l32qpE0o7n2yUO3tNJsz2iumtHo/Kpk73SfPn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