Geen omschrijving

index.js 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _getPrototypeOf, e as _createClass } from '../inherits-6cb67931.js';
  2. import React from 'react';
  3. import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
  4. import { _ as _defineProperty } from '../defineProperty-18999f8e.js';
  5. import '../_commonjsHelpers-97e6d7b1.js';
  6. import { c as classnames } from '../index-c9837619.js';
  7. import { Divider, Input, Button } from 'antd';
  8. var img = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKoAAACeCAMAAACVQ2ELAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAABEZVhJZk1NACoAAAAIAAGHaQAEAAAAAQAAABoAAAAAAAOgAQADAAAAAQABAACgAgAEAAAAAQAAAKqgAwAEAAAAAQAAAJ4AAAAAi9HANwAAAHVQTFRFR3BM8cxv6ZkU+cND97w78a8t87Y0879D8M11/fDX658b76km8Mtt+9hj8cxt78pu46BA9blO7KQg5ZIM8Mtr8Mpt/s9b4p8/6KJN+MZW/95p6aVD7q9K6qpA7rVI8b9S66w/99GJ+MhN+9dh+uO16KAw+9VhDAjuxQAAACd0Uk5TABDc3Nzc3NwH3NzcQdwkGtzc3NwuN9zc3Nzc3NykZE9/3LqZ3LpykugjDgAAD+NJREFUeNrMm4d2skoUhYOUIRQJBDQo3fL+j3inN2YQFdf9zyAtGr7s00Y0X19PmlP1w9Anmf0ZoZNlztf/bsnw99fA8ffXDlVoeELWtVMOwDQNiY4bZmXfdQOyrt9/mrTHlMSav7bTtU0uwHVdAFy0mTpH8kXX3v7In0n/1C78KGorSAntIKtTtZiTGYLFOGEy3P4a9aUINvsc6H5oQK5eEsKyC2YDkDgpbFvCkLj9zTDxa9uP6ZoAolmuKYv9HHaTDopZQWvmxJZ8iNQRLJo6t86pJtdAimFzK2kz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qX2+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";
  9. var css = ".WantedPublishView_wrapper__3lkb6 .WantedPublishView_wanted_middle__1UdIU {\n color: #E1AD28;\n font-size: 17px;\n margin-top: 21px;\n}\n.WantedPublishView_wrapper__3lkb6 .WantedPublishView_wanted_middle__1UdIU .WantedPublishView_wanted_cover__30Gn1 {\n width: 95px;\n}\n.WantedPublishView_wrapper__3lkb6 .WantedPublishView_wanted_bottom__3EIE0 .WantedPublishView_wanted_bottom_title__2LAKy {\n color: #565656;\n font-size: 14px;\n}\n.WantedPublishView_wrapper__3lkb6 .WantedPublishView_wanted_bottom__3EIE0 .WantedPublishView_wanted_input_number__2Afkg {\n margin: 11px auto;\n width: 266px;\n height: 36px;\n}\n.WantedPublishView_wrapper__3lkb6 .WantedPublishView_wanted_bottom__3EIE0 .WantedPublishView_wanted_input_number__2Afkg .ant-input {\n color: #FB4B56;\n font-size: 16px;\n text-align: center;\n}\n.WantedPublishView_wrapper__3lkb6 .WantedPublishView_wanted_bottom__3EIE0 .WantedPublishView_wanted_input_number__2Afkg .ant-input:focus,\n.WantedPublishView_wrapper__3lkb6 .WantedPublishView_wanted_bottom__3EIE0 .WantedPublishView_wanted_input_number__2Afkg .ant-input:hover {\n outline: none;\n box-shadow: none;\n border-color: #FB4B56;\n}\n.WantedPublishView_wrapper__3lkb6 .WantedPublishView_wanted_bottom__3EIE0 .WantedPublishView_wanted_bottom_tips__19Je0 {\n color: #9B9B9B;\n font-size: 12px;\n}\n.WantedPublishView_wrapper__3lkb6 footer {\n margin-top: 40px;\n}\n.WantedPublishView_wrapper__3lkb6 footer .WantedPublishView_wanted_confirm_button__1JBhv {\n font-size: 16px;\n color: white;\n background-color: #71C135;\n}\n.WantedPublishView_wrapper__3lkb6 footer .WantedPublishView_wanted_confirm_button__1JBhv:hover,\n.WantedPublishView_wrapper__3lkb6 footer .WantedPublishView_wanted_confirm_button__1JBhv:focus {\n color: white;\n outline: none;\n box-shadow: none;\n background-color: #8cd158;\n border-color: #fafdf8;\n}\n.WantedPublishView_wrapper__3lkb6 footer .WantedPublishView_wanted_cancel_button__CosmE {\n margin-top: 12px;\n color: #787F8C;\n font-size: 12px;\n cursor: pointer;\n}\n.WantedPublishView_wrapper__3lkb6 footer .WantedPublishView_wanted_cancel_button__CosmE:hover,\n.WantedPublishView_wrapper__3lkb6 footer .WantedPublishView_wanted_cancel_button__CosmE:focus {\n color: #787F8C;\n text-shadow: #565656;\n}\n";
  10. var styles = {
  11. "wrapper": "WantedPublishView_wrapper__3lkb6",
  12. "wanted_middle": "WantedPublishView_wanted_middle__1UdIU",
  13. "wanted_cover": "WantedPublishView_wanted_cover__30Gn1",
  14. "wanted_bottom": "WantedPublishView_wanted_bottom__3EIE0",
  15. "wanted_bottom_title": "WantedPublishView_wanted_bottom_title__2LAKy",
  16. "wanted_input_number": "WantedPublishView_wanted_input_number__2Afkg",
  17. "wanted_bottom_tips": "WantedPublishView_wanted_bottom_tips__19Je0",
  18. "wanted_confirm_button": "WantedPublishView_wanted_confirm_button__1JBhv",
  19. "wanted_cancel_button": "WantedPublishView_wanted_cancel_button__CosmE",
  20. "wantedMiddle": "WantedPublishView_wanted_middle__1UdIU",
  21. "wantedCover": "WantedPublishView_wanted_cover__30Gn1",
  22. "wantedBottom": "WantedPublishView_wanted_bottom__3EIE0",
  23. "wantedBottomTitle": "WantedPublishView_wanted_bottom_title__2LAKy",
  24. "wantedInputNumber": "WantedPublishView_wanted_input_number__2Afkg",
  25. "wantedBottomTips": "WantedPublishView_wanted_bottom_tips__19Je0",
  26. "wantedConfirmButton": "WantedPublishView_wanted_confirm_button__1JBhv",
  27. "wantedCancelButton": "WantedPublishView_wanted_cancel_button__CosmE"
  28. };
  29. styleInject(css);
  30. var WantedPublishView =
  31. /*#__PURE__*/
  32. function (_React$Component) {
  33. _inherits(WantedPublishView, _React$Component);
  34. function WantedPublishView(props) {
  35. var _this;
  36. _classCallCheck(this, WantedPublishView);
  37. _this = _possibleConstructorReturn(this, _getPrototypeOf(WantedPublishView).call(this, props));
  38. _this.state = {};
  39. return _this;
  40. }
  41. _createClass(WantedPublishView, [{
  42. key: "render",
  43. value: function render() {
  44. var _this2 = this;
  45. var _this$props = this.props,
  46. current_wanted = _this$props.current_wanted,
  47. wrapperClass = _this$props.wrapperClass;
  48. return React.createElement("div", {
  49. className: classnames(styles.wrapper, _defineProperty({}, wrapperClass ? wrapperClass : '', true))
  50. }, React.createElement("header", null, "\u8BBE\u7F6E\u60AC\u8D4F\u91D1\u989D"), React.createElement("section", {
  51. className: styles.wanted_middle
  52. }, React.createElement("img", {
  53. className: styles.wanted_cover,
  54. src: img,
  55. alt: "wanted_image"
  56. }), React.createElement("div", null, "\u60AC\u8D4F\u63D0\u95EE")), React.createElement(Divider, {
  57. style: {
  58. minWidth: 'auto',
  59. marginLeft: 'auto',
  60. marginRight: 'auto',
  61. width: '266px'
  62. }
  63. }), React.createElement("section", {
  64. className: styles.wanted_bottom
  65. }, React.createElement("div", {
  66. className: styles.wanted_bottom_title
  67. }, "\u8BBE\u7F6E\u60AC\u8D4F\u91D1\u989D\u8303\u56F4\xA55.00\uFF5E\xA510000"), React.createElement(Input, {
  68. className: styles.wanted_input_number,
  69. suffix: "\u5143",
  70. value: current_wanted || '',
  71. onChange: function onChange(v) {
  72. if (!/^[.0-9]*$/g.test(v.target.value)) return;
  73. _this2.props.InputWantedValueChange(v.target.value);
  74. },
  75. onPressEnter: function onPressEnter() {
  76. _this2.props.InputWantedPressEnter(current_wanted);
  77. },
  78. onBlur: function onBlur() {
  79. _this2.props.InputWantedOnBlur(current_wanted);
  80. },
  81. autoFocus: true
  82. }), React.createElement("div", {
  83. className: styles.wanted_bottom_tips
  84. }, "\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.createElement("footer", null, React.createElement(Button, {
  85. className: styles.wanted_confirm_button,
  86. onClick: function onClick() {
  87. return _this2.props.CloseFunction();
  88. }
  89. }, "\u786E\u5B9A"), React.createElement("div", {
  90. role: "button",
  91. tabIndex: -1,
  92. onClick: function onClick() {
  93. return _this2.props.InputWantedClear();
  94. },
  95. className: styles.wanted_cancel_button
  96. }, "\u53D6\u6D88\u60AC\u8D4F")));
  97. }
  98. }]);
  99. return WantedPublishView;
  100. }(React.Component);
  101. export default WantedPublishView;
  102. //# sourceMappingURL=index.js.map