(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{1183:function(e,a,t){},1221:function(e,a,t){"use strict";t.r(a);var n=t(4),l=t(7),r=t(5),c=t(8),s=t(9),m=t(0),_=t.n(m),u=t(3),d=(t(1183),function(e){function a(e){var t;return Object(n.a)(this,a),(t=Object(r.a)(this,Object(c.a)(a).call(this,e))).fetchRankData=function(){u.d.get("".concat(API.home,"/sys/blessing/ranking")).then(function(e){var a=e.data,n=a.code,l=a.data;200===n&&t.setState({rankList:l})})},t.formatString=function(e,a){return e.length>a?"".concat(e.substr(0,a),"..."):e},t.state={rankList:[]},t}return Object(s.a)(a,e),Object(l.a)(a,[{key:"componentDidMount",value:function(){this.fetchRankData()}},{key:"render",value:function(){var e=this,a=this.state.rankList;return _.a.createElement(_.a.Fragment,null,_.a.createElement("div",{className:"rank__banner"}),_.a.createElement("div",{className:"rank__body"},_.a.createElement("div",{className:"rank__table"},_.a.createElement("dl",{className:"rank__table-header"},_.a.createElement("dd",{className:"rank__table-column"},"\u6392\u540d"),_.a.createElement("dd",{className:"rank__table-column"},"\u7528\u6237"),_.a.createElement("dd",{className:"rank__table-column"},"\u6210\u7ee9"),_.a.createElement("dd",{className:"rank__table-column"},"\u5956\u54c1")),a.map(function(a,t){return _.a.createElement("dl",{className:"rank__table-body",key:t},_.a.createElement("dd",{className:"rank__table-column"},t<3?_.a.createElement("i",{className:"rank__table-num","data-num":t+1}):t+1),_.a.createElement("dd",{className:"rank__table-column"},_.a.createElement("div",{className:"rank__table-user"},_.a.createElement("i",{className:"rank__table-portrait",style:{backgroundImage:"url(".concat(a.head_image,")")}}),_.a.createElement("span",null,e.formatString(a.user_name,5)))),_.a.createElement("dd",{className:"rank__table-column"},a.blessing_value),_.a.createElement("dd",{className:"rank__table-column"},e.formatString(a.prize_name,7)))})),_.a.createElement("div",{className:"rank__rule"},_.a.createElement("h2",{className:"rank__rule-title"},"\u6d3b\u52a8\u89c4\u5219"),_.a.createElement("p",{className:"rank__rule-desc"},"1. 11\u67085\u65e5\u81f311\u670813\u65e5\u4e4b\u95f4\u6bcf\u4eba\u6709\u4e00\u6b21\u6d4b\u8bd5\u673a\u4f1a\uff0c\u53ef\u901a\u8fc7\u201c\u96c6\u798f\u6c14\u201d\u6d3b\u52a8\u989d\u5916\u83b7\u5f972\u6b21\u6d4b\u8bd5\u673a\u4f1a\uff1b"),_.a.createElement("p",{className:"rank__rule-desc"},"2. \u5355\u6b21\u6d4b\u8bd5\u65f6\u95f4\u4e3a\u4e00\u5c0f\u65f6\uff0c\u8d85\u65f6\u81ea\u52a8\u63d0\u4ea4\u8bd5\u5377\uff1b"),_.a.createElement("p",{className:"rank__rule-desc"},"3. \u8bd5\u5377\u5185\u5bb9\u4e3aPython\u57fa\u7840\uff088\u9053\u9898*3\u5206\uff09\u3001\u673a\u5668\u5b66\u4e60\uff0812\u9053\u9898*3\u5206\uff09\u3001\u6df1\u5ea6\u5b66\u4e60\uff0810\u9053\u9898*4\u5206\uff09\uff0c\u603b\u5206100\u5206\uff1b"),_.a.createElement("p",{className:"rank__rule-desc"},"4. \u65e0\u56fa\u5b9a\u8bd5\u5377\uff0c\u53c2\u4e0e\u6d4b\u8bd5\u65f6\u4ece\u8bd5\u9898\u5e93\u4e2d\u968f\u673a\u62bd\u9898\u7ec4\u5377\uff1b"),_.a.createElement("p",{className:"rank__rule-desc"},"5. \u6392\u884c\u699c\u5b9e\u65f6\u66f4\u65b0\uff0c\u5206\u6570\u76f8\u540c\u5219\u7528\u65f6\u77ed\u8005\u6392\u540d\u66f4\u9ad8\uff0c\u591a\u6b21\u6d4b\u8bd5\u4fdd\u7559\u6700\u9ad8\u5206\uff1b"),_.a.createElement("p",{className:"rank__rule-desc"},"6. \u5982\u53d1\u73b0\u67d0\u8d26\u53f7\u6709\u4f5c\u5f0a\u5acc\u7591\uff0c\u4e03\u6708\u5728\u7ebf\u6709\u6743\u6e05\u7a7a\u8d26\u53f7\u6d4b\u8bd5\u6210\u7ee9\uff1b"),_.a.createElement("p",{className:"rank__rule-desc"},"7. \u6d3b\u52a8\u6700\u7ec8\u89e3\u91ca\u6743\u5f52\u4e03\u6708\u5728\u7ebf\u6240\u6709\u3002"))))}}]),a}(m.Component));a.default=d}}]);
//# sourceMappingURL=blessing-rank.2ff171ba.chunk.js.map