text: exports.ids=[4],exports.modules={6:function(e,t){e.exports=require("react-bootstrap")},8:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={STORESERVER:"http://z.cn/api/cms/",WORKERMANSERVER:"http://127.0.0.1:2120"},e.exports=t.default},10:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Model=void 0;var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(8),c=r(f),s=n(17),d=c.default.STORESERVER,p={url:"",data:{},type:"get",server:d},_=function(e){function t(){return o(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),i(t,[{key:"ajaxData",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,n=arguments[1];return t=l({},p,t),new Promise(function(r){e.newAjax({url:t.server+t.url,data:t.data,type:t.type},n).then(function(e){r(e)})})}}]),t}(s.Utils);t.Model=_},15:function(e,t){e.exports=require("react-css-modules")},68:function(e,t){e.exports={"section-main":"n3gfAgW-",sectionMain:"n3gfAgW-","section-item":"_3g2QV4Cu",sectionItem:"_3g2QV4Cu","section-item-title":"_43hgMT-X",sectionItemTitle:"_43hgMT-X","section-item-value":"_3nILjWW0",sectionItemValue:"_3nILjWW0"}},119:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0}),t.homeInit=void 0;var u=n(61),a=o(u),l=n(123),i=r(l),f=function(e){return{type:a.HOME_INIT,data:e}};t.homeInit=function(){return function(e){i.default.getUsers().then(function(t){e(f({user_count:t}))}),i.default.getProds().then(function(t){e(f(t))}),i.default.getOrders().then(function(t){e(f(t))})}}},120:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),u=r(o),a=n(68),l=r(a),i=n(121),f=r(i),c=n(6),s=function(e){var t=e.data;return u.default.createElement("section",{className:l.default.sectionMain},u.default.createElement(c.Grid,null,u.default.createElement(c.Row,{className:"show-grid"},u.default.createElement(c.Col,{lg:2},u.default.createElement(c.Panel,{header:"会员信息",bsStyle:"info"},u.default.createElement(f.default,{title:"已关注",value:t.user_count}))),u.default.createElement(c.Col,{lg:3},u.default.createElement(c.Panel,{header:"商品信息",bsStyle:"info"},u.default.createElement(f.default,{title:"上传商品",value:t.total_count}),u.default.createElement(f.default,{title:"上架商品",value:t.on_sale}))),u.default.createElement(c.Col,{lg:7},u.default.createElement(c.Panel,{header:"订单信息",bsStyle:"info"},u.default.createElement(f.default,{title:"未付款",value:t.order_status1}),u.default.createElement(f.default,{title:"已付款",value:t.order_status2}),u.default.createElement(f.default,{title:"已发货",value:t.order_status3}),u.default.createElement(f.default,{title:"库存不足",value:t.order_status4}))))))};t.default=s,e.exports=t.default},121:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),u=r(o),a=n(68),l=r(a),i=n(15),f=r(i),c=function(e){var t=e.title,n=e.value;return u.default.createElement("section",{styleName:"section-item"},u.default.createElement("p",{styleName:"section-item-title"},t),u.default.createElement("p",{styleName:"section-item-value"},n))};t.default=(0,f.default)(c,l.default),e.exports=t.default},122:function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(2),s=o(c),d=n(120),p=o(d),_=n(171),m=o(_),v=n(16),y=n(119),h=r(y),b=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))}return i(t,e),f(t,[{key:"componentWillMount",value:function(){var e=this.props.init;"undefined"!=typeof window&&e()}},{key:"render",value:function(){var e=u(this.props,[]);return s.default.createElement("div",{className:m.default.app},s.default.createElement(p.default,{data:e.data}))}}]),t}(c.Component),O=function(e){return{data:e.home}},E=function(e){return{init:function(){e(h.homeInit())}}};t.default=(0,v.connect)(O,E)(b),e.exports=t.default},123:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(10),o=new r.Model;t.default={getUsers:function(){var e={url:"user/static"};return new Promise(function(t){o.ajaxData(e).then(function(e){t(e)})})},getProds:function(){var e={url:"prod/static"};return new Promise(function(t){o.ajaxData(e).then(function(e){t(e)})})},getOrders:function(){var e={url:"order/static"};return new Promise(function(t){o.ajaxData(e).then(function(e){t(e)})})}},e.exports=t.default},171:function(e,t){e.exports={app:"_1XKvD_3X"}}};