Aucune description

index.js 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', { value: true });
  3. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  4. var _rollupPluginBabelHelpers = require('../_rollupPluginBabelHelpers-3469b70d.js');
  5. var React = require('react');
  6. var React__default = _interopDefault(React);
  7. require('../_commonjsHelpers-72d386ba.js');
  8. var index = require('../index-44e17595.js');
  9. var styleInject_es = require('../style-inject.es-dcee06b6.js');
  10. var antd = require('antd');
  11. const img = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKoAAACeCAMAAACVQ2ELAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAABEZVhJZk1NACoAAAAIAAGHaQAEAAAAAQAAABoAAAAAAAOgAQADAAAAAQABAACgAgAEAAAAAQAAAKqgAwAEAAAAAQAAAJ4AAAAAi9HANwAAAHVQTFRFR3BM8cxv6ZkU+cND97w78a8t87Y0879D8M11/fDX658b76km8Mtt+9hj8cxt78pu46BA9blO7KQg5ZIM8Mtr8Mpt/s9b4p8/6KJN+MZW/95p6aVD7q9K6qpA7rVI8b9S66w/99GJ+MhN+9dh+uO16KAw+9VhDAjuxQAAACd0Uk5TABDc3Nzc3NwH3NzcQdwkGtzc3NwuN9zc3Nzc3NykZE9/3LqZ3LpykugjDgAAD+NJREFUeNrMm4d2skoUhYOUIRQJBDQo3fL+j3inN2YQFdf9zyAtGr7s00Y0X19PmlP1w9Anmf0ZoZNlztf/bsnw99fA8ffXDlVoeELWtVMOwDQNiY4bZmXfdQOyrt9/mrTHlMSav7bTtU0uwHVdAFy0mTpH8kXX3v7In0n/1C78KGorSAntIKtTtZiTGYLFOGEy3P4a9aUINvsc6H5oQK5eEsKyC2YDkDgpbFvCkLj9zTDxa9uP6ZoAolmuKYv9HHaTDopZQWvmxJZ8iNQ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Yy1kAjgCV+fUGqlm4NqX2+z7b4LtqkTmH2BBsta8rnaDYX/EHyKRIFJByO8sperd8+58CJuxXgJ4wETV5QG6vDcPqxkiOuVDJxUo8c4+bwTtHmVm95dkEumvNzjVH/dWrpxXarpa4WJXZDKofPNEM+HhpqHMCQXNbJWnKm911BlgHJ65wC7xxLONaBtx82VP74cSrXTndMGYGeOQH/Lk/KdWMmKBtzXg5+HBnrSPt4DC/ormFwd6sEkL4ZDGRCCIbkhABEsyk55BBkab85Z5V9IJr4Byy84tMiq0nX1Wb4DSKgnpFUb+at/eGS1hMG5fczDuJswYxC864C8AObbJRYQMspEW8UeMXeIL+n0yZMNF2xTNJae6SlY20yHFL4GM2IMrEmUHZwU1WjlkLWDLPTgF7QiBmwozbaiy/8JErAjhcuhAt4CXAADzAe+38DYkYIAFl3v9jeN/6ECxHyiZYggvc97hdkbGkJ+NoZ/XcBSyYFvCyK7XXzFc43JQSjfyTzcr21SvQCygt0Rdh0xNqGJKhF+Fgdp+8KOgp7lPkOiKm9M5ZubDi/OVLnFwf0uIN0CzQ+LkSvrWMEzkT6dsfaoFygwPEbbaEWKHk74x6E7ajoAmYsyMWQxGraAmmx7cwAW3pDLzyBzB6sObzu3z7oc9cwp7bPcGsK9fC7FDV/MMfFAUiQ8ffsg6O+XsT/hwsT+lCdwIyX++HWju/ZkQSXi7Jkb/DG475r/sPlJV8EeQMWS2OIjNHav6J8ZoXcyBv9SLEP4LtGiVauTr/LWMjMnS/54n/AKQJQkF7QcnvAAAAAElFTkSuQmCC';
  12. var css = ".WantedPublishView_wrapper__2FJKA .WantedPublishView_wanted_middle__3_I5N {\n color: #E1AD28;\n font-size: 17px;\n margin-top: 21px;\n}\n.WantedPublishView_wrapper__2FJKA .WantedPublishView_wanted_middle__3_I5N .WantedPublishView_wanted_cover__1GyLG {\n width: 95px;\n}\n.WantedPublishView_wrapper__2FJKA .WantedPublishView_wanted_bottom__2OLWz .WantedPublishView_wanted_bottom_title__3w7VB {\n color: #565656;\n font-size: 14px;\n}\n.WantedPublishView_wrapper__2FJKA .WantedPublishView_wanted_bottom__2OLWz .WantedPublishView_wanted_input_number__1lQvS {\n margin: 11px auto;\n width: 266px;\n height: 36px;\n}\n.WantedPublishView_wrapper__2FJKA .WantedPublishView_wanted_bottom__2OLWz .WantedPublishView_wanted_input_number__1lQvS .ant-input {\n color: #FB4B56;\n font-size: 16px;\n text-align: center;\n}\n.WantedPublishView_wrapper__2FJKA .WantedPublishView_wanted_bottom__2OLWz .WantedPublishView_wanted_input_number__1lQvS .ant-input:focus,\n.WantedPublishView_wrapper__2FJKA .WantedPublishView_wanted_bottom__2OLWz .WantedPublishView_wanted_input_number__1lQvS .ant-input:hover {\n outline: none;\n box-shadow: none;\n border-color: #FB4B56;\n}\n.WantedPublishView_wrapper__2FJKA .WantedPublishView_wanted_bottom__2OLWz .WantedPublishView_wanted_bottom_tips__3XOZV {\n color: #9B9B9B;\n font-size: 12px;\n}\n.WantedPublishView_wrapper__2FJKA footer {\n margin-top: 40px;\n}\n.WantedPublishView_wrapper__2FJKA footer .WantedPublishView_wanted_confirm_button__1gXu5 {\n font-size: 16px;\n color: white;\n background-color: #71C135;\n}\n.WantedPublishView_wrapper__2FJKA footer .WantedPublishView_wanted_confirm_button__1gXu5:hover,\n.WantedPublishView_wrapper__2FJKA footer .WantedPublishView_wanted_confirm_button__1gXu5:focus {\n color: white;\n outline: none;\n box-shadow: none;\n background-color: #8cd158;\n border-color: #fafdf8;\n}\n.WantedPublishView_wrapper__2FJKA footer .WantedPublishView_wanted_cancel_button__3tFE0 {\n margin-top: 12px;\n color: #787F8C;\n font-size: 12px;\n cursor: pointer;\n}\n.WantedPublishView_wrapper__2FJKA footer .WantedPublishView_wanted_cancel_button__3tFE0:hover,\n.WantedPublishView_wrapper__2FJKA footer .WantedPublishView_wanted_cancel_button__3tFE0:focus {\n color: #787F8C;\n text-shadow: #565656;\n}\n";
  13. var styles = {"wrapper":"WantedPublishView_wrapper__2FJKA","wanted_middle":"WantedPublishView_wanted_middle__3_I5N","wanted_cover":"WantedPublishView_wanted_cover__1GyLG","wanted_bottom":"WantedPublishView_wanted_bottom__2OLWz","wanted_bottom_title":"WantedPublishView_wanted_bottom_title__3w7VB","wanted_input_number":"WantedPublishView_wanted_input_number__1lQvS","wanted_bottom_tips":"WantedPublishView_wanted_bottom_tips__3XOZV","wanted_confirm_button":"WantedPublishView_wanted_confirm_button__1gXu5","wanted_cancel_button":"WantedPublishView_wanted_cancel_button__3tFE0","wantedMiddle":"WantedPublishView_wanted_middle__3_I5N","wantedCover":"WantedPublishView_wanted_cover__1GyLG","wantedBottom":"WantedPublishView_wanted_bottom__2OLWz","wantedBottomTitle":"WantedPublishView_wanted_bottom_title__3w7VB","wantedInputNumber":"WantedPublishView_wanted_input_number__1lQvS","wantedBottomTips":"WantedPublishView_wanted_bottom_tips__3XOZV","wantedConfirmButton":"WantedPublishView_wanted_confirm_button__1gXu5","wantedCancelButton":"WantedPublishView_wanted_cancel_button__3tFE0"};
  14. styleInject_es.styleInject(css);
  15. var WantedPublishView =
  16. /*#__PURE__*/
  17. function (_React$Component) {
  18. _rollupPluginBabelHelpers._inherits(WantedPublishView, _React$Component);
  19. function WantedPublishView(props) {
  20. var _this;
  21. _rollupPluginBabelHelpers._classCallCheck(this, WantedPublishView);
  22. _this = _rollupPluginBabelHelpers._possibleConstructorReturn(this, _rollupPluginBabelHelpers._getPrototypeOf(WantedPublishView).call(this, props));
  23. _this.state = {};
  24. return _this;
  25. }
  26. _rollupPluginBabelHelpers._createClass(WantedPublishView, [{
  27. key: "render",
  28. value: function render() {
  29. var _this2 = this;
  30. var _this$props = this.props,
  31. current_wanted = _this$props.current_wanted,
  32. wrapperClass = _this$props.wrapperClass;
  33. return React__default.createElement("div", {
  34. className: index.classnames(styles.wrapper, _rollupPluginBabelHelpers._defineProperty({}, wrapperClass ? wrapperClass : '', true))
  35. }, React__default.createElement("header", null, "\u8BBE\u7F6E\u60AC\u8D4F\u91D1\u989D"), React__default.createElement("section", {
  36. className: styles.wanted_middle
  37. }, React__default.createElement("img", {
  38. className: styles.wanted_cover,
  39. src: img,
  40. alt: "wanted_image"
  41. }), React__default.createElement("div", null, "\u60AC\u8D4F\u63D0\u95EE")), React__default.createElement(antd.Divider, {
  42. style: {
  43. minWidth: 'auto',
  44. marginLeft: 'auto',
  45. marginRight: 'auto',
  46. width: '266px'
  47. }
  48. }), React__default.createElement("section", {
  49. className: styles.wanted_bottom
  50. }, React__default.createElement("div", {
  51. className: styles.wanted_bottom_title
  52. }, "\u8BBE\u7F6E\u60AC\u8D4F\u91D1\u989D\u8303\u56F4\xA55.00\uFF5E\xA510000"), React__default.createElement(antd.Input, {
  53. className: styles.wanted_input_number,
  54. suffix: "\u5143",
  55. value: current_wanted || '',
  56. onChange: function onChange(v) {
  57. if (!/^[.0-9]*$/g.test(v.target.value)) return;
  58. _this2.props.InputWantedValueChange(v.target.value);
  59. },
  60. onPressEnter: function onPressEnter() {
  61. _this2.props.InputWantedPressEnter(current_wanted);
  62. },
  63. onBlur: function onBlur() {
  64. _this2.props.InputWantedOnBlur(current_wanted);
  65. },
  66. autoFocus: true
  67. }), React__default.createElement("div", {
  68. className: styles.wanted_bottom_tips
  69. }, "\u82E55\u5929\u5185\u6CA1\u4EBA\u56DE\u7B54\u8BE5\u95EE\u9898, \u6240\u652F\u4ED8\u7684\u91D1\u989D\u5C06\u9000\u8FD8\u81F3\u60A8\u7684\u94B1\u5305")), React__default.createElement("footer", null, React__default.createElement(antd.Button, {
  70. className: styles.wanted_confirm_button,
  71. onClick: function onClick() {
  72. return _this2.props.CloseFunction();
  73. }
  74. }, "\u786E\u5B9A"), React__default.createElement("div", {
  75. role: "button",
  76. tabIndex: -1,
  77. onClick: function onClick() {
  78. return _this2.props.InputWantedClear();
  79. },
  80. className: styles.wanted_cancel_button
  81. }, "\u53D6\u6D88\u60AC\u8D4F")));
  82. }
  83. }]);
  84. return WantedPublishView;
  85. }(React__default.Component);
  86. exports.default = WantedPublishView;
  87. //# sourceMappingURL=index.js.map