Roxas 4 years ago
parent
commit
64b40562b1
98 changed files with 1608 additions and 203 deletions
  1. 285
    0
      eslib/AllocWantedModal/index.js
  2. 1
    0
      eslib/AllocWantedModal/index.js.map
  3. 4
    3
      eslib/BraftEditor/index.js
  4. 1
    1
      eslib/BraftEditor/index.js.map
  5. 7
    3
      eslib/Common/index.js
  6. 1
    1
      eslib/Common/index.js.map
  7. 4
    3
      eslib/ConsumeListView/index.js
  8. 1
    1
      eslib/ConsumeListView/index.js.map
  9. 3
    3
      eslib/Draft-9634837d.js
  10. 1
    1
      eslib/Draft-9634837d.js.map
  11. 4
    3
      eslib/Editor/index.js
  12. 1
    1
      eslib/Editor/index.js.map
  13. 13
    0
      eslib/Modal-67d33baf.js
  14. 1
    0
      eslib/Modal-67d33baf.js.map
  15. 66
    0
      eslib/Modal/index.js
  16. 1
    0
      eslib/Modal/index.js.map
  17. 4
    3
      eslib/PayPlatformOptions/index.js
  18. 1
    1
      eslib/PayPlatformOptions/index.js.map
  19. 9
    3
      eslib/Payment/index.js
  20. 1
    1
      eslib/Payment/index.js.map
  21. 38
    14
      eslib/PriceOptions/index.js
  22. 1
    1
      eslib/PriceOptions/index.js.map
  23. 4
    3
      eslib/RichTextEditor/index.js
  24. 1
    1
      eslib/RichTextEditor/index.js.map
  25. 3
    2
      eslib/RichTextEditorForSlate/index.js
  26. 1
    1
      eslib/RichTextEditorForSlate/index.js.map
  27. 3
    2
      eslib/WaitPayInfoView/index.js
  28. 1
    1
      eslib/WaitPayInfoView/index.js.map
  29. 145
    0
      eslib/WantedPublishPopover/index.js
  30. 1
    0
      eslib/WantedPublishPopover/index.js.map
  31. 94
    0
      eslib/WantedPublishView/index.js
  32. 1
    0
      eslib/WantedPublishView/index.js.map
  33. 12
    0
      eslib/_commonjsHelpers-97e6d7b1.js
  34. 1
    0
      eslib/_commonjsHelpers-97e6d7b1.js.map
  35. 0
    1
      eslib/_commonjsHelpers-aeb41076.js.map
  36. 16
    12
      eslib/_rollupPluginBabelHelpers-bf46fecd.js
  37. 1
    0
      eslib/_rollupPluginBabelHelpers-bf46fecd.js.map
  38. 2
    2
      eslib/index-c9837619.js
  39. 1
    1
      eslib/index-c9837619.js.map
  40. 11
    4
      eslib/index.js
  41. 1
    1
      eslib/index.js.map
  42. 3
    3
      eslib/test-3e7def9a.js
  43. 1
    1
      eslib/test-3e7def9a.js.map
  44. 2
    2
      eslib/utils-74f31cae.js
  45. 1
    0
      eslib/utils-74f31cae.js.map
  46. 0
    1
      eslib/utils-f64eef69.js.map
  47. 293
    0
      lib/AllocWantedModal/index.js
  48. 1
    0
      lib/AllocWantedModal/index.js.map
  49. 5
    4
      lib/BraftEditor/index.js
  50. 1
    1
      lib/BraftEditor/index.js.map
  51. 8
    3
      lib/Common/index.js
  52. 1
    1
      lib/Common/index.js.map
  53. 10
    9
      lib/ConsumeListView/index.js
  54. 1
    1
      lib/ConsumeListView/index.js.map
  55. 3
    3
      lib/Draft-a5afe13a.js
  56. 1
    1
      lib/Draft-a5afe13a.js.map
  57. 4
    3
      lib/Editor/index.js
  58. 1
    1
      lib/Editor/index.js.map
  59. 16
    0
      lib/Modal-1001074b.js
  60. 1
    0
      lib/Modal-1001074b.js.map
  61. 74
    0
      lib/Modal/index.js
  62. 1
    0
      lib/Modal/index.js.map
  63. 8
    7
      lib/PayPlatformOptions/index.js
  64. 1
    1
      lib/PayPlatformOptions/index.js.map
  65. 12
    3
      lib/Payment/index.js
  66. 1
    1
      lib/Payment/index.js.map
  67. 39
    15
      lib/PriceOptions/index.js
  68. 1
    1
      lib/PriceOptions/index.js.map
  69. 11
    10
      lib/RichTextEditor/index.js
  70. 1
    1
      lib/RichTextEditor/index.js.map
  71. 4
    3
      lib/RichTextEditorForSlate/index.js
  72. 1
    1
      lib/RichTextEditorForSlate/index.js.map
  73. 8
    7
      lib/WaitPayInfoView/index.js
  74. 1
    1
      lib/WaitPayInfoView/index.js.map
  75. 152
    0
      lib/WantedPublishPopover/index.js
  76. 1
    0
      lib/WantedPublishPopover/index.js.map
  77. 101
    0
      lib/WantedPublishView/index.js
  78. 1
    0
      lib/WantedPublishView/index.js.map
  79. 0
    1
      lib/_commonjsHelpers-4ed3570f.js.map
  80. 16
    0
      lib/_commonjsHelpers-72d386ba.js
  81. 1
    0
      lib/_commonjsHelpers-72d386ba.js.map
  82. 3
    2
      lib/_react-dom_commonjs-external-55867475.js
  83. 1
    1
      lib/_react-dom_commonjs-external-55867475.js.map
  84. 16
    14
      lib/_rollupPluginBabelHelpers-3469b70d.js
  85. 1
    0
      lib/_rollupPluginBabelHelpers-3469b70d.js.map
  86. 2
    2
      lib/index-44e17595.js
  87. 1
    1
      lib/index-44e17595.js.map
  88. 15
    4
      lib/index.js
  89. 1
    1
      lib/index.js.map
  90. 3
    3
      lib/test-71997d3e.js
  91. 1
    1
      lib/test-71997d3e.js.map
  92. 0
    1
      lib/utils-4bc17ae2.js.map
  93. 3
    3
      lib/utils-9c8fdacf.js
  94. 1
    0
      lib/utils-9c8fdacf.js.map
  95. 4
    4
      src/components/Payment/PriceOptions/PriceOptions.less
  96. 16
    3
      src/components/Payment/PriceOptions/index.tsx
  97. 2
    1
      stats.html
  98. 3
    2
      stories/Payment.stories.tsx

+ 285
- 0
eslib/AllocWantedModal/index.js View File

@@ -0,0 +1,285 @@
1
+import { a as _inherits, b as _createClass, c as _defineProperty, d as _classCallCheck, e as _possibleConstructorReturn, f as _getPrototypeOf, j as _assertThisInitialized } from '../_rollupPluginBabelHelpers-bf46fecd.js';
2
+import React from 'react';
3
+import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
4
+import { createPortal } from 'react-dom';
5
+import { i as isBrowser, s as styles$1 } from '../Modal-67d33baf.js';
6
+import { Tooltip, Input, Button, Popover } from 'antd';
7
+
8
+var Modal =
9
+/*#__PURE__*/
10
+function (_React$PureComponent) {
11
+  _inherits(Modal, _React$PureComponent);
12
+
13
+  function Modal() {
14
+    _classCallCheck(this, Modal);
15
+
16
+    return _possibleConstructorReturn(this, _getPrototypeOf(Modal).apply(this, arguments));
17
+  }
18
+
19
+  _createClass(Modal, [{
20
+    key: "render",
21
+    value: function render() {
22
+      if (!isBrowser()) return null; // 服务端无需渲染下列代码,渲染也会出错
23
+
24
+      var DEFAULT_CONTAINER = document.getElementById('container');
25
+      var _this$props = this.props,
26
+          children = _this$props.children,
27
+          visible = _this$props.visible,
28
+          onCancel = _this$props.onCancel,
29
+          _this$props$container = _this$props.container,
30
+          container = _this$props$container === void 0 ? DEFAULT_CONTAINER : _this$props$container;
31
+      var finalMountContainer = document.body;
32
+
33
+      if (!container) {
34
+        if (!DEFAULT_CONTAINER) {
35
+          if (!Modal.hasShowWarning) {
36
+            Modal.hasShowWarning = true;
37
+          }
38
+
39
+          finalMountContainer = document.body;
40
+        } else {
41
+          if (!Modal.hasShowWarning) {
42
+            Modal.hasShowWarning = true;
43
+          }
44
+
45
+          finalMountContainer = DEFAULT_CONTAINER;
46
+        }
47
+      }
48
+
49
+      return visible && createPortal(React.createElement("div", {
50
+        className: styles$1.wrapper
51
+      }, React.createElement("div", {
52
+        className: styles$1.overlay,
53
+        onClick: onCancel
54
+      }), React.createElement("div", {
55
+        className: styles$1.container
56
+      }, children)), finalMountContainer);
57
+    }
58
+  }]);
59
+
60
+  return Modal;
61
+}(React.PureComponent);
62
+
63
+_defineProperty(Modal, "hasShowWarning", false);
64
+
65
+const img = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAACMUlEQVQ4T52Uz4tSURTHPxP9oCkKy0UuIqvZSAsrHHgLEaFSDCJoU0GpQaBgqOCmP6AWKrR5kIELNzZZUUQLlReFFowOboQK2oyLkgExsxqJoprixlx5yXs1dXbvnO/93HPPO+dM8WfbCuwANgNfgA/A0OzIlElgH3AIsBrEl4EXwEvguz4+CdsIHAV2/yVjEX4PVFez/SXXwzYAJ4GdawBJyWfggQTqYSKj/f8AklKR4V1gRcJ2rWY1Zvl8PqumaW8n4YFAwFqpVCb988BzCTsCzMiDDodjut1uX11YWGh4PJ470p/L5ZRIJHI+kUhcU1V1UXfRR+CWhF0ARPHHpqrqbCwWC7darXm32z2Xz+fdoVDobL1ef+z1eu8ZlOO2gIkeChrVKpPJHEylUhd7vd5rm822V9O0it/vf2hS16qAbQfOmBW+3W6HnU6nMhgMlux2+5XRaLRion0iYJuAsJGgWq2e8Pv9x5vN5lOXy6V0Op1XiqLkh8PhNwN9WdbsHLBFL6jVaqc8Hs+xYrE4FwwGnyWTyZl0On2p2+0uKopyo9/vf9XpfwA3JcwNHND/zUajcblUKpWj0WhT+qPRqD2bzUbi8fj1QqHwRgfrA/clbBtwGlgnBRaLZb3Rc0z8j4COfgJmgcP/MQEiw/LkbAqwGCmxMdZq7wDRKmI9/Tbo8ltk6NQ/2YTcAWrA+EeY7TPRewK4B5jWwcRB8Syxy5YmLzGD6XViQuSm/QSINjC0n/ltqZBTCKFgAAAAAElFTkSuQmCC';
66
+
67
+var css = ".AllocWantedModal_wantedModalContent__3tJgp {\n  background-color: white;\n  width: 360px;\n  height: 314px;\n  padding: 22px 28px;\n  border-radius: 7px;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_title__31N0x {\n  font-size: 18px;\n  font-weight: 400;\n  text-align: center;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_wantedValueText__39a-6 {\n  color: #565656;\n  margin-top: 48px;\n  font-size: 14px;\n  line-height: 20px;\n  text-align: center;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_wantedInputNumber__2qs1k {\n  margin: 11px auto;\n  text-align: center;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_wantedInputNumber__2qs1k .ant-input {\n  color: #FB4B56;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_wantedValueTipBottom__2JmOx {\n  margin: 0 auto;\n  font-size: 12px;\n  text-align: center;\n  width: 208px;\n  color: #9B9B9B;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_buttonRow__RkN1C {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  margin-top: 23px;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_buttonRow__RkN1C .AllocWantedModal_confirmButton__1oARY {\n  color: white;\n  background-color: #71C135;\n  width: 170px;\n  height: 36px;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_buttonRow__RkN1C .AllocWantedModal_confirmButton__1oARY:hover,\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_buttonRow__RkN1C .AllocWantedModal_confirmButton__1oARY:focus {\n  outline: none;\n  border-color: #8cd158;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_buttonRow__RkN1C .AllocWantedModal_tipsButton__QUN7t {\n  margin-left: 22px;\n  width: 20px;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_buttonRow__RkN1C .AllocWantedModal_tipsButton__QUN7t .schedule {\n  font-size: 18px;\n  cursor: pointer;\n}\n.AllocWantedModal_closeButton__1Os0F {\n  position: absolute;\n  right: 10px;\n  top: 10px;\n  display: block;\n  width: 20px;\n  height: 20px;\n  border-radius: 50%;\n  cursor: pointer;\n}\n.AllocWantedModal_closeButton__1Os0F img {\n  width: 100%;\n  height: 100%;\n}\n.AllocWantedModal_tipsView__3AZ9T h6 {\n  margin: 0;\n  font-size: 12px;\n  line-height: 22px;\n  color: #3D3D3D;\n}\n.AllocWantedModal_tipsView__3AZ9T div {\n  font-size: 12px;\n}\n.AllocWantedModal_outRangeTextTip__3LKBb .ant-tooltip-inner {\n  color: red;\n}\n";
68
+var styles = {"wantedModalContent":"AllocWantedModal_wantedModalContent__3tJgp","title":"AllocWantedModal_title__31N0x","wantedValueText":"AllocWantedModal_wantedValueText__39a-6","wantedInputNumber":"AllocWantedModal_wantedInputNumber__2qs1k","wantedValueTipBottom":"AllocWantedModal_wantedValueTipBottom__2JmOx","buttonRow":"AllocWantedModal_buttonRow__RkN1C","confirmButton":"AllocWantedModal_confirmButton__1oARY","tipsButton":"AllocWantedModal_tipsButton__QUN7t","closeButton":"AllocWantedModal_closeButton__1Os0F","tipsView":"AllocWantedModal_tipsView__3AZ9T","outRangeTextTip":"AllocWantedModal_outRangeTextTip__3LKBb"};
69
+styleInject(css);
70
+
71
+var AllocWantedModal =
72
+/*#__PURE__*/
73
+function (_React$Component) {
74
+  _inherits(AllocWantedModal, _React$Component);
75
+
76
+  function AllocWantedModal(props) {
77
+    var _this;
78
+
79
+    _classCallCheck(this, AllocWantedModal);
80
+
81
+    _this = _possibleConstructorReturn(this, _getPrototypeOf(AllocWantedModal).call(this, props));
82
+
83
+    _defineProperty(_assertThisInitialized(_this), "ModalInputRef", void 0);
84
+
85
+    _defineProperty(_assertThisInitialized(_this), "ModalContentRef", void 0);
86
+
87
+    _defineProperty(_assertThisInitialized(_this), "handleSendValueChange", function (v) {
88
+      if (_this.state.outRangeTip) {
89
+        _this.setState({
90
+          outRangeTip: !_this.checkSendValue()
91
+        });
92
+      }
93
+
94
+      _this.setState({
95
+        sendValue: v
96
+      });
97
+    });
98
+
99
+    _defineProperty(_assertThisInitialized(_this), "checkSendValue", function () {
100
+      var sendValueRange = _this.props.sendValueRange;
101
+      var sendValue = _this.state.sendValue;
102
+      var min = 0;
103
+      var max = Number(_this.props.allocValue);
104
+
105
+      if (sendValueRange) {
106
+        min = Number(sendValueRange[0]);
107
+        max = Number(sendValueRange[1]);
108
+      }
109
+
110
+      if (sendValue > max) {
111
+        _this.setState({
112
+          // sendValue: max,
113
+          outRangeTip: true
114
+        });
115
+
116
+        return false;
117
+      } else if (sendValue < min) {
118
+        _this.setState({
119
+          // sendValue: max,
120
+          outRangeTip: true
121
+        });
122
+
123
+        return false;
124
+      }
125
+
126
+      return true;
127
+    });
128
+
129
+    _defineProperty(_assertThisInitialized(_this), "handleCloseAction", function () {
130
+      _this.setState({
131
+        visible: false,
132
+        sendValue: 0,
133
+        outRangeTip: false
134
+      }, function () {
135
+        _this.props.handleVisibleChange(false);
136
+      });
137
+    });
138
+
139
+    _defineProperty(_assertThisInitialized(_this), "handleShowAction", function () {
140
+      _this.setState({
141
+        visible: true
142
+      }, function () {
143
+        _this.props.handleVisibleChange(true);
144
+      });
145
+    });
146
+
147
+    _defineProperty(_assertThisInitialized(_this), "handleConfirm", function () {
148
+      var sendGiftData = _this.props.sendGiftData;
149
+
150
+      var checkResult = _this.checkSendValue();
151
+
152
+      if (!checkResult) {
153
+        // 未通过验证
154
+        return null;
155
+      } // 进行分配请求
156
+
157
+
158
+      Promise.resolve(_this.props.sendRequest({
159
+        business_type: 14,
160
+        // 表示悬赏答案
161
+        ref_id: sendGiftData.answerId.toString(),
162
+        // 对应回答的id
163
+        origin_id: sendGiftData.questionId,
164
+        // 对应问题的id
165
+        to_user: sendGiftData.toUserId,
166
+        // 悬赏给谁
167
+        goods_id: 2,
168
+        // 礼物id 帮币的话为2
169
+        num: Number(_this.state.sendValue) // 礼物数量
170
+
171
+      })).then(function (res) {
172
+        console.log("res: ", res);
173
+
174
+        if (res) {
175
+          _this.handleCloseAction();
176
+        } else {
177
+          _this.handleCloseAction();
178
+        }
179
+      });
180
+    });
181
+
182
+    _defineProperty(_assertThisInitialized(_this), "renderCloseButton", function () {
183
+      return React.createElement("div", {
184
+        role: "button",
185
+        tabIndex: -1,
186
+        className: styles.closeButton,
187
+        onClick: function onClick() {
188
+          _this.handleCloseAction();
189
+        }
190
+      }, React.createElement("img", {
191
+        src: img,
192
+        alt: "close button for send wanted"
193
+      })); // return null;
194
+    });
195
+
196
+    _defineProperty(_assertThisInitialized(_this), "renderModalContent", function () {
197
+      return React.createElement("div", {
198
+        className: styles.wantedModalContent,
199
+        ref: _this.ModalContentRef
200
+      }, _this.renderCloseButton(), React.createElement("h4", {
201
+        className: styles.title
202
+      }, "\u5206\u914D\u60AC\u8D4F\u5956\u91D1"), React.createElement("div", {
203
+        className: styles.wantedValueText
204
+      }, "\u5269\u4F59\u53EF\u5206\u914D ".concat(_this.props.allocValue, "\u5143")), React.createElement(Tooltip, {
205
+        visible: _this.state.outRangeTip,
206
+        title: "\u8D85\u8FC7\u8303\u56F4\u503C",
207
+        placement: "bottom",
208
+        overlayClassName: styles.outRangeTextTip,
209
+        getTooltipContainer: function getTooltipContainer() {
210
+          return _this.ModalContentRef && _this.ModalContentRef.current;
211
+        }
212
+      }, React.createElement(Input, {
213
+        ref: _this.ModalInputRef,
214
+        className: styles.wantedInputNumber,
215
+        suffix: "\u5143",
216
+        value: _this.state.sendValue,
217
+        onChange: function onChange(e) {
218
+          return _this.handleSendValueChange(e.target.value);
219
+        },
220
+        onFocus: function onFocus(e) {
221
+          return e.target.setSelectionRange(0, String(_this.state.sendValue).length);
222
+        }
223
+      })), React.createElement("div", {
224
+        className: styles.wantedValueTipBottom
225
+      }, "\u9700\u8981\u5728\u60AC\u8D4F\u65F6\u95F4\u7ED3\u675F\u524D\u5C06\u5956\u91D1\u5206\u914D\u5B8C\u6210, \u5426\u5219\u5C06\u6309\u7167\u89C4\u5219\u81EA\u52A8\u5206\u914D"), React.createElement("div", {
226
+        className: styles.buttonRow
227
+      }, React.createElement("div", {
228
+        className: styles.tipsButton
229
+      }), React.createElement(Button, {
230
+        className: styles.confirmButton,
231
+        onClick: _this.handleConfirm
232
+      }, "\u786E\u8BA4"), React.createElement("div", {
233
+        className: styles.tipsButton
234
+      }, React.createElement(Popover, {
235
+        placement: "bottom",
236
+        trigger: "click",
237
+        getPopupContainer: function getPopupContainer() {
238
+          return _this.ModalContentRef && _this.ModalContentRef.current;
239
+        },
240
+        overlayStyle: {
241
+          width: "320px"
242
+        },
243
+        content: React.createElement("div", {
244
+          className: styles.tipsView
245
+        }, React.createElement("h6", null, "1\u3001\u5982\u4F55\u53C2\u4E0E\u60AC\u8D4F\uFF1F"), React.createElement("div", null, "\u60AC\u8D4F\u95EE\u9898\u7686\u6709\u6709\u6548\u671F\uFF0C\u9ED8\u8BA4\u4E3A120\u5C0F\u65F6\uFF085\u5929\uFF09\uFF0C\u5728\u6709\u6548\u671F\u5185\u56DE\u590D\u7684\u7B54\u6848\uFF0C\u624D\u6709\u8D44\u683C\u88AB\u9009\u4E3A\u6700\u4F73\u7B54\u6848\uFF0C\u4EE5\u53CA\u5206\u5F97\u8D4F\u91D1\u3002"), React.createElement("h6", null, "2\u3001\u8D4F\u91D1\u5982\u4F55\u5206\uFF1F"), React.createElement("div", null, "\u60AC\u8D4F\u65F6\u95F4\u7ED3\u675F\u524D\uFF0C\u63D0\u95EE\u8005\u53EF\u968F\u65F6\u9009\u51FA\u6700\u4F18\u7B54\u6848\uFF0C\u5E76\u5BF9\u8D4F\u91D1\u8FDB\u884C\u5206\u914D\uFF0C\u76F4\u81F3\u8D4F\u91D1\u88AB\u5206\u5B8C\u6216\u65F6\u95F4\u5230\u671F\u4E3A\u6B62\u3002\u82E5\u60AC\u8D4F\u65F6\u95F4\u5230\u671F\uFF0C\u60AC\u8D4F\u8005\u4ECD\u672A\u5206\u914D\u8D4F\u91D1\uFF0C\u4E14\u56DE\u7B54\u6570\u5927\u4E8E\u7B49\u4E8E2\uFF0C\u7CFB\u7EDF\u5219\u9ED8\u8BA4\u5C06\u8D4F\u91D1\u5E73\u5206\u7ED9\u70B9\u8D5E\u6570\u524D3\u540D\u7684\u56DE\u7B54\u3002"), React.createElement("h6", null, "3\u3001\u8D4F\u91D1\u80FD\u9000\u6B3E\u5417\uFF1F"), React.createElement("div", null, "\u8D4F\u91D1\u53EA\u4F1A\u5728\u4EE5\u4E0B2\u79CD\u60C5\u51B5\u8FDB\u884C\u9000\u6B3E\uFF1A\u4E00\u3001\u60AC\u8D4F\u65F6\u95F4\u5230\u671F\uFF0C\u56DE\u7B54\u6570\u5C0F\u4E8E2\uFF0C\u8D4F\u91D1\u5C06\u81EA\u52A8\u9000\u8FD8\u81F3\u63D0\u95EE\u8005\u7684\u94B1\u5305\uFF1B\u4E8C\u3001\u60AC\u8D4F\u65F6\u95F4\u5230\u671F\uFF0C\u60AC\u8D4F\u8005\u672A\u5206\u914D\u5B8C\u8D4F\u91D1\uFF0C\u7CFB\u7EDF\u81EA\u52A8\u5C06\u5269\u4F59\u7684\u8D4F\u91D1\u9000\u8FD8\u81F3\u63D0\u95EE\u8005\u7684\u94B1\u5305\u3002"))
246
+      }, React.createElement("i", {
247
+        className: "schedule schedule-icon_rewardtips"
248
+      })))));
249
+    });
250
+
251
+    _this.state = {
252
+      visible: false,
253
+      sendValue: 0,
254
+      outRangeTip: false
255
+    };
256
+    _this.ModalContentRef = React.createRef();
257
+    _this.ModalInputRef = React.createRef();
258
+    return _this;
259
+  }
260
+
261
+  _createClass(AllocWantedModal, [{
262
+    key: "render",
263
+    value: function render() {
264
+      var _this2 = this;
265
+
266
+      var children = this.props.children;
267
+      return React.createElement(React.Fragment, null, React.createElement("div", {
268
+        className: styles.wrapper,
269
+        onClick: function onClick() {
270
+          return _this2.handleShowAction();
271
+        }
272
+      }, children), React.createElement(Modal, {
273
+        visible: this.state.visible,
274
+        onCancel: function onCancel() {
275
+          return _this2.handleCloseAction();
276
+        }
277
+      }, this.renderModalContent()));
278
+    }
279
+  }]);
280
+
281
+  return AllocWantedModal;
282
+}(React.Component);
283
+
284
+export default AllocWantedModal;
285
+//# sourceMappingURL=index.js.map

+ 1
- 0
eslib/AllocWantedModal/index.js.map
File diff suppressed because it is too large
View File


+ 4
- 3
eslib/BraftEditor/index.js View File

@@ -1,9 +1,10 @@
1
-import { c as createCommonjsModule, j as commonjsGlobal, u as unwrapExports, i as _slicedToArray } from '../_commonjsHelpers-aeb41076.js';
1
+import { i as _slicedToArray } from '../_rollupPluginBabelHelpers-bf46fecd.js';
2 2
 import React$1, { useState } from 'react';
3
+import { c as createCommonjsModule, a as commonjsGlobal, u as unwrapExports } from '../_commonjsHelpers-97e6d7b1.js';
3 4
 import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
4
-import { D as Draft } from '../Draft-ec3417b2.js';
5
-import { r as require$$3 } from '../_react-dom_commonjs-external-d3012e04.js';
6 5
 import 'react-dom';
6
+import { D as Draft } from '../Draft-9634837d.js';
7
+import { r as require$$3 } from '../_react-dom_commonjs-external-d3012e04.js';
7 8
 import server from 'react-dom/server';
8 9
 
9 10
 var immutable = createCommonjsModule(function (module, exports) {

+ 1
- 1
eslib/BraftEditor/index.js.map
File diff suppressed because it is too large
View File


+ 7
- 3
eslib/Common/index.js View File

@@ -1,6 +1,10 @@
1
-import '../_commonjsHelpers-aeb41076.js';
1
+import '../_rollupPluginBabelHelpers-bf46fecd.js';
2 2
 import 'react';
3
-import '../index-7951fb2f.js';
3
+import '../_commonjsHelpers-97e6d7b1.js';
4
+import '../index-c9837619.js';
4 5
 import '../style-inject.es-1f59c1d0.js';
5
-export { T as Test } from '../test-81795c27.js';
6
+export { T as Test } from '../test-3e7def9a.js';
7
+import 'react-dom';
8
+import '../Modal-67d33baf.js';
9
+export { default as Modal } from '../Modal/index.js';
6 10
 //# sourceMappingURL=index.js.map

+ 1
- 1
eslib/Common/index.js.map View File

@@ -1 +1 @@
1
-{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}

+ 4
- 3
eslib/ConsumeListView/index.js View File

@@ -1,8 +1,9 @@
1
-import { a as _inherits, b as _createClass, _ as _defineProperty, d as _classCallCheck, e as _possibleConstructorReturn, f as _getPrototypeOf } from '../_commonjsHelpers-aeb41076.js';
1
+import { a as _inherits, b as _createClass, c as _defineProperty, d as _classCallCheck, e as _possibleConstructorReturn, f as _getPrototypeOf } from '../_rollupPluginBabelHelpers-bf46fecd.js';
2 2
 import React, { Component } from 'react';
3
-import { c as classnames } from '../index-7951fb2f.js';
3
+import '../_commonjsHelpers-97e6d7b1.js';
4
+import { c as classnames } from '../index-c9837619.js';
4 5
 import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
5
-import { a as addImageProcess } from '../utils-f64eef69.js';
6
+import { a as addImageProcess } from '../utils-74f31cae.js';
6 7
 
7 8
 const img = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAABvklEQVQ4T62UTygEcRTHv29MIsqfk6OL5CYH5aKd9WfjwqxEnBzExYWTCEWJJGove5H8OTA1uwdCrOWAi83ZwUXJiSj5u+Z5s0msmd2SX81h+r33ee/7fW+G8E+H/srhqEcFCjphve1RzcaVK4j3mmoB5YxqQzdOxTji1wE2QZglb2jAEcT7/g4wr0rQugS1OYJ26nOg5nYDr4ZrR7yrl0FBAKBlqjEX3eRLwSXAmidvOJbSI47oF9LVKaCOkNc4/w7kSPOoFBqDwjpp4XA60LUkF8nzbsuERQt4ejtGdsYwiAYTYIV6STOD6UB3EpqXJC0u7zKxz0Mk3Zrj7lOLerJg5T9K+2lWhALiYx8xS9NbDZnUuPXy0wN/hYw3lnbPiNfE7HaSfTAloRqKWkya8WAnMrdmIBqfBqM/BehJAo+gKHMibdMGzUhqKUiZAHGVXJYLwPdpshPnRDRM4fl5+7uKL/0c1WXdOSie5Dh3wZcyoR7SQttO9z+M5MOWEsStFQmsTAoOwVK7qM64d5P6ayKJj9EqHBa5Q4kx2/ujqR1Exnsq493HH2muFN98oNtJ0g7s3Ul5/vwbSab+G+gDqFybE11pYkYAAAAASUVORK5CYII=';
8 9
 

+ 1
- 1
eslib/ConsumeListView/index.js.map
File diff suppressed because it is too large
View File


eslib/Draft-ec3417b2.js → eslib/Draft-9634837d.js View File

@@ -1,7 +1,7 @@
1
-import { c as createCommonjsModule, j as commonjsGlobal } from './_commonjsHelpers-aeb41076.js';
2 1
 import 'react';
3
-import { R as React, r as require$$3 } from './_react-dom_commonjs-external-d3012e04.js';
2
+import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-97e6d7b1.js';
4 3
 import 'react-dom';
4
+import { R as React, r as require$$3 } from './_react-dom_commonjs-external-d3012e04.js';
5 5
 
6 6
 /*
7 7
 object-assign
@@ -17686,4 +17686,4 @@ var Draft_15 = Draft.RichUtils;
17686 17686
 var Draft_20 = Draft.convertToRaw;
17687 17687
 
17688 17688
 export { Draft as D, Draft_4 as a, Draft_3 as b, Draft_15 as c, Draft_14 as d, Draft_20 as e, Draft_1 as f };
17689
-//# sourceMappingURL=Draft-ec3417b2.js.map
17689
+//# sourceMappingURL=Draft-9634837d.js.map

eslib/Draft-9634837d.js.map
File diff suppressed because it is too large
View File


+ 4
- 3
eslib/Editor/index.js View File

@@ -1,9 +1,10 @@
1
-import '../_commonjsHelpers-aeb41076.js';
1
+import '../_rollupPluginBabelHelpers-bf46fecd.js';
2 2
 import 'react';
3
+import '../_commonjsHelpers-97e6d7b1.js';
3 4
 import '../style-inject.es-1f59c1d0.js';
4
-import '../Draft-ec3417b2.js';
5
-import '../_react-dom_commonjs-external-d3012e04.js';
6 5
 import 'react-dom';
6
+import '../Draft-9634837d.js';
7
+import '../_react-dom_commonjs-external-d3012e04.js';
7 8
 export { default as BraftEditor } from '../BraftEditor/index.js';
8 9
 import 'react-dom/server';
9 10
 export { default as RichTextEditor } from '../RichTextEditor/index.js';

+ 1
- 1
eslib/Editor/index.js.map View File

@@ -1 +1 @@
1
-{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
1
+{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}

+ 13
- 0
eslib/Modal-67d33baf.js View File

@@ -0,0 +1,13 @@
1
+import { _ as _typeof } from './_rollupPluginBabelHelpers-bf46fecd.js';
2
+import { s as styleInject } from './style-inject.es-1f59c1d0.js';
3
+
4
+function isBrowser() {
5
+  return !((typeof window === "undefined" ? "undefined" : _typeof(window)) === undefined);
6
+}
7
+
8
+var css = ".Modal_wrapper__3fGor {\n  position: fixed;\n  width: 100vw;\n  height: 100vh;\n  top: 0;\n  left: 0;\n  z-index: 1000;\n}\n.Modal_overlay__iXPZ2 {\n  width: 100vw;\n  height: 100vh;\n  background: #000;\n  animation: Modal_overlayer__3enBo 0.3s forwards;\n}\n.Modal_container__3PbHe {\n  position: absolute;\n  top: 20%;\n  left: 50%;\n  animation: Modal_container__3PbHe 0.3s forwards;\n}\n@keyframes Modal_overlayer__3enBo {\n  from {\n    opacity: 0;\n  }\n  to {\n    opacity: 0.3;\n  }\n}\n@keyframes Modal_container__3PbHe {\n  from {\n    transform: translateX(-50%) scale(0, 0);\n  }\n  to {\n    transform: translateX(-50%) scale(1, 1);\n  }\n}\n";
9
+var styles = {"wrapper":"Modal_wrapper__3fGor","overlay":"Modal_overlay__iXPZ2","overlayer":"Modal_overlayer__3enBo","container":"Modal_container__3PbHe"};
10
+styleInject(css);
11
+
12
+export { isBrowser as i, styles as s };
13
+//# sourceMappingURL=Modal-67d33baf.js.map

+ 1
- 0
eslib/Modal-67d33baf.js.map View File

@@ -0,0 +1 @@
1
+{"version":3,"file":"Modal-67d33baf.js","sources":["../src/components/Common/Utils/utils.ts"],"sourcesContent":["export function isBrowser() {\r\n  return !(typeof window === undefined);\r\n}"],"names":["isBrowser","window","undefined"],"mappings":";;;AAAO,SAASA,SAAT,GAAqB;SACnB,EAAE,QAAOC,MAAP,yCAAOA,MAAP,OAAkBC,SAApB,CAAP;;;;;;;;;"}

+ 66
- 0
eslib/Modal/index.js View File

@@ -0,0 +1,66 @@
1
+import { a as _inherits, b as _createClass, c as _defineProperty, d as _classCallCheck, e as _possibleConstructorReturn, f as _getPrototypeOf } from '../_rollupPluginBabelHelpers-bf46fecd.js';
2
+import React from 'react';
3
+import '../style-inject.es-1f59c1d0.js';
4
+import { createPortal } from 'react-dom';
5
+import { i as isBrowser, s as styles } from '../Modal-67d33baf.js';
6
+
7
+var Modal =
8
+/*#__PURE__*/
9
+function (_React$PureComponent) {
10
+  _inherits(Modal, _React$PureComponent);
11
+
12
+  function Modal() {
13
+    _classCallCheck(this, Modal);
14
+
15
+    return _possibleConstructorReturn(this, _getPrototypeOf(Modal).apply(this, arguments));
16
+  }
17
+
18
+  _createClass(Modal, [{
19
+    key: "render",
20
+    value: function render() {
21
+      if (!isBrowser()) return null; // 服务端无需渲染下列代码,渲染也会出错
22
+
23
+      var DEFAULT_CONTAINER = document.getElementById('container');
24
+      var _this$props = this.props,
25
+          children = _this$props.children,
26
+          visible = _this$props.visible,
27
+          onCancel = _this$props.onCancel,
28
+          _this$props$container = _this$props.container,
29
+          container = _this$props$container === void 0 ? DEFAULT_CONTAINER : _this$props$container;
30
+      var finalMountContainer = document.body;
31
+
32
+      if (!container) {
33
+        if (!DEFAULT_CONTAINER) {
34
+          if (!Modal.hasShowWarning) {
35
+            Modal.hasShowWarning = true;
36
+          }
37
+
38
+          finalMountContainer = document.body;
39
+        } else {
40
+          if (!Modal.hasShowWarning) {
41
+            Modal.hasShowWarning = true;
42
+          }
43
+
44
+          finalMountContainer = DEFAULT_CONTAINER;
45
+        }
46
+      }
47
+
48
+      return visible && createPortal(React.createElement("div", {
49
+        className: styles.wrapper
50
+      }, React.createElement("div", {
51
+        className: styles.overlay,
52
+        onClick: onCancel
53
+      }), React.createElement("div", {
54
+        className: styles.container
55
+      }, children)), finalMountContainer);
56
+    }
57
+  }]);
58
+
59
+  return Modal;
60
+}(React.PureComponent);
61
+
62
+_defineProperty(Modal, "hasShowWarning", false);
63
+
64
+export default Modal;
65
+export { Modal };
66
+//# sourceMappingURL=index.js.map

+ 1
- 0
eslib/Modal/index.js.map View File

@@ -0,0 +1 @@
1
+{"version":3,"file":"index.js","sources":["../../src/components/Common/Modal/index.tsx"],"sourcesContent":["import React from 'react';\r\nimport { createPortal } from 'react-dom';\r\nimport { isBrowser } from '../Utils/utils';\r\n\r\nimport styles from './Modal.less';\r\n\r\nexport interface ModalProps {\r\n  visible: boolean\r\n  onCancel: (e: any) => void\r\n  container?: HTMLElement | null\r\n}\r\n\r\nexport class Modal extends React.PureComponent<ModalProps> {\r\n  static hasShowWarning = false;\r\n\r\n  render() {\r\n    if (!isBrowser()) return null; // 服务端无需渲染下列代码,渲染也会出错\r\n    const DEFAULT_CONTAINER: HTMLElement | null = document.getElementById('container');\r\n    const { children, visible, onCancel, container = DEFAULT_CONTAINER } = this.props\r\n    let finalMountContainer: HTMLElement = document.body;\r\n    if (!container) {\r\n      if (!DEFAULT_CONTAINER) {\r\n        if (!Modal.hasShowWarning) {\r\n          Modal.hasShowWarning = true;\r\n        }\r\n        finalMountContainer = document.body;\r\n      } else {\r\n        if (!Modal.hasShowWarning) {\r\n          Modal.hasShowWarning = true;\r\n        }\r\n        finalMountContainer = DEFAULT_CONTAINER;\r\n      }\r\n    }\r\n    return visible && createPortal(\r\n      <div className={ styles.wrapper }>\r\n        <div\r\n          className={ styles.overlay }\r\n          onClick={ onCancel }\r\n        />\r\n        <div\r\n          className={ styles.container }\r\n        >\r\n          { children }\r\n        </div>\r\n      </div>,\r\n      finalMountContainer,\r\n    )\r\n  }\r\n}\r\n\r\nexport default Modal;"],"names":["Modal","isBrowser","DEFAULT_CONTAINER","document","getElementById","props","children","visible","onCancel","container","finalMountContainer","body","hasShowWarning","createPortal","styles","wrapper","overlay","React","PureComponent"],"mappings":";;;;;;IAYaA,KAAb;;AAAA;;;;;;;;;;;6BAGW;UACH,CAACC,SAAS,EAAd,EAAkB,OAAO,IAAP,CADX;;UAEDC,iBAAqC,GAAGC,QAAQ,CAACC,cAAT,CAAwB,WAAxB,CAA9C;wBACuE,KAAKC,KAHrE;UAGCC,QAHD,eAGCA,QAHD;UAGWC,OAHX,eAGWA,OAHX;UAGoBC,QAHpB,eAGoBA,QAHpB;8CAG8BC,SAH9B;UAG8BA,SAH9B,sCAG0CP,iBAH1C;UAIHQ,mBAAgC,GAAGP,QAAQ,CAACQ,IAAhD;;UACI,CAACF,SAAL,EAAgB;YACV,CAACP,iBAAL,EAAwB;cAClB,CAACF,KAAK,CAACY,cAAX,EAA2B;YACzBZ,KAAK,CAACY,cAAN,GAAuB,IAAvB;;;UAEFF,mBAAmB,GAAGP,QAAQ,CAACQ,IAA/B;SAJF,MAKO;cACD,CAACX,KAAK,CAACY,cAAX,EAA2B;YACzBZ,KAAK,CAACY,cAAN,GAAuB,IAAvB;;;UAEFF,mBAAmB,GAAGR,iBAAtB;;;;aAGGK,OAAO,IAAIM,YAAY,CAC5B;QAAK,SAAS,EAAGC,MAAM,CAACC;SACtB;QACE,SAAS,EAAGD,MAAM,CAACE,OADrB;QAEE,OAAO,EAAGR;QAHd,EAKE;QACE,SAAS,EAAGM,MAAM,CAACL;SAEjBH,QAHJ,CALF,CAD4B,EAY5BI,mBAZ4B,CAA9B;;;;;EArBuBO,KAAK,CAACC,aAAjC;;gBAAalB,yBACa;;;;;"}

+ 4
- 3
eslib/PayPlatformOptions/index.js
File diff suppressed because it is too large
View File


+ 1
- 1
eslib/PayPlatformOptions/index.js.map
File diff suppressed because it is too large
View File


+ 9
- 3
eslib/Payment/index.js View File

@@ -1,11 +1,17 @@
1
-import '../_commonjsHelpers-aeb41076.js';
1
+import '../_rollupPluginBabelHelpers-bf46fecd.js';
2 2
 import 'react';
3
-import '../index-7951fb2f.js';
3
+import '../_commonjsHelpers-97e6d7b1.js';
4
+import '../index-c9837619.js';
4 5
 import '../style-inject.es-1f59c1d0.js';
5
-import '../utils-f64eef69.js';
6
+import 'react-dom';
7
+import '../Modal-67d33baf.js';
8
+import '../utils-74f31cae.js';
6 9
 export { default as ConsumeListView } from '../ConsumeListView/index.js';
7 10
 export { default as PayPlatformOptions } from '../PayPlatformOptions/index.js';
8 11
 import 'antd';
9 12
 export { default as PriceOptions } from '../PriceOptions/index.js';
10 13
 export { default as WaitPayInfoView } from '../WaitPayInfoView/index.js';
14
+export { default as AllocWantedModal } from '../AllocWantedModal/index.js';
15
+export { default as WantedPublishView } from '../WantedPublishView/index.js';
16
+export { default as WantedPublishPopover } from '../WantedPublishPopover/index.js';
11 17
 //# sourceMappingURL=index.js.map

+ 1
- 1
eslib/Payment/index.js.map View File

@@ -1 +1 @@
1
-{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
1
+{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}

+ 38
- 14
eslib/PriceOptions/index.js View File

@@ -1,16 +1,19 @@
1
-import { i as _slicedToArray, _ as _defineProperty } from '../_commonjsHelpers-aeb41076.js';
1
+import { i as _slicedToArray, c as _defineProperty, h as _objectSpread2 } from '../_rollupPluginBabelHelpers-bf46fecd.js';
2 2
 import React, { useState } from 'react';
3
-import { c as classnames } from '../index-7951fb2f.js';
3
+import '../_commonjsHelpers-97e6d7b1.js';
4
+import { c as classnames } from '../index-c9837619.js';
4 5
 import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
5 6
 import { Input } from 'antd';
6 7
 
7
-var css = ".PriceOptions_options__J-ZSS {\n  padding: 20px 50px;\n  border-bottom: 1px dashed #00000017;\n}\n.PriceOptions_options__J-ZSS p {\n  font-size: 14px;\n  font-weight: 400;\n  color: #616a79;\n  margin-bottom: 20px;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a {\n  padding-right: 0;\n  margin-bottom: -12px;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2 {\n  background: rgba(243, 243, 243, 0.14);\n  border-radius: 4px;\n  border: 1px solid #cfcfcf;\n  font-size: 14px;\n  font-weight: 600;\n  color: #616a79;\n  display: inline-block;\n  text-align: center;\n  vertical-align: top;\n  height: 30px;\n  width: 70px;\n  line-height: 30px;\n  cursor: pointer;\n  margin: 6px;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2.PriceOptions_active__3WyAU {\n  background: rgba(255, 50, 102, 0.1);\n  border-radius: 4px;\n  border: 1px solid #ff3266;\n  color: #616a79;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_priceInput__1MrVy {\n  display: inline-block;\n  min-width: 70px;\n  width: auto;\n  margin: 6px;\n  text-align: center;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a button {\n  border-top-left-radius: 0;\n  border-bottom-left-radius: 0;\n  height: 30px;\n  width: 50px;\n  vertical-align: top;\n  padding: 0 5px;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_rate__QgHQ3 {\n  margin-left: 10px;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_rate__QgHQ3 i {\n  margin-right: 5px;\n  color: #1790FF;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl {\n  padding: 0 0 12px 0;\n  border-bottom: none;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl p {\n  margin-bottom: 8px;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl .PriceOptions_infoItem__3IL3a {\n  text-align: center;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2 {\n  border-radius: 6px;\n  height: 32px;\n  width: 72px;\n  margin: 0 0 12px 19px;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2:first-child {\n  margin: 0 0 12px 0px;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl .PriceOptions_infoItem__3IL3a .PriceOptions_priceInput__1MrVy {\n  display: block;\n  width: 254px;\n  border-radius: 6px;\n  height: 32px;\n}\n@media (max-width: 768px) {\n  .PriceOptions_options__J-ZSS {\n    padding: 20px 20px;\n  }\n  .PriceOptions_options__J-ZSS p {\n    font-size: 14px;\n    font-weight: 400;\n    color: #616a79;\n  }\n  .PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a {\n    padding-right: 0;\n    display: flex;\n    flex-direction: column;\n    justify-content: center;\n  }\n  .PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_priceBtn__Xz4m_ {\n    display: flex;\n    justify-content: space-between;\n  }\n  .PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2 {\n    display: inline-block;\n    background-color: #fff;\n    width: 74px;\n    height: 36px;\n    line-height: 36px;\n    border-radius: 6px;\n    border: 1px solid #cfcfcf;\n  }\n  .PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2.PriceOptions_active__3WyAU {\n    background-color: #fff;\n    color: #FF3266FF;\n    border-radius: 4px;\n    border: 1px solid #ff3266;\n  }\n  .PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_priceInput__1MrVy {\n    border-radius: 6px;\n    height: 36px;\n    width: auto;\n  }\n}\n";
8
-var styles = {"options":"PriceOptions_options__J-ZSS","infoItem":"PriceOptions_infoItem__3IL3a","priceItem":"PriceOptions_priceItem__rJ9o2","active":"PriceOptions_active__3WyAU","priceInput":"PriceOptions_priceInput__1MrVy","rate":"PriceOptions_rate__QgHQ3","small":"PriceOptions_small__2-wzl","priceBtn":"PriceOptions_priceBtn__Xz4m_"};
8
+var css = ".PriceOptions_options__J-ZSS {\n  border-bottom: 1px dashed #00000017;\n}\n.PriceOptions_options__J-ZSS p {\n  font-size: 14px;\n  font-weight: 400;\n  color: #616a79;\n  margin-bottom: 20px;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a {\n  padding-right: 0;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2 {\n  background: rgba(243, 243, 243, 0.14);\n  border-radius: 4px;\n  border: 1px solid #cfcfcf;\n  font-size: 14px;\n  font-weight: 600;\n  color: #616a79;\n  display: inline-block;\n  text-align: center;\n  vertical-align: top;\n  height: 30px;\n  width: 70px;\n  line-height: 30px;\n  cursor: pointer;\n  margin: 6px;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2.PriceOptions_active__3WyAU {\n  background: rgba(255, 50, 102, 0.1);\n  border-radius: 4px;\n  border: 1px solid #ff3266;\n  color: #616a79;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_priceInput__1MrVy {\n  display: inline-block;\n  min-width: 70px;\n  width: auto;\n  margin: 6px;\n  text-align: center;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a button {\n  border-top-left-radius: 0;\n  border-bottom-left-radius: 0;\n  height: 30px;\n  width: 50px;\n  vertical-align: top;\n  padding: 0 5px;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_rate__QgHQ3 {\n  margin-left: 10px;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_rate__QgHQ3 i {\n  margin-right: 5px;\n  color: #1790FF;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl {\n  padding: 0 0 12px 0;\n  border-bottom: none;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl p {\n  margin-bottom: 8px;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl .PriceOptions_infoItem__3IL3a {\n  text-align: center;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2 {\n  border-radius: 6px;\n  height: 32px;\n  width: 72px;\n  margin: 0 0 12px 19px;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2:first-child {\n  margin: 0 0 12px 0px;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl .PriceOptions_infoItem__3IL3a .PriceOptions_priceInput__1MrVy {\n  display: block;\n  width: 254px;\n  border-radius: 6px;\n  height: 32px;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_multi__N_Xc4 {\n  padding: 20px 20px;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_multi__N_Xc4 p {\n  font-size: 14px;\n  font-weight: 400;\n  color: #616a79;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_multi__N_Xc4 .PriceOptions_infoItem__3IL3a {\n  padding-right: 0;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_multi__N_Xc4 .PriceOptions_infoItem__3IL3a .PriceOptions_priceBtn__Xz4m_ {\n  display: flex;\n  justify-content: space-between;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_multi__N_Xc4 .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2 {\n  display: inline-block;\n  background-color: #fff;\n  width: 74px;\n  height: 36px;\n  line-height: 36px;\n  border-radius: 4px;\n  border: 1px solid #cfcfcf;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_multi__N_Xc4 .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2.PriceOptions_active__3WyAU {\n  background-color: #fff;\n  color: #FF3266FF;\n  border-radius: 4px;\n  border: 1px solid #ff3266;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_multi__N_Xc4 .PriceOptions_infoItem__3IL3a .PriceOptions_priceInput__1MrVy {\n  border-radius: 6px;\n  height: 36px;\n  width: auto;\n}\n";
9
+var styles = {"options":"PriceOptions_options__J-ZSS","infoItem":"PriceOptions_infoItem__3IL3a","priceItem":"PriceOptions_priceItem__rJ9o2","active":"PriceOptions_active__3WyAU","priceInput":"PriceOptions_priceInput__1MrVy","rate":"PriceOptions_rate__QgHQ3","small":"PriceOptions_small__2-wzl","multi":"PriceOptions_multi__N_Xc4","priceBtn":"PriceOptions_priceBtn__Xz4m_"};
9 10
 styleInject(css);
10 11
 
11 12
 var PriceOptions = function PriceOptions(_ref) {
12 13
   var price = _ref.price,
13 14
       onPriceChange = _ref.onPriceChange,
15
+      _ref$rowMode = _ref.rowMode,
16
+      rowMode = _ref$rowMode === void 0 ? "single" : _ref$rowMode,
14 17
       _ref$size = _ref.size,
15 18
       _ref$focusScroll = _ref.focusScroll,
16 19
       focusScroll = _ref$focusScroll === void 0 ? true : _ref$focusScroll,
@@ -30,6 +33,13 @@ var PriceOptions = function PriceOptions(_ref) {
30 33
       inputPriceRender = _ref$inputPriceRender === void 0 ? function (i) {
31 34
     return i ? i / 100 : "";
32 35
   } : _ref$inputPriceRender,
36
+      _ref$inputSuffix = _ref.inputSuffix,
37
+      inputSuffix = _ref$inputSuffix === void 0 ? "¥" : _ref$inputSuffix,
38
+      _ref$injectOptions = _ref.injectOptions,
39
+      injectOptions = _ref$injectOptions === void 0 ? {
40
+    priceBtnClass: {},
41
+    priceInputClass: {}
42
+  } : _ref$injectOptions,
33 43
       inputRef = _ref.inputRef;
34 44
   var defaultOptions = priceOptions; // 控制是否为其他金额输入情况
35 45
 
@@ -38,17 +48,22 @@ var PriceOptions = function PriceOptions(_ref) {
38 48
       inputStatus = _useState2[0],
39 49
       setInputStatus = _useState2[1];
40 50
 
51
+  var _useState3 = useState(''),
52
+      _useState4 = _slicedToArray(_useState3, 2),
53
+      inputPrice = _useState4[0],
54
+      setInputPrice = _useState4[1];
55
+
41 56
   return React.createElement("div", {
42
-    className: classnames(styles.options)
57
+    className: classnames(styles.options, _defineProperty({}, styles.multi, rowMode === "multi"))
43 58
   }, withTitle ? titleText || null : null, React.createElement("div", {
44 59
     className: styles.infoItem
45 60
   }, React.createElement("span", {
46 61
     className: styles.priceBtn
47 62
   }, defaultOptions.map(function (item) {
48
-    var _classnames;
63
+    var _objectSpread2$1;
49 64
 
50 65
     return React.createElement("span", {
51
-      className: classnames((_classnames = {}, _defineProperty(_classnames, styles.priceItem, true), _defineProperty(_classnames, styles.active, price === item && !inputStatus), _classnames)),
66
+      className: classnames(_objectSpread2((_objectSpread2$1 = {}, _defineProperty(_objectSpread2$1, styles.priceItem, true), _defineProperty(_objectSpread2$1, styles.active, price === item && !inputStatus), _objectSpread2$1), injectOptions.priceBtnClass)),
52 67
       key: item,
53 68
       onClick: function onClick() {
54 69
         onPriceChange(item);
@@ -57,15 +72,15 @@ var PriceOptions = function PriceOptions(_ref) {
57 72
     }, priceRender(item));
58 73
   })), React.createElement(Input, {
59 74
     ref: inputRef,
75
+    className: classnames(styles.priceInput, _objectSpread2({}, injectOptions.priceInputClass)),
60 76
     onMouseEnter: function onMouseEnter() {
61 77
       if (inputStatus && inputRef && inputRef.current) {
62 78
         inputRef.current.focus();
63 79
         inputRef.current.select();
64 80
       }
65 81
     },
66
-    suffix: "\xA5",
67
-    className: styles.priceInput,
68
-    value: inputStatus ? inputPriceRender(price) : "",
82
+    suffix: inputSuffix,
83
+    value: inputStatus ? inputPriceRender(inputPrice) : "",
69 84
     placeholder: inputPlaceholderText,
70 85
     onChange: function onChange(e) {
71 86
       var n = +e.target.value;
@@ -75,15 +90,24 @@ var PriceOptions = function PriceOptions(_ref) {
75 90
       } // 测试暂时改成1分
76 91
 
77 92
 
93
+      setInputPrice("".concat(n * 100));
78 94
       onPriceChange(n * 100);
79 95
     },
80 96
     onClick: function onClick(e) {
81
-      onPriceChange(0);
82
-      setInputStatus(true);
97
+      if (!inputStatus) {
98
+        setInputPrice('');
99
+        setInputStatus(true);
100
+      }
83 101
     },
84 102
     onFocus: function onFocus(e) {
85 103
       e.target.placeholder = "";
86
-      setInputStatus(true);
104
+
105
+      if (inputStatus) {
106
+        setInputPrice("".concat(price));
107
+      } else {
108
+        setInputPrice('');
109
+        setInputStatus(true);
110
+      }
87 111
 
88 112
       if (focusScroll) {
89 113
         e.target.scrollIntoView();
@@ -92,7 +116,7 @@ var PriceOptions = function PriceOptions(_ref) {
92 116
     onBlur: function onBlur(e) {
93 117
       e.target.placeholder = inputPlaceholderText;
94 118
 
95
-      if (price) {
119
+      if (inputPrice) {
96 120
         setInputStatus(true);
97 121
       } else {
98 122
         setInputStatus(false);

+ 1
- 1
eslib/PriceOptions/index.js.map
File diff suppressed because it is too large
View File


+ 4
- 3
eslib/RichTextEditor/index.js View File

@@ -1,9 +1,10 @@
1
-import { a as _inherits, b as _createClass, d as _classCallCheck, e as _possibleConstructorReturn, f as _getPrototypeOf, _ as _defineProperty, k as _assertThisInitialized } from '../_commonjsHelpers-aeb41076.js';
1
+import { a as _inherits, b as _createClass, d as _classCallCheck, e as _possibleConstructorReturn, f as _getPrototypeOf, c as _defineProperty, j as _assertThisInitialized } from '../_rollupPluginBabelHelpers-bf46fecd.js';
2 2
 import React from 'react';
3
+import '../_commonjsHelpers-97e6d7b1.js';
3 4
 import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
4
-import { a as Draft_4, b as Draft_3, c as Draft_15, d as Draft_14, e as Draft_20, f as Draft_1 } from '../Draft-ec3417b2.js';
5
-import '../_react-dom_commonjs-external-d3012e04.js';
6 5
 import 'react-dom';
6
+import { a as Draft_4, b as Draft_3, c as Draft_15, d as Draft_14, e as Draft_20, f as Draft_1 } from '../Draft-9634837d.js';
7
+import '../_react-dom_commonjs-external-d3012e04.js';
7 8
 
8 9
 var css = ".RichTextEditor_wrapper__3X3Yv .RichTextEditor_btnListWrapper__vUaki {\n  display: flex;\n}\n.RichTextEditor_wrapper__3X3Yv .RichTextEditor_editorWrapper__3UFgF {\n  border: 1px solid #ccc;\n}\n";
9 10
 var styles = {"wrapper":"RichTextEditor_wrapper__3X3Yv","btnListWrapper":"RichTextEditor_btnListWrapper__vUaki","editorWrapper":"RichTextEditor_editorWrapper__3UFgF"};

+ 1
- 1
eslib/RichTextEditor/index.js.map
File diff suppressed because it is too large
View File


+ 3
- 2
eslib/RichTextEditorForSlate/index.js View File

@@ -1,7 +1,8 @@
1
-import { c as createCommonjsModule, u as unwrapExports, j as commonjsGlobal, i as _slicedToArray } from '../_commonjsHelpers-aeb41076.js';
1
+import { i as _slicedToArray } from '../_rollupPluginBabelHelpers-bf46fecd.js';
2 2
 import React$1, { useMemo, useState } from 'react';
3
-import { r as require$$3 } from '../_react-dom_commonjs-external-d3012e04.js';
3
+import { c as createCommonjsModule, u as unwrapExports, a as commonjsGlobal } from '../_commonjsHelpers-97e6d7b1.js';
4 4
 import 'react-dom';
5
+import { r as require$$3 } from '../_react-dom_commonjs-external-d3012e04.js';
5 6
 
6 7
 /*!
7 8
  * isobject <https://github.com/jonschlinkert/isobject>

+ 1
- 1
eslib/RichTextEditorForSlate/index.js.map
File diff suppressed because it is too large
View File


+ 3
- 2
eslib/WaitPayInfoView/index.js View File

@@ -1,6 +1,7 @@
1
-import { a as _inherits, b as _createClass, _ as _defineProperty, d as _classCallCheck, e as _possibleConstructorReturn, f as _getPrototypeOf } from '../_commonjsHelpers-aeb41076.js';
1
+import { a as _inherits, b as _createClass, c as _defineProperty, d as _classCallCheck, e as _possibleConstructorReturn, f as _getPrototypeOf } from '../_rollupPluginBabelHelpers-bf46fecd.js';
2 2
 import React, { Component } from 'react';
3
-import { c as classnames } from '../index-7951fb2f.js';
3
+import '../_commonjsHelpers-97e6d7b1.js';
4
+import { c as classnames } from '../index-c9837619.js';
4 5
 import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
5 6
 
6 7
 var css = ".WaitPayInfoView_waitingContainer__2DyOZ {\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n}\n";

+ 1
- 1
eslib/WaitPayInfoView/index.js.map
File diff suppressed because it is too large
View File


+ 145
- 0
eslib/WantedPublishPopover/index.js View File

@@ -0,0 +1,145 @@
1
+import { a as _inherits, b as _createClass, d as _classCallCheck, e as _possibleConstructorReturn, f as _getPrototypeOf, c as _defineProperty, j as _assertThisInitialized, g as _extends } from '../_rollupPluginBabelHelpers-bf46fecd.js';
2
+import React from 'react';
3
+import '../_commonjsHelpers-97e6d7b1.js';
4
+import '../index-c9837619.js';
5
+import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
6
+import { Popover } from 'antd';
7
+import WantedPublishView from '../WantedPublishView/index.js';
8
+
9
+const img = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAAFNElEQVRYR82Yf0jcdRjH33enp1NbTQ3FdKhTY64hTTsURc6keQeSqIPSQJIiMHM3zj8ST/BE/And+c8wmSSMomHl4EaaP2aeuq/R1MwrraEgLVbLXcvpReY847l9v3I7774/LKUHjuN79/k8z+v7+fG8n89Hhv+pyf4F1xEAxwE8BSAIQDAAPwB/AnCwnzsAVgHsSI0jFcwfwEkA8QAiRAYj0BUACwDsIvtALJgcwLMA0tjREevfs90tADcBbAg5EAN2FEAegFAhZyL/3wYwBeB7vvZCYFEAzgIIEBlUSjMCYwA4vXXiA6N1lAuApvGg7DaAL7zB+QILB1DA7rKDguL80shNegbxBkZbv4jd/gcNxfmfYHftbjxvYDR9CYdFxMahDfExm/tcP3mC0RQWHzIUF+5HAGPcgydYPoBn+MCSk5ODm5ubs4qKigadTq8b6rHuFRUVcYmJicf0ev2swAuTOnwC4L7niD0J4FW+zvHx8YEMw+gjIiKOz8zM3MjIyPhwa2vLp9xUV1cntra2VioUCv+WlpYug8EwLwD3HYAbnmApANL5OlZVVZ0wm806hUKhpHbz8/Nfq1Sqns3NzT1wdXV1J41GYwXXdnZ2lklNTb0sAEaK8JEnGKWHSKH1xY2Cn59fILVdXFz8RqVSXdrY2Nid16amptM1NTVvyeVy0laIGV23uJ+SpnJrTAHgTSEo7v/Kyso4k8l0XqlUUoWBpaUlW3p6epfdbn9oMpnO6HS6N+RyOfnE1NTUWFZW1hUx65H1T3I1z4E9AaBULBi1Ky8vj+ns7NQFBASE0PPKysqi1WqdKSsrK5XJZC61sFqtw2q1+jMpfgmK3ocDoymkqZRkJSUlUd3d3ReCgoJI6B+zwcHBzzUazTVJDh81XgJwnQOLY8Vasp+CgoKI3t7ed5VKJSmGy4aGhvrz8vIskp096kDF5TUOjCpR7X4c9fX1nS0sLCQJ27XV1dXbubm5HTabjSpZqfYTgAEOLAzAOake+vv787VaLSVlsh2Hw/EgODiY8iHsdvsdjUbTMT09/UCi3x9oeXJgtLvKpDgYHR0tzMnJoQISOzs7zq6urss9PT0LAwMDF0JDQ6mOw9ra2t38/Hzz5OTkHxJ8k0Lc5MDo+3UArsTJZ3K5HOPj469kZmbmsFDbHR0dH+j1+hl6TklJCRkZGdGFh4fH0PP6+vq94uJi8/DwsNh6/0sAt9y18kUAiXxQ/v7+MoZhXktLS8uidk6n82FbW9ul2trab937JSUlBVmt1vORkZGx9LvD4bhfWlpqtlgsvwm8NykIqcNf7mBUsb7E19FoNJ6qr6+vojbb29t/NzY2vt/Q0ECnnz0WGxsbODEx8U50dLSrhFpeXrYlJCRcFAD7BYBrN7uDkXzQOqOzoU+zWCwarVarNRgMF9vb2+nU49OioqKUDMO8HRIScjQ7O/u9hYUFoV1KZwCbJxg9vwDgjNA6U6vVx8bGxlzliZCFhYX5xcTEHJmbm1sXaEvnzysAtryB0eIvAeAS6EO2caoJuJjeSutTAFyL+xDtdwCkqbsViq9T0mHW/ZsArlLacx8IX2C0AV4G8PQBjxqlh34AP3vG4TvwkihrDhCOTkZ0+KBqYo8JXRHQyKkBnPiPR4524CAAnwlXCIzjOc3e9AhKlogXoCspOnnz5jSxYBSPLlaeB/AcAFfZLNHuAvgKwK9i+kkB4/xRjqP6jXSQhJpPKUi4aYToc08MEF8ek9KfRo675qRv7qqTu+6kVLAv28+I7SuQ1E7/AHTQdDZ7M6+KAAAAAElFTkSuQmCC';
10
+
11
+var css = ".WantedPublishPopover_wanted_wrapper__1HLvh {\n  width: 366px;\n  height: 424px;\n  font-size: 18px;\n  text-align: center;\n}\n.WantedPublishPopover_wanted_wrapper__1HLvh .WantedPublishPopover_close_btn__2gPNo {\n  position: absolute;\n  top: 10px;\n  right: 16px;\n  width: 20px;\n  height: 20px;\n}\n.WantedPublishPopover_wanted_wrapper__1HLvh .WantedPublishPopover_close_btn__2gPNo > button {\n  border: none;\n  padding: 0px;\n  margin: 0px;\n  cursor: pointer;\n}\n.WantedPublishPopover_wanted_wrapper__1HLvh .WantedPublishPopover_close_btn__2gPNo > button > img {\n  width: 100%;\n}\n";
12
+var styles = {"wanted_wrapper":"WantedPublishPopover_wanted_wrapper__1HLvh","close_btn":"WantedPublishPopover_close_btn__2gPNo","wantedWrapper":"WantedPublishPopover_wanted_wrapper__1HLvh","closeBtn":"WantedPublishPopover_close_btn__2gPNo"};
13
+styleInject(css);
14
+
15
+var WantedPublishPopover =
16
+/*#__PURE__*/
17
+function (_React$Component) {
18
+  _inherits(WantedPublishPopover, _React$Component);
19
+
20
+  function WantedPublishPopover(props) {
21
+    var _this;
22
+
23
+    _classCallCheck(this, WantedPublishPopover);
24
+
25
+    _this = _possibleConstructorReturn(this, _getPrototypeOf(WantedPublishPopover).call(this, props));
26
+
27
+    _defineProperty(_assertThisInitialized(_this), "handleClose", function () {
28
+      var handleConfirm = _this.props.handleConfirm;
29
+
30
+      if (handleConfirm) {
31
+        _this.handleUpdateCurrentWanted(_this.state.current_wanted, function (value) {
32
+          handleConfirm(Number(value).toFixed(2));
33
+        });
34
+      }
35
+
36
+      _this.setState({
37
+        visible: false
38
+      });
39
+    });
40
+
41
+    _defineProperty(_assertThisInitialized(_this), "clearCurrentWanted", function (cb) {
42
+      _this.setState({
43
+        current_wanted: null
44
+      }, function () {
45
+        return cb();
46
+      });
47
+    });
48
+
49
+    _defineProperty(_assertThisInitialized(_this), "handleUpdateCurrentWanted", function (value, afterUpdate) {
50
+      if (!value) return;
51
+      var result;
52
+      result = value;
53
+
54
+      if (parseInt("".concat(value), 10) === value) {
55
+        // 无小数判断
56
+        result = Number(value);
57
+      }
58
+
59
+      if (!result) return;
60
+      if (result > 10000) result = 10000;
61
+      if (result < 5) result = 5;
62
+
63
+      _this.setState({
64
+        current_wanted: result
65
+      }, function () {
66
+        return afterUpdate && afterUpdate(result);
67
+      });
68
+    });
69
+
70
+    _this.state = {
71
+      visible: false,
72
+      current_wanted: null
73
+    };
74
+    return _this;
75
+  }
76
+
77
+  _createClass(WantedPublishPopover, [{
78
+    key: "renderInitView",
79
+    value: function renderInitView() {
80
+      var _this2 = this;
81
+
82
+      var current_wanted = this.state.current_wanted;
83
+      return React.createElement(WantedPublishView, {
84
+        type: "pop",
85
+        current_wanted: current_wanted,
86
+        InputWantedValueChange: function InputWantedValueChange(v) {
87
+          return _this2.setState({
88
+            current_wanted: v
89
+          });
90
+        },
91
+        InputWantedPressEnter: function InputWantedPressEnter(v) {
92
+          return _this2.handleUpdateCurrentWanted(v, _this2.handleClose);
93
+        },
94
+        InputWantedOnBlur: function InputWantedOnBlur(v) {
95
+          return _this2.handleUpdateCurrentWanted(v);
96
+        },
97
+        InputWantedClear: function InputWantedClear() {
98
+          return _this2.clearCurrentWanted(_this2.handleClose);
99
+        },
100
+        CloseFunction: this.handleClose
101
+      });
102
+    }
103
+  }, {
104
+    key: "render",
105
+    value: function render() {
106
+      var _this3 = this;
107
+
108
+      var _this$props = this.props,
109
+          children = _this$props.children,
110
+          _this$props$popoverCo = _this$props.popoverConfig,
111
+          popoverConfig = _this$props$popoverCo === void 0 ? {} : _this$props$popoverCo;
112
+      return React.createElement(Popover, _extends({
113
+        placement: "left",
114
+        trigger: "click",
115
+        visible: this.state.visible,
116
+        onVisibleChange: function onVisibleChange(value) {
117
+          if (!value) {
118
+            _this3.handleClose();
119
+          }
120
+
121
+          _this3.setState({
122
+            visible: value
123
+          });
124
+        }
125
+      }, popoverConfig, {
126
+        content: React.createElement("div", {
127
+          className: styles.wanted_wrapper
128
+        }, React.createElement("div", {
129
+          className: styles.close_btn
130
+        }, React.createElement("button", {
131
+          onClick: this.handleClose
132
+        }, React.createElement("img", {
133
+          src: img,
134
+          alt: "close wanted button"
135
+        }))), this.renderInitView())
136
+      }), children);
137
+    }
138
+  }]);
139
+
140
+  return WantedPublishPopover;
141
+}(React.Component);
142
+
143
+export default WantedPublishPopover;
144
+export { WantedPublishPopover };
145
+//# sourceMappingURL=index.js.map

+ 1
- 0
eslib/WantedPublishPopover/index.js.map
File diff suppressed because it is too large
View File


+ 94
- 0
eslib/WantedPublishView/index.js
File diff suppressed because it is too large
View File


+ 1
- 0
eslib/WantedPublishView/index.js.map
File diff suppressed because it is too large
View File


+ 12
- 0
eslib/_commonjsHelpers-97e6d7b1.js View File

@@ -0,0 +1,12 @@
1
+var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2
+
3
+function unwrapExports (x) {
4
+	return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
5
+}
6
+
7
+function createCommonjsModule(fn, module) {
8
+	return module = { exports: {} }, fn(module, module.exports), module.exports;
9
+}
10
+
11
+export { commonjsGlobal as a, createCommonjsModule as c, unwrapExports as u };
12
+//# sourceMappingURL=_commonjsHelpers-97e6d7b1.js.map

+ 1
- 0
eslib/_commonjsHelpers-97e6d7b1.js.map View File

@@ -0,0 +1 @@
1
+{"version":3,"file":"_commonjsHelpers-97e6d7b1.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}

+ 0
- 1
eslib/_commonjsHelpers-aeb41076.js.map View File

@@ -1 +0,0 @@
1
-{"version":3,"file":"_commonjsHelpers-aeb41076.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}

eslib/_commonjsHelpers-aeb41076.js → eslib/_rollupPluginBabelHelpers-bf46fecd.js View File

@@ -1,3 +1,17 @@
1
+function _typeof(obj) {
2
+  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
3
+    _typeof = function (obj) {
4
+      return typeof obj;
5
+    };
6
+  } else {
7
+    _typeof = function (obj) {
8
+      return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
9
+    };
10
+  }
11
+
12
+  return _typeof(obj);
13
+}
14
+
1 15
 function _classCallCheck(instance, Constructor) {
2 16
   if (!(instance instanceof Constructor)) {
3 17
     throw new TypeError("Cannot call a class as a function");
@@ -176,15 +190,5 @@ function _nonIterableRest() {
176 190
   throw new TypeError("Invalid attempt to destructure non-iterable instance");
177 191
 }
178 192
 
179
-var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
180
-
181
-function unwrapExports (x) {
182
-	return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
183
-}
184
-
185
-function createCommonjsModule(fn, module) {
186
-	return module = { exports: {} }, fn(module, module.exports), module.exports;
187
-}
188
-
189
-export { _defineProperty as _, _inherits as a, _createClass as b, createCommonjsModule as c, _classCallCheck as d, _possibleConstructorReturn as e, _getPrototypeOf as f, _extends as g, _objectSpread2 as h, _slicedToArray as i, commonjsGlobal as j, _assertThisInitialized as k, unwrapExports as u };
190
-//# sourceMappingURL=_commonjsHelpers-aeb41076.js.map
193
+export { _typeof as _, _inherits as a, _createClass as b, _defineProperty as c, _classCallCheck as d, _possibleConstructorReturn as e, _getPrototypeOf as f, _extends as g, _objectSpread2 as h, _slicedToArray as i, _assertThisInitialized as j };
194
+//# sourceMappingURL=_rollupPluginBabelHelpers-bf46fecd.js.map

+ 1
- 0
eslib/_rollupPluginBabelHelpers-bf46fecd.js.map View File

@@ -0,0 +1 @@
1
+{"version":3,"file":"_rollupPluginBabelHelpers-bf46fecd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}

eslib/index-7951fb2f.js → eslib/index-c9837619.js View File

@@ -1,4 +1,4 @@
1
-import { c as createCommonjsModule } from './_commonjsHelpers-aeb41076.js';
1
+import { c as createCommonjsModule } from './_commonjsHelpers-97e6d7b1.js';
2 2
 
3 3
 var classnames = createCommonjsModule(function (module) {
4 4
 /*!
@@ -50,4 +50,4 @@ var classnames = createCommonjsModule(function (module) {
50 50
 });
51 51
 
52 52
 export { classnames as c };
53
-//# sourceMappingURL=index-7951fb2f.js.map
53
+//# sourceMappingURL=index-c9837619.js.map

eslib/index-7951fb2f.js.map → eslib/index-c9837619.js.map View File

@@ -1 +1 @@
1
-{"version":3,"file":"index-7951fb2f.js","sources":["../node_modules/classnames/index.js"],"sourcesContent":["/*!\n  Copyright (c) 2017 Jed Watson.\n  Licensed under the MIT License (MIT), see\n  http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n"],"names":[],"mappings":";;;;;;;;;;AAOA,CAAC,YAAY;;CAGZ,IAAI,MAAM,GAAG,EAAE,CAAC,cAAc,CAAC;;CAE/B,SAAS,UAAU,IAAI;EACtB,IAAI,OAAO,GAAG,EAAE,CAAC;;EAEjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;GAC1C,IAAI,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;GACvB,IAAI,CAAC,GAAG,EAAE,SAAS;;GAEnB,IAAI,OAAO,GAAG,OAAO,GAAG,CAAC;;GAEzB,IAAI,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,QAAQ,EAAE;IACjD,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAClB,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,EAAE;IAC5C,IAAI,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IACxC,IAAI,KAAK,EAAE;KACV,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACpB;IACD,MAAM,IAAI,OAAO,KAAK,QAAQ,EAAE;IAChC,KAAK,IAAI,GAAG,IAAI,GAAG,EAAE;KACpB,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,GAAG,CAAC,GAAG,CAAC,EAAE;MACtC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;MAClB;KACD;IACD;GACD;;EAED,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;EACzB;;CAED,IAAI,CAAiC,MAAM,CAAC,OAAO,EAAE;EACpD,UAAU,CAAC,OAAO,GAAG,UAAU,CAAC;EAChC,cAAc,GAAG,UAAU,CAAC;EAC5B,MAAM,AAKA;EACN,MAAM,CAAC,UAAU,GAAG,UAAU,CAAC;EAC/B;CACD,EAAE,EAAE;;;;;"}
1
+{"version":3,"file":"index-c9837619.js","sources":["../node_modules/classnames/index.js"],"sourcesContent":["/*!\n  Copyright (c) 2017 Jed Watson.\n  Licensed under the MIT License (MIT), see\n  http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n"],"names":[],"mappings":";;;;;;;;;;AAOA,CAAC,YAAY;;CAGZ,IAAI,MAAM,GAAG,EAAE,CAAC,cAAc,CAAC;;CAE/B,SAAS,UAAU,IAAI;EACtB,IAAI,OAAO,GAAG,EAAE,CAAC;;EAEjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;GAC1C,IAAI,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;GACvB,IAAI,CAAC,GAAG,EAAE,SAAS;;GAEnB,IAAI,OAAO,GAAG,OAAO,GAAG,CAAC;;GAEzB,IAAI,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,QAAQ,EAAE;IACjD,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAClB,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,EAAE;IAC5C,IAAI,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IACxC,IAAI,KAAK,EAAE;KACV,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACpB;IACD,MAAM,IAAI,OAAO,KAAK,QAAQ,EAAE;IAChC,KAAK,IAAI,GAAG,IAAI,GAAG,EAAE;KACpB,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,GAAG,CAAC,GAAG,CAAC,EAAE;MACtC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;MAClB;KACD;IACD;GACD;;EAED,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;EACzB;;CAED,IAAI,CAAiC,MAAM,CAAC,OAAO,EAAE;EACpD,UAAU,CAAC,OAAO,GAAG,UAAU,CAAC;EAChC,cAAc,GAAG,UAAU,CAAC;EAC5B,MAAM,AAKA;EACN,MAAM,CAAC,UAAU,GAAG,UAAU,CAAC;EAC/B;CACD,EAAE,EAAE;;;;;"}

+ 11
- 4
eslib/index.js View File

@@ -1,14 +1,21 @@
1
-import './_commonjsHelpers-aeb41076.js';
1
+import './_rollupPluginBabelHelpers-bf46fecd.js';
2 2
 import 'react';
3
-import './index-7951fb2f.js';
3
+import './_commonjsHelpers-97e6d7b1.js';
4
+import './index-c9837619.js';
4 5
 import './style-inject.es-1f59c1d0.js';
5
-import './test-81795c27.js';
6
-import './utils-f64eef69.js';
6
+import './test-3e7def9a.js';
7
+import 'react-dom';
8
+import './Modal-67d33baf.js';
9
+export { default as Modal } from './Modal/index.js';
10
+import './utils-74f31cae.js';
7 11
 export { default as ConsumeListView } from './ConsumeListView/index.js';
8 12
 export { default as PayPlatformOptions } from './PayPlatformOptions/index.js';
9 13
 import 'antd';
10 14
 export { default as PriceOptions } from './PriceOptions/index.js';
11 15
 export { default as WaitPayInfoView } from './WaitPayInfoView/index.js';
16
+export { default as AllocWantedModal } from './AllocWantedModal/index.js';
17
+export { default as WantedPublishView } from './WantedPublishView/index.js';
18
+export { default as WantedPublishPopover } from './WantedPublishPopover/index.js';
12 19
 
13 20
 // type TransmitImgTxtData = {
14 21
 //   user_id?: string|number;

+ 1
- 1
eslib/index.js.map
File diff suppressed because it is too large
View File


eslib/test-81795c27.js → eslib/test-3e7def9a.js View File

@@ -1,6 +1,6 @@
1
-import './_commonjsHelpers-aeb41076.js';
1
+import './_rollupPluginBabelHelpers-bf46fecd.js';
2 2
 import 'react';
3
-import './index-7951fb2f.js';
3
+import './index-c9837619.js';
4 4
 import { s as styleInject } from './style-inject.es-1f59c1d0.js';
5 5
 
6 6
 var css = ".test_red__3UOk2 {\n  color: red;\n}\n";
@@ -72,4 +72,4 @@ styleInject(css);
72 72
 var Test = "TestComponent";
73 73
 
74 74
 export { Test as T };
75
-//# sourceMappingURL=test-81795c27.js.map
75
+//# sourceMappingURL=test-3e7def9a.js.map

eslib/test-3e7def9a.js.map
File diff suppressed because it is too large
View File


eslib/utils-f64eef69.js → eslib/utils-74f31cae.js View File

@@ -1,4 +1,4 @@
1
-import { _ as _defineProperty } from './_commonjsHelpers-aeb41076.js';
1
+import { c as _defineProperty } from './_rollupPluginBabelHelpers-bf46fecd.js';
2 2
 
3 3
 var IMAGE_PROCESS = '?x-oss-process=image/resize,h_350';
4 4
 var IMAGE_PROCESS_SMALL = '?x-oss-process=image/resize,h_100';
@@ -33,4 +33,4 @@ function exportStyleSizeClass(styles, size) {
33 33
 }
34 34
 
35 35
 export { addImageProcess as a, exportStyleSizeClass as e };
36
-//# sourceMappingURL=utils-f64eef69.js.map
36
+//# sourceMappingURL=utils-74f31cae.js.map

+ 1
- 0
eslib/utils-74f31cae.js.map View File

@@ -0,0 +1 @@
1
+{"version":3,"file":"utils-74f31cae.js","sources":["../src/components/Payment/Utils/utils.ts"],"sourcesContent":["\r\nexport const IMAGE_PROCESS = '?x-oss-process=image/resize,h_350';\r\nexport const IMAGE_PROCESS_SMALL = '?x-oss-process=image/resize,h_100';\r\nexport const IMAGE_PROCESS_LARGE = '?x-oss-process=image/resize,h_500';\r\n\r\ninterface AddImageProcessOptions {\r\n  small?: boolean;\r\n  large?: boolean;\r\n  custom?: boolean;\r\n  width?: string;\r\n  height?: string;\r\n}\r\n\r\nexport function addImageProcess(url: string, options: AddImageProcessOptions = { width: '36px', height: '36px' }) {\r\n  // 防止重复添加导致的url不正确\r\n  if (url && url.indexOf('x-oss-process') > -1) {\r\n    return url;\r\n  }\r\n  if (options.small) {\r\n    return url + IMAGE_PROCESS_SMALL;\r\n  }\r\n  if (options.large) {\r\n    return url + IMAGE_PROCESS_LARGE;\r\n  }\r\n  if (options.custom) {\r\n    return `${url}?x-oss-process=image/resize,limit_0,m_fill,w_${options.width},h_${options.height}`;\r\n  }\r\n  return url + IMAGE_PROCESS;\r\n}\r\n\r\nexport function formatMoney(input: any, fuzz = 2) {\r\n  if (isNaN(+input)) {\r\n    return input;\r\n  }\r\n  return (+input).toFixed(fuzz);\r\n}\r\n\r\ntype classSize = 'small'|'normal'|'large';\r\n\r\nexport function exportStyleSizeClass(styles: any, size: classSize) {\r\n  return {\r\n    [styles[size]]: true,\r\n  }\r\n}"],"names":["IMAGE_PROCESS","IMAGE_PROCESS_SMALL","IMAGE_PROCESS_LARGE","addImageProcess","url","options","width","height","indexOf","small","large","custom","exportStyleSizeClass","styles","size"],"mappings":";;AACO,IAAMA,aAAa,GAAG,mCAAtB;AACP,AAAO,IAAMC,mBAAmB,GAAG,mCAA5B;AACP,AAAO,IAAMC,mBAAmB,GAAG,mCAA5B;AAUP,AAAO,SAASC,eAAT,CAAyBC,GAAzB,EAA2G;MAArEC,OAAqE,uEAAnC;IAAEC,KAAK,EAAE,MAAT;IAAiBC,MAAM,EAAE;GAAU;;;MAE5GH,GAAG,IAAIA,GAAG,CAACI,OAAJ,CAAY,eAAZ,IAA+B,CAAC,CAA3C,EAA8C;WACrCJ,GAAP;;;MAEEC,OAAO,CAACI,KAAZ,EAAmB;WACVL,GAAG,GAAGH,mBAAb;;;MAEEI,OAAO,CAACK,KAAZ,EAAmB;WACVN,GAAG,GAAGF,mBAAb;;;MAEEG,OAAO,CAACM,MAAZ,EAAoB;qBACRP,GAAV,0DAA6DC,OAAO,CAACC,KAArE,gBAAgFD,OAAO,CAACE,MAAxF;;;SAEKH,GAAG,GAAGJ,aAAb;;AAGF,AASO,SAASY,oBAAT,CAA8BC,MAA9B,EAA2CC,IAA3C,EAA4D;6BAE9DD,MAAM,CAACC,IAAD,CADT,EACkB,IADlB;;;;;"}

+ 0
- 1
eslib/utils-f64eef69.js.map View File

@@ -1 +0,0 @@
1
-{"version":3,"file":"utils-f64eef69.js","sources":["../src/components/Payment/Utils/utils.ts"],"sourcesContent":["\r\nexport const IMAGE_PROCESS = '?x-oss-process=image/resize,h_350';\r\nexport const IMAGE_PROCESS_SMALL = '?x-oss-process=image/resize,h_100';\r\nexport const IMAGE_PROCESS_LARGE = '?x-oss-process=image/resize,h_500';\r\n\r\ntype AddImageProcessOptions = {\r\n  small?: boolean;\r\n  large?: boolean;\r\n  custom?: boolean;\r\n  width?: string;\r\n  height?: string;\r\n}\r\n\r\nexport function addImageProcess(url: string, options: AddImageProcessOptions = { width: '36px', height: '36px' }) {\r\n  // 防止重复添加导致的url不正确\r\n  if (url && url.indexOf('x-oss-process') > -1) {\r\n    return url;\r\n  }\r\n  if (options.small) {\r\n    return url + IMAGE_PROCESS_SMALL;\r\n  }\r\n  if (options.large) {\r\n    return url + IMAGE_PROCESS_LARGE;\r\n  }\r\n  if (options.custom) {\r\n    return `${url}?x-oss-process=image/resize,limit_0,m_fill,w_${options.width},h_${options.height}`;\r\n  }\r\n  return url + IMAGE_PROCESS;\r\n}\r\n\r\nexport function formatMoney(input: any, fuzz = 2) {\r\n  if (isNaN(+input)) {\r\n    return input;\r\n  }\r\n  return (+input).toFixed(fuzz);\r\n}\r\n\r\ntype classSize = 'small'|'normal'|'large';\r\n\r\nexport function exportStyleSizeClass(styles: any, size: classSize) {\r\n  return {\r\n    [styles[size]]: true,\r\n  }\r\n}"],"names":["IMAGE_PROCESS","IMAGE_PROCESS_SMALL","IMAGE_PROCESS_LARGE","addImageProcess","url","options","width","height","indexOf","small","large","custom","exportStyleSizeClass","styles","size"],"mappings":";;AACO,IAAMA,aAAa,GAAG,mCAAtB;AACP,AAAO,IAAMC,mBAAmB,GAAG,mCAA5B;AACP,AAAO,IAAMC,mBAAmB,GAAG,mCAA5B;AAUP,AAAO,SAASC,eAAT,CAAyBC,GAAzB,EAA2G;MAArEC,OAAqE,uEAAnC;IAAEC,KAAK,EAAE,MAAT;IAAiBC,MAAM,EAAE;GAAU;;;MAE5GH,GAAG,IAAIA,GAAG,CAACI,OAAJ,CAAY,eAAZ,IAA+B,CAAC,CAA3C,EAA8C;WACrCJ,GAAP;;;MAEEC,OAAO,CAACI,KAAZ,EAAmB;WACVL,GAAG,GAAGH,mBAAb;;;MAEEI,OAAO,CAACK,KAAZ,EAAmB;WACVN,GAAG,GAAGF,mBAAb;;;MAEEG,OAAO,CAACM,MAAZ,EAAoB;qBACRP,GAAV,0DAA6DC,OAAO,CAACC,KAArE,gBAAgFD,OAAO,CAACE,MAAxF;;;SAEKH,GAAG,GAAGJ,aAAb;;AAGF,AASO,SAASY,oBAAT,CAA8BC,MAA9B,EAA2CC,IAA3C,EAA4D;6BAE9DD,MAAM,CAACC,IAAD,CADT,EACkB,IADlB;;;;;"}

+ 293
- 0
lib/AllocWantedModal/index.js View File

@@ -0,0 +1,293 @@
1
+'use strict';
2
+
3
+Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
+
7
+var _rollupPluginBabelHelpers = require('../_rollupPluginBabelHelpers-3469b70d.js');
8
+var React = require('react');
9
+var React__default = _interopDefault(React);
10
+var styleInject_es = require('../style-inject.es-dcee06b6.js');
11
+var reactDom = require('react-dom');
12
+var reactDom__default = _interopDefault(reactDom);
13
+var Modal$1 = require('../Modal-1001074b.js');
14
+var antd = require('antd');
15
+
16
+var Modal =
17
+/*#__PURE__*/
18
+function (_React$PureComponent) {
19
+  _rollupPluginBabelHelpers._inherits(Modal, _React$PureComponent);
20
+
21
+  function Modal() {
22
+    _rollupPluginBabelHelpers._classCallCheck(this, Modal);
23
+
24
+    return _rollupPluginBabelHelpers._possibleConstructorReturn(this, _rollupPluginBabelHelpers._getPrototypeOf(Modal).apply(this, arguments));
25
+  }
26
+
27
+  _rollupPluginBabelHelpers._createClass(Modal, [{
28
+    key: "render",
29
+    value: function render() {
30
+      if (!Modal$1.isBrowser()) return null; // 服务端无需渲染下列代码,渲染也会出错
31
+
32
+      var DEFAULT_CONTAINER = document.getElementById('container');
33
+      var _this$props = this.props,
34
+          children = _this$props.children,
35
+          visible = _this$props.visible,
36
+          onCancel = _this$props.onCancel,
37
+          _this$props$container = _this$props.container,
38
+          container = _this$props$container === void 0 ? DEFAULT_CONTAINER : _this$props$container;
39
+      var finalMountContainer = document.body;
40
+
41
+      if (!container) {
42
+        if (!DEFAULT_CONTAINER) {
43
+          if (!Modal.hasShowWarning) {
44
+            Modal.hasShowWarning = true;
45
+          }
46
+
47
+          finalMountContainer = document.body;
48
+        } else {
49
+          if (!Modal.hasShowWarning) {
50
+            Modal.hasShowWarning = true;
51
+          }
52
+
53
+          finalMountContainer = DEFAULT_CONTAINER;
54
+        }
55
+      }
56
+
57
+      return visible && reactDom.createPortal(React__default.createElement("div", {
58
+        className: Modal$1.styles.wrapper
59
+      }, React__default.createElement("div", {
60
+        className: Modal$1.styles.overlay,
61
+        onClick: onCancel
62
+      }), React__default.createElement("div", {
63
+        className: Modal$1.styles.container
64
+      }, children)), finalMountContainer);
65
+    }
66
+  }]);
67
+
68
+  return Modal;
69
+}(React__default.PureComponent);
70
+
71
+_rollupPluginBabelHelpers._defineProperty(Modal, "hasShowWarning", false);
72
+
73
+const img = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAACMUlEQVQ4T52Uz4tSURTHPxP9oCkKy0UuIqvZSAsrHHgLEaFSDCJoU0GpQaBgqOCmP6AWKrR5kIELNzZZUUQLlReFFowOboQK2oyLkgExsxqJoprixlx5yXs1dXbvnO/93HPPO+dM8WfbCuwANgNfgA/A0OzIlElgH3AIsBrEl4EXwEvguz4+CdsIHAV2/yVjEX4PVFez/SXXwzYAJ4GdawBJyWfggQTqYSKj/f8AklKR4V1gRcJ2rWY1Zvl8PqumaW8n4YFAwFqpVCb988BzCTsCzMiDDodjut1uX11YWGh4PJ470p/L5ZRIJHI+kUhcU1V1UXfRR+CWhF0ARPHHpqrqbCwWC7darXm32z2Xz+fdoVDobL1ef+z1eu8ZlOO2gIkeChrVKpPJHEylUhd7vd5rm822V9O0it/vf2hS16qAbQfOmBW+3W6HnU6nMhgMlux2+5XRaLRion0iYJuAsJGgWq2e8Pv9x5vN5lOXy6V0Op1XiqLkh8PhNwN9WdbsHLBFL6jVaqc8Hs+xYrE4FwwGnyWTyZl0On2p2+0uKopyo9/vf9XpfwA3JcwNHND/zUajcblUKpWj0WhT+qPRqD2bzUbi8fj1QqHwRgfrA/clbBtwGlgnBRaLZb3Rc0z8j4COfgJmgcP/MQEiw/LkbAqwGCmxMdZq7wDRKmI9/Tbo8ltk6NQ/2YTcAWrA+EeY7TPRewK4B5jWwcRB8Syxy5YmLzGD6XViQuSm/QSINjC0n/ltqZBTCKFgAAAAAElFTkSuQmCC';
74
+
75
+var css = ".AllocWantedModal_wantedModalContent__3tJgp {\n  background-color: white;\n  width: 360px;\n  height: 314px;\n  padding: 22px 28px;\n  border-radius: 7px;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_title__31N0x {\n  font-size: 18px;\n  font-weight: 400;\n  text-align: center;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_wantedValueText__39a-6 {\n  color: #565656;\n  margin-top: 48px;\n  font-size: 14px;\n  line-height: 20px;\n  text-align: center;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_wantedInputNumber__2qs1k {\n  margin: 11px auto;\n  text-align: center;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_wantedInputNumber__2qs1k .ant-input {\n  color: #FB4B56;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_wantedValueTipBottom__2JmOx {\n  margin: 0 auto;\n  font-size: 12px;\n  text-align: center;\n  width: 208px;\n  color: #9B9B9B;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_buttonRow__RkN1C {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  margin-top: 23px;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_buttonRow__RkN1C .AllocWantedModal_confirmButton__1oARY {\n  color: white;\n  background-color: #71C135;\n  width: 170px;\n  height: 36px;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_buttonRow__RkN1C .AllocWantedModal_confirmButton__1oARY:hover,\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_buttonRow__RkN1C .AllocWantedModal_confirmButton__1oARY:focus {\n  outline: none;\n  border-color: #8cd158;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_buttonRow__RkN1C .AllocWantedModal_tipsButton__QUN7t {\n  margin-left: 22px;\n  width: 20px;\n}\n.AllocWantedModal_wantedModalContent__3tJgp .AllocWantedModal_buttonRow__RkN1C .AllocWantedModal_tipsButton__QUN7t .schedule {\n  font-size: 18px;\n  cursor: pointer;\n}\n.AllocWantedModal_closeButton__1Os0F {\n  position: absolute;\n  right: 10px;\n  top: 10px;\n  display: block;\n  width: 20px;\n  height: 20px;\n  border-radius: 50%;\n  cursor: pointer;\n}\n.AllocWantedModal_closeButton__1Os0F img {\n  width: 100%;\n  height: 100%;\n}\n.AllocWantedModal_tipsView__3AZ9T h6 {\n  margin: 0;\n  font-size: 12px;\n  line-height: 22px;\n  color: #3D3D3D;\n}\n.AllocWantedModal_tipsView__3AZ9T div {\n  font-size: 12px;\n}\n.AllocWantedModal_outRangeTextTip__3LKBb .ant-tooltip-inner {\n  color: red;\n}\n";
76
+var styles = {"wantedModalContent":"AllocWantedModal_wantedModalContent__3tJgp","title":"AllocWantedModal_title__31N0x","wantedValueText":"AllocWantedModal_wantedValueText__39a-6","wantedInputNumber":"AllocWantedModal_wantedInputNumber__2qs1k","wantedValueTipBottom":"AllocWantedModal_wantedValueTipBottom__2JmOx","buttonRow":"AllocWantedModal_buttonRow__RkN1C","confirmButton":"AllocWantedModal_confirmButton__1oARY","tipsButton":"AllocWantedModal_tipsButton__QUN7t","closeButton":"AllocWantedModal_closeButton__1Os0F","tipsView":"AllocWantedModal_tipsView__3AZ9T","outRangeTextTip":"AllocWantedModal_outRangeTextTip__3LKBb"};
77
+styleInject_es.styleInject(css);
78
+
79
+var AllocWantedModal =
80
+/*#__PURE__*/
81
+function (_React$Component) {
82
+  _rollupPluginBabelHelpers._inherits(AllocWantedModal, _React$Component);
83
+
84
+  function AllocWantedModal(props) {
85
+    var _this;
86
+
87
+    _rollupPluginBabelHelpers._classCallCheck(this, AllocWantedModal);
88
+
89
+    _this = _rollupPluginBabelHelpers._possibleConstructorReturn(this, _rollupPluginBabelHelpers._getPrototypeOf(AllocWantedModal).call(this, props));
90
+
91
+    _rollupPluginBabelHelpers._defineProperty(_rollupPluginBabelHelpers._assertThisInitialized(_this), "ModalInputRef", void 0);
92
+
93
+    _rollupPluginBabelHelpers._defineProperty(_rollupPluginBabelHelpers._assertThisInitialized(_this), "ModalContentRef", void 0);
94
+
95
+    _rollupPluginBabelHelpers._defineProperty(_rollupPluginBabelHelpers._assertThisInitialized(_this), "handleSendValueChange", function (v) {
96
+      if (_this.state.outRangeTip) {
97
+        _this.setState({
98
+          outRangeTip: !_this.checkSendValue()
99
+        });
100
+      }
101
+
102
+      _this.setState({
103
+        sendValue: v
104
+      });
105
+    });
106
+
107
+    _rollupPluginBabelHelpers._defineProperty(_rollupPluginBabelHelpers._assertThisInitialized(_this), "checkSendValue", function () {
108
+      var sendValueRange = _this.props.sendValueRange;
109
+      var sendValue = _this.state.sendValue;
110
+      var min = 0;
111
+      var max = Number(_this.props.allocValue);
112
+
113
+      if (sendValueRange) {
114
+        min = Number(sendValueRange[0]);
115
+        max = Number(sendValueRange[1]);
116
+      }
117
+
118
+      if (sendValue > max) {
119
+        _this.setState({
120
+          // sendValue: max,
121
+          outRangeTip: true
122
+        });
123
+
124
+        return false;
125
+      } else if (sendValue < min) {
126
+        _this.setState({
127
+          // sendValue: max,
128
+          outRangeTip: true
129
+        });
130
+
131
+        return false;
132
+      }
133
+
134
+      return true;
135
+    });
136
+
137
+    _rollupPluginBabelHelpers._defineProperty(_rollupPluginBabelHelpers._assertThisInitialized(_this), "handleCloseAction", function () {
138
+      _this.setState({
139
+        visible: false,
140
+        sendValue: 0,
141
+        outRangeTip: false
142
+      }, function () {
143
+        _this.props.handleVisibleChange(false);
144
+      });
145
+    });
146
+
147
+    _rollupPluginBabelHelpers._defineProperty(_rollupPluginBabelHelpers._assertThisInitialized(_this), "handleShowAction", function () {
148
+      _this.setState({
149
+        visible: true
150
+      }, function () {
151
+        _this.props.handleVisibleChange(true);
152
+      });
153
+    });
154
+
155
+    _rollupPluginBabelHelpers._defineProperty(_rollupPluginBabelHelpers._assertThisInitialized(_this), "handleConfirm", function () {
156
+      var sendGiftData = _this.props.sendGiftData;
157
+
158
+      var checkResult = _this.checkSendValue();
159
+
160
+      if (!checkResult) {
161
+        // 未通过验证
162
+        return null;
163
+      } // 进行分配请求
164
+
165
+
166
+      Promise.resolve(_this.props.sendRequest({
167
+        business_type: 14,
168
+        // 表示悬赏答案
169
+        ref_id: sendGiftData.answerId.toString(),
170
+        // 对应回答的id
171
+        origin_id: sendGiftData.questionId,
172
+        // 对应问题的id
173
+        to_user: sendGiftData.toUserId,
174
+        // 悬赏给谁
175
+        goods_id: 2,
176
+        // 礼物id 帮币的话为2
177
+        num: Number(_this.state.sendValue) // 礼物数量
178
+
179
+      })).then(function (res) {
180
+        console.log("res: ", res);
181
+
182
+        if (res) {
183
+          _this.handleCloseAction();
184
+        } else {
185
+          _this.handleCloseAction();
186
+        }
187
+      });
188
+    });
189
+
190
+    _rollupPluginBabelHelpers._defineProperty(_rollupPluginBabelHelpers._assertThisInitialized(_this), "renderCloseButton", function () {
191
+      return React__default.createElement("div", {
192
+        role: "button",
193
+        tabIndex: -1,
194
+        className: styles.closeButton,
195
+        onClick: function onClick() {
196
+          _this.handleCloseAction();
197
+        }
198
+      }, React__default.createElement("img", {
199
+        src: img,
200
+        alt: "close button for send wanted"
201
+      })); // return null;
202
+    });
203
+
204
+    _rollupPluginBabelHelpers._defineProperty(_rollupPluginBabelHelpers._assertThisInitialized(_this), "renderModalContent", function () {
205
+      return React__default.createElement("div", {
206
+        className: styles.wantedModalContent,
207
+        ref: _this.ModalContentRef
208
+      }, _this.renderCloseButton(), React__default.createElement("h4", {
209
+        className: styles.title
210
+      }, "\u5206\u914D\u60AC\u8D4F\u5956\u91D1"), React__default.createElement("div", {
211
+        className: styles.wantedValueText
212
+      }, "\u5269\u4F59\u53EF\u5206\u914D ".concat(_this.props.allocValue, "\u5143")), React__default.createElement(antd.Tooltip, {
213
+        visible: _this.state.outRangeTip,
214
+        title: "\u8D85\u8FC7\u8303\u56F4\u503C",
215
+        placement: "bottom",
216
+        overlayClassName: styles.outRangeTextTip,
217
+        getTooltipContainer: function getTooltipContainer() {
218
+          return _this.ModalContentRef && _this.ModalContentRef.current;
219
+        }
220
+      }, React__default.createElement(antd.Input, {
221
+        ref: _this.ModalInputRef,
222
+        className: styles.wantedInputNumber,
223
+        suffix: "\u5143",
224
+        value: _this.state.sendValue,
225
+        onChange: function onChange(e) {
226
+          return _this.handleSendValueChange(e.target.value);
227
+        },
228
+        onFocus: function onFocus(e) {
229
+          return e.target.setSelectionRange(0, String(_this.state.sendValue).length);
230
+        }
231
+      })), React__default.createElement("div", {
232
+        className: styles.wantedValueTipBottom
233
+      }, "\u9700\u8981\u5728\u60AC\u8D4F\u65F6\u95F4\u7ED3\u675F\u524D\u5C06\u5956\u91D1\u5206\u914D\u5B8C\u6210, \u5426\u5219\u5C06\u6309\u7167\u89C4\u5219\u81EA\u52A8\u5206\u914D"), React__default.createElement("div", {
234
+        className: styles.buttonRow
235
+      }, React__default.createElement("div", {
236
+        className: styles.tipsButton
237
+      }), React__default.createElement(antd.Button, {
238
+        className: styles.confirmButton,
239
+        onClick: _this.handleConfirm
240
+      }, "\u786E\u8BA4"), React__default.createElement("div", {
241
+        className: styles.tipsButton
242
+      }, React__default.createElement(antd.Popover, {
243
+        placement: "bottom",
244
+        trigger: "click",
245
+        getPopupContainer: function getPopupContainer() {
246
+          return _this.ModalContentRef && _this.ModalContentRef.current;
247
+        },
248
+        overlayStyle: {
249
+          width: "320px"
250
+        },
251
+        content: React__default.createElement("div", {
252
+          className: styles.tipsView
253
+        }, React__default.createElement("h6", null, "1\u3001\u5982\u4F55\u53C2\u4E0E\u60AC\u8D4F\uFF1F"), React__default.createElement("div", null, "\u60AC\u8D4F\u95EE\u9898\u7686\u6709\u6709\u6548\u671F\uFF0C\u9ED8\u8BA4\u4E3A120\u5C0F\u65F6\uFF085\u5929\uFF09\uFF0C\u5728\u6709\u6548\u671F\u5185\u56DE\u590D\u7684\u7B54\u6848\uFF0C\u624D\u6709\u8D44\u683C\u88AB\u9009\u4E3A\u6700\u4F73\u7B54\u6848\uFF0C\u4EE5\u53CA\u5206\u5F97\u8D4F\u91D1\u3002"), React__default.createElement("h6", null, "2\u3001\u8D4F\u91D1\u5982\u4F55\u5206\uFF1F"), React__default.createElement("div", null, "\u60AC\u8D4F\u65F6\u95F4\u7ED3\u675F\u524D\uFF0C\u63D0\u95EE\u8005\u53EF\u968F\u65F6\u9009\u51FA\u6700\u4F18\u7B54\u6848\uFF0C\u5E76\u5BF9\u8D4F\u91D1\u8FDB\u884C\u5206\u914D\uFF0C\u76F4\u81F3\u8D4F\u91D1\u88AB\u5206\u5B8C\u6216\u65F6\u95F4\u5230\u671F\u4E3A\u6B62\u3002\u82E5\u60AC\u8D4F\u65F6\u95F4\u5230\u671F\uFF0C\u60AC\u8D4F\u8005\u4ECD\u672A\u5206\u914D\u8D4F\u91D1\uFF0C\u4E14\u56DE\u7B54\u6570\u5927\u4E8E\u7B49\u4E8E2\uFF0C\u7CFB\u7EDF\u5219\u9ED8\u8BA4\u5C06\u8D4F\u91D1\u5E73\u5206\u7ED9\u70B9\u8D5E\u6570\u524D3\u540D\u7684\u56DE\u7B54\u3002"), React__default.createElement("h6", null, "3\u3001\u8D4F\u91D1\u80FD\u9000\u6B3E\u5417\uFF1F"), React__default.createElement("div", null, "\u8D4F\u91D1\u53EA\u4F1A\u5728\u4EE5\u4E0B2\u79CD\u60C5\u51B5\u8FDB\u884C\u9000\u6B3E\uFF1A\u4E00\u3001\u60AC\u8D4F\u65F6\u95F4\u5230\u671F\uFF0C\u56DE\u7B54\u6570\u5C0F\u4E8E2\uFF0C\u8D4F\u91D1\u5C06\u81EA\u52A8\u9000\u8FD8\u81F3\u63D0\u95EE\u8005\u7684\u94B1\u5305\uFF1B\u4E8C\u3001\u60AC\u8D4F\u65F6\u95F4\u5230\u671F\uFF0C\u60AC\u8D4F\u8005\u672A\u5206\u914D\u5B8C\u8D4F\u91D1\uFF0C\u7CFB\u7EDF\u81EA\u52A8\u5C06\u5269\u4F59\u7684\u8D4F\u91D1\u9000\u8FD8\u81F3\u63D0\u95EE\u8005\u7684\u94B1\u5305\u3002"))
254
+      }, React__default.createElement("i", {
255
+        className: "schedule schedule-icon_rewardtips"
256
+      })))));
257
+    });
258
+
259
+    _this.state = {
260
+      visible: false,
261
+      sendValue: 0,
262
+      outRangeTip: false
263
+    };
264
+    _this.ModalContentRef = React__default.createRef();
265
+    _this.ModalInputRef = React__default.createRef();
266
+    return _this;
267
+  }
268
+
269
+  _rollupPluginBabelHelpers._createClass(AllocWantedModal, [{
270
+    key: "render",
271
+    value: function render() {
272
+      var _this2 = this;
273
+
274
+      var children = this.props.children;
275
+      return React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
276
+        className: styles.wrapper,
277
+        onClick: function onClick() {
278
+          return _this2.handleShowAction();
279
+        }
280
+      }, children), React__default.createElement(Modal, {
281
+        visible: this.state.visible,
282
+        onCancel: function onCancel() {
283
+          return _this2.handleCloseAction();
284
+        }
285
+      }, this.renderModalContent()));
286
+    }
287
+  }]);
288
+
289
+  return AllocWantedModal;
290
+}(React__default.Component);
291
+
292
+exports.default = AllocWantedModal;
293
+//# sourceMappingURL=index.js.map

+ 1
- 0
lib/AllocWantedModal/index.js.map
File diff suppressed because it is too large
View File


+ 5
- 4
lib/BraftEditor/index.js View File

@@ -4,13 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
4 4
 
5 5
 function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6 6
 
7
-var _commonjsHelpers = require('../_commonjsHelpers-4ed3570f.js');
7
+var _rollupPluginBabelHelpers = require('../_rollupPluginBabelHelpers-3469b70d.js');
8 8
 var React = require('react');
9 9
 var React__default = _interopDefault(React);
10
+var _commonjsHelpers = require('../_commonjsHelpers-72d386ba.js');
10 11
 var styleInject_es = require('../style-inject.es-dcee06b6.js');
11
-var Draft = require('../Draft-7ee7c163.js');
12
-var _reactDom_commonjsExternal = require('../_react-dom_commonjs-external-55867475.js');
13 12
 require('react-dom');
13
+var Draft = require('../Draft-a5afe13a.js');
14
+var _reactDom_commonjsExternal = require('../_react-dom_commonjs-external-55867475.js');
14 15
 var server = _interopDefault(require('react-dom/server'));
15 16
 
16 17
 var immutable = _commonjsHelpers.createCommonjsModule(function (module, exports) {
@@ -29011,7 +29012,7 @@ var BarftEditorPage = function BarftEditorPage(_ref) {
29011 29012
   var controls = ["bold", "italic", "underline", "separator", "link", "emoji", "separator", "media"];
29012 29013
 
29013 29014
   var _useState = React.useState(BraftEditor.createEditorState(value || "<p>Hello <b>World!</b></p>")),
29014
-      _useState2 = _commonjsHelpers._slicedToArray(_useState, 2),
29015
+      _useState2 = _rollupPluginBabelHelpers._slicedToArray(_useState, 2),
29015 29016
       editorState = _useState2[0],
29016 29017
       setEditorState = _useState2[1];
29017 29018
 

+ 1
- 1
lib/BraftEditor/index.js.map
File diff suppressed because it is too large
View File


+ 8
- 3
lib/Common/index.js View File

@@ -2,13 +2,18 @@
2 2
 
3 3
 Object.defineProperty(exports, '__esModule', { value: true });
4 4
 
5
-require('../_commonjsHelpers-4ed3570f.js');
5
+require('../_rollupPluginBabelHelpers-3469b70d.js');
6 6
 require('react');
7
-require('../index-c2424ad4.js');
7
+require('../_commonjsHelpers-72d386ba.js');
8
+require('../index-44e17595.js');
8 9
 require('../style-inject.es-dcee06b6.js');
9
-var test = require('../test-029f205d.js');
10
+var test = require('../test-71997d3e.js');
11
+require('react-dom');
12
+require('../Modal-1001074b.js');
13
+var Modal$1$1 = require('../Modal/index.js');
10 14
 
11 15
 
12 16
 
13 17
 exports.Test = test.Test;
18
+exports.Modal = Modal$1$1.default;
14 19
 //# sourceMappingURL=index.js.map

+ 1
- 1
lib/Common/index.js.map View File

@@ -1 +1 @@
1
-{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
1
+{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}

+ 10
- 9
lib/ConsumeListView/index.js View File

@@ -4,12 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
4 4
 
5 5
 function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6 6
 
7
-var _commonjsHelpers = require('../_commonjsHelpers-4ed3570f.js');
7
+var _rollupPluginBabelHelpers = require('../_rollupPluginBabelHelpers-3469b70d.js');
8 8
 var React = require('react');
9 9
 var React__default = _interopDefault(React);
10
-var index = require('../index-c2424ad4.js');
10
+require('../_commonjsHelpers-72d386ba.js');
11
+var index = require('../index-44e17595.js');
11 12
 var styleInject_es = require('../style-inject.es-dcee06b6.js');
12
-var utils = require('../utils-4bc17ae2.js');
13
+var utils = require('../utils-9c8fdacf.js');
13 14
 
14 15
 const img = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAABvklEQVQ4T62UTygEcRTHv29MIsqfk6OL5CYH5aKd9WfjwqxEnBzExYWTCEWJJGove5H8OTA1uwdCrOWAi83ZwUXJiSj5u+Z5s0msmd2SX81h+r33ee/7fW+G8E+H/srhqEcFCjphve1RzcaVK4j3mmoB5YxqQzdOxTji1wE2QZglb2jAEcT7/g4wr0rQugS1OYJ26nOg5nYDr4ZrR7yrl0FBAKBlqjEX3eRLwSXAmidvOJbSI47oF9LVKaCOkNc4/w7kSPOoFBqDwjpp4XA60LUkF8nzbsuERQt4ejtGdsYwiAYTYIV6STOD6UB3EpqXJC0u7zKxz0Mk3Zrj7lOLerJg5T9K+2lWhALiYx8xS9NbDZnUuPXy0wN/hYw3lnbPiNfE7HaSfTAloRqKWkya8WAnMrdmIBqfBqM/BehJAo+gKHMibdMGzUhqKUiZAHGVXJYLwPdpshPnRDRM4fl5+7uKL/0c1WXdOSie5Dh3wZcyoR7SQttO9z+M5MOWEsStFQmsTAoOwVK7qM64d5P6ayKJj9EqHBa5Q4kx2/ujqR1Exnsq493HH2muFN98oNtJ0g7s3Ul5/vwbSab+G+gDqFybE11pYkYAAAAASUVORK5CYII=';
15 16
 
@@ -22,15 +23,15 @@ var DEFAULT_AVATAR = '//links-comment.oss-cn-beijing.aliyuncs.com/comment/201808
22 23
 var ConsumeListView =
23 24
 /*#__PURE__*/
24 25
 function (_Component) {
25
-  _commonjsHelpers._inherits(ConsumeListView, _Component);
26
+  _rollupPluginBabelHelpers._inherits(ConsumeListView, _Component);
26 27
 
27 28
   function ConsumeListView() {
28
-    _commonjsHelpers._classCallCheck(this, ConsumeListView);
29
+    _rollupPluginBabelHelpers._classCallCheck(this, ConsumeListView);
29 30
 
30
-    return _commonjsHelpers._possibleConstructorReturn(this, _commonjsHelpers._getPrototypeOf(ConsumeListView).apply(this, arguments));
31
+    return _rollupPluginBabelHelpers._possibleConstructorReturn(this, _rollupPluginBabelHelpers._getPrototypeOf(ConsumeListView).apply(this, arguments));
31 32
   }
32 33
 
33
-  _commonjsHelpers._createClass(ConsumeListView, [{
34
+  _rollupPluginBabelHelpers._createClass(ConsumeListView, [{
34 35
     key: "renderConsumeItem",
35 36
     value: function renderConsumeItem() {
36 37
       var _this$props = this.props,
@@ -111,7 +112,7 @@ function (_Component) {
111 112
         onClick: function onClick() {
112 113
           return onToggleChange();
113 114
         },
114
-        className: index.classnames(styles.toggle, _commonjsHelpers._defineProperty({}, styles.expand, isToggle)),
115
+        className: index.classnames(styles.toggle, _rollupPluginBabelHelpers._defineProperty({}, styles.expand, isToggle)),
115 116
         style: {
116 117
           width: "".concat(avatarSize, "px"),
117 118
           height: "".concat(avatarSize, "px"),
@@ -142,7 +143,7 @@ function (_Component) {
142 143
   return ConsumeListView;
143 144
 }(React.Component);
144 145
 
145
-_commonjsHelpers._defineProperty(ConsumeListView, "defaultProps", {
146
+_rollupPluginBabelHelpers._defineProperty(ConsumeListView, "defaultProps", {
146 147
   isToggle: false,
147 148
   onToggleChange: function onToggleChange() {},
148 149
   onConsumeItemClick: function onConsumeItemClick() {},

+ 1
- 1
lib/ConsumeListView/index.js.map
File diff suppressed because it is too large
View File


lib/Draft-7ee7c163.js → lib/Draft-a5afe13a.js View File

@@ -1,9 +1,9 @@
1 1
 'use strict';
2 2
 
3
-var _commonjsHelpers = require('./_commonjsHelpers-4ed3570f.js');
4 3
 require('react');
5
-var _reactDom_commonjsExternal = require('./_react-dom_commonjs-external-55867475.js');
4
+var _commonjsHelpers = require('./_commonjsHelpers-72d386ba.js');
6 5
 require('react-dom');
6
+var _reactDom_commonjsExternal = require('./_react-dom_commonjs-external-55867475.js');
7 7
 
8 8
 /*
9 9
 object-assign
@@ -17694,4 +17694,4 @@ exports.Draft_15 = Draft_15;
17694 17694
 exports.Draft_20 = Draft_20;
17695 17695
 exports.Draft_3 = Draft_3;
17696 17696
 exports.Draft_4 = Draft_4;
17697
-//# sourceMappingURL=Draft-7ee7c163.js.map
17697
+//# sourceMappingURL=Draft-a5afe13a.js.map

lib/Draft-a5afe13a.js.map
File diff suppressed because it is too large
View File


+ 4
- 3
lib/Editor/index.js View File

@@ -2,12 +2,13 @@
2 2
 
3 3
 Object.defineProperty(exports, '__esModule', { value: true });
4 4
 
5
-require('../_commonjsHelpers-4ed3570f.js');
5
+require('../_rollupPluginBabelHelpers-3469b70d.js');
6 6
 require('react');
7
+require('../_commonjsHelpers-72d386ba.js');
7 8
 require('../style-inject.es-dcee06b6.js');
8
-require('../Draft-7ee7c163.js');
9
-require('../_react-dom_commonjs-external-55867475.js');
10 9
 require('react-dom');
10
+require('../Draft-a5afe13a.js');
11
+require('../_react-dom_commonjs-external-55867475.js');
11 12
 var BraftEditor = require('../BraftEditor/index.js');
12 13
 require('react-dom/server');
13 14
 var RichTextEditor = require('../RichTextEditor/index.js');

+ 1
- 1
lib/Editor/index.js.map View File

@@ -1 +1 @@
1
-{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
1
+{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}

+ 16
- 0
lib/Modal-1001074b.js View File

@@ -0,0 +1,16 @@
1
+'use strict';
2
+
3
+var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-3469b70d.js');
4
+var styleInject_es = require('./style-inject.es-dcee06b6.js');
5
+
6
+function isBrowser() {
7
+  return !((typeof window === "undefined" ? "undefined" : _rollupPluginBabelHelpers._typeof(window)) === undefined);
8
+}
9
+
10
+var css = ".Modal_wrapper__3fGor {\n  position: fixed;\n  width: 100vw;\n  height: 100vh;\n  top: 0;\n  left: 0;\n  z-index: 1000;\n}\n.Modal_overlay__iXPZ2 {\n  width: 100vw;\n  height: 100vh;\n  background: #000;\n  animation: Modal_overlayer__3enBo 0.3s forwards;\n}\n.Modal_container__3PbHe {\n  position: absolute;\n  top: 20%;\n  left: 50%;\n  animation: Modal_container__3PbHe 0.3s forwards;\n}\n@keyframes Modal_overlayer__3enBo {\n  from {\n    opacity: 0;\n  }\n  to {\n    opacity: 0.3;\n  }\n}\n@keyframes Modal_container__3PbHe {\n  from {\n    transform: translateX(-50%) scale(0, 0);\n  }\n  to {\n    transform: translateX(-50%) scale(1, 1);\n  }\n}\n";
11
+var styles = {"wrapper":"Modal_wrapper__3fGor","overlay":"Modal_overlay__iXPZ2","overlayer":"Modal_overlayer__3enBo","container":"Modal_container__3PbHe"};
12
+styleInject_es.styleInject(css);
13
+
14
+exports.isBrowser = isBrowser;
15
+exports.styles = styles;
16
+//# sourceMappingURL=Modal-1001074b.js.map

+ 1
- 0
lib/Modal-1001074b.js.map View File

@@ -0,0 +1 @@
1
+{"version":3,"file":"Modal-67d33baf.js","sources":["../src/components/Common/Utils/utils.ts"],"sourcesContent":["export function isBrowser() {\r\n  return !(typeof window === undefined);\r\n}"],"names":["isBrowser","window","undefined"],"mappings":";;;;;AAAO,SAASA,SAAT,GAAqB;SACnB,EAAE,QAAOC,MAAP,mEAAOA,MAAP,OAAkBC,SAApB,CAAP;;;;;;;;;;"}

+ 74
- 0
lib/Modal/index.js View File

@@ -0,0 +1,74 @@
1
+'use strict';
2
+
3
+Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
+
7
+var _rollupPluginBabelHelpers = require('../_rollupPluginBabelHelpers-3469b70d.js');
8
+var React = require('react');
9
+var React__default = _interopDefault(React);
10
+require('../style-inject.es-dcee06b6.js');
11
+var reactDom = require('react-dom');
12
+var reactDom__default = _interopDefault(reactDom);
13
+var Modal$1 = require('../Modal-1001074b.js');
14
+
15
+var Modal =
16
+/*#__PURE__*/
17
+function (_React$PureComponent) {
18
+  _rollupPluginBabelHelpers._inherits(Modal, _React$PureComponent);
19
+
20
+  function Modal() {
21
+    _rollupPluginBabelHelpers._classCallCheck(this, Modal);
22
+
23
+    return _rollupPluginBabelHelpers._possibleConstructorReturn(this, _rollupPluginBabelHelpers._getPrototypeOf(Modal).apply(this, arguments));
24
+  }
25
+
26
+  _rollupPluginBabelHelpers._createClass(Modal, [{
27
+    key: "render",
28
+    value: function render() {
29
+      if (!Modal$1.isBrowser()) return null; // 服务端无需渲染下列代码,渲染也会出错
30
+
31
+      var DEFAULT_CONTAINER = document.getElementById('container');
32
+      var _this$props = this.props,
33
+          children = _this$props.children,
34
+          visible = _this$props.visible,
35
+          onCancel = _this$props.onCancel,
36
+          _this$props$container = _this$props.container,
37
+          container = _this$props$container === void 0 ? DEFAULT_CONTAINER : _this$props$container;
38
+      var finalMountContainer = document.body;
39
+
40
+      if (!container) {
41
+        if (!DEFAULT_CONTAINER) {
42
+          if (!Modal.hasShowWarning) {
43
+            Modal.hasShowWarning = true;
44
+          }
45
+
46
+          finalMountContainer = document.body;
47
+        } else {
48
+          if (!Modal.hasShowWarning) {
49
+            Modal.hasShowWarning = true;
50
+          }
51
+
52
+          finalMountContainer = DEFAULT_CONTAINER;
53
+        }
54
+      }
55
+
56
+      return visible && reactDom.createPortal(React__default.createElement("div", {
57
+        className: Modal$1.styles.wrapper
58
+      }, React__default.createElement("div", {
59
+        className: Modal$1.styles.overlay,
60
+        onClick: onCancel
61
+      }), React__default.createElement("div", {
62
+        className: Modal$1.styles.container
63
+      }, children)), finalMountContainer);
64
+    }
65
+  }]);
66
+
67
+  return Modal;
68
+}(React__default.PureComponent);
69
+
70
+_rollupPluginBabelHelpers._defineProperty(Modal, "hasShowWarning", false);
71
+
72
+exports.Modal = Modal;
73
+exports.default = Modal;
74
+//# sourceMappingURL=index.js.map

+ 1
- 0
lib/Modal/index.js.map View File

@@ -0,0 +1 @@
1
+{"version":3,"file":"index.js","sources":["../../src/components/Common/Modal/index.tsx"],"sourcesContent":["import React from 'react';\r\nimport { createPortal } from 'react-dom';\r\nimport { isBrowser } from '../Utils/utils';\r\n\r\nimport styles from './Modal.less';\r\n\r\nexport interface ModalProps {\r\n  visible: boolean\r\n  onCancel: (e: any) => void\r\n  container?: HTMLElement | null\r\n}\r\n\r\nexport class Modal extends React.PureComponent<ModalProps> {\r\n  static hasShowWarning = false;\r\n\r\n  render() {\r\n    if (!isBrowser()) return null; // 服务端无需渲染下列代码,渲染也会出错\r\n    const DEFAULT_CONTAINER: HTMLElement | null = document.getElementById('container');\r\n    const { children, visible, onCancel, container = DEFAULT_CONTAINER } = this.props\r\n    let finalMountContainer: HTMLElement = document.body;\r\n    if (!container) {\r\n      if (!DEFAULT_CONTAINER) {\r\n        if (!Modal.hasShowWarning) {\r\n          Modal.hasShowWarning = true;\r\n        }\r\n        finalMountContainer = document.body;\r\n      } else {\r\n        if (!Modal.hasShowWarning) {\r\n          Modal.hasShowWarning = true;\r\n        }\r\n        finalMountContainer = DEFAULT_CONTAINER;\r\n      }\r\n    }\r\n    return visible && createPortal(\r\n      <div className={ styles.wrapper }>\r\n        <div\r\n          className={ styles.overlay }\r\n          onClick={ onCancel }\r\n        />\r\n        <div\r\n          className={ styles.container }\r\n        >\r\n          { children }\r\n        </div>\r\n      </div>,\r\n      finalMountContainer,\r\n    )\r\n  }\r\n}\r\n\r\nexport default Modal;"],"names":["Modal","isBrowser","DEFAULT_CONTAINER","document","getElementById","props","children","visible","onCancel","container","finalMountContainer","body","hasShowWarning","createPortal","React","styles","wrapper","overlay","PureComponent"],"mappings":";;;;;;;;;;;;;;IAYaA,KAAb;;AAAA;;;;;;;;;;;6BAGW;UACH,CAACC,iBAAS,EAAd,EAAkB,OAAO,IAAP,CADX;;UAEDC,iBAAqC,GAAGC,QAAQ,CAACC,cAAT,CAAwB,WAAxB,CAA9C;wBACuE,KAAKC,KAHrE;UAGCC,QAHD,eAGCA,QAHD;UAGWC,OAHX,eAGWA,OAHX;UAGoBC,QAHpB,eAGoBA,QAHpB;8CAG8BC,SAH9B;UAG8BA,SAH9B,sCAG0CP,iBAH1C;UAIHQ,mBAAgC,GAAGP,QAAQ,CAACQ,IAAhD;;UACI,CAACF,SAAL,EAAgB;YACV,CAACP,iBAAL,EAAwB;cAClB,CAACF,KAAK,CAACY,cAAX,EAA2B;YACzBZ,KAAK,CAACY,cAAN,GAAuB,IAAvB;;;UAEFF,mBAAmB,GAAGP,QAAQ,CAACQ,IAA/B;SAJF,MAKO;cACD,CAACX,KAAK,CAACY,cAAX,EAA2B;YACzBZ,KAAK,CAACY,cAAN,GAAuB,IAAvB;;;UAEFF,mBAAmB,GAAGR,iBAAtB;;;;aAGGK,OAAO,IAAIM,qBAAY,CAC5BC;QAAK,SAAS,EAAGC,cAAM,CAACC;SACtBF;QACE,SAAS,EAAGC,cAAM,CAACE,OADrB;QAEE,OAAO,EAAGT;QAHd,EAKEM;QACE,SAAS,EAAGC,cAAM,CAACN;SAEjBH,QAHJ,CALF,CAD4B,EAY5BI,mBAZ4B,CAA9B;;;;;EArBuBI,cAAK,CAACI,aAAjC;;0CAAalB,yBACa;;;;;"}

+ 8
- 7
lib/PayPlatformOptions/index.js
File diff suppressed because it is too large
View File


+ 1
- 1
lib/PayPlatformOptions/index.js.map
File diff suppressed because it is too large
View File


+ 12
- 3
lib/Payment/index.js View File

@@ -2,16 +2,22 @@
2 2
 
3 3
 Object.defineProperty(exports, '__esModule', { value: true });
4 4
 
5
-require('../_commonjsHelpers-4ed3570f.js');
5
+require('../_rollupPluginBabelHelpers-3469b70d.js');
6 6
 require('react');
7
-require('../index-c2424ad4.js');
7
+require('../_commonjsHelpers-72d386ba.js');
8
+require('../index-44e17595.js');
8 9
 require('../style-inject.es-dcee06b6.js');
9
-require('../utils-4bc17ae2.js');
10
+require('react-dom');
11
+require('../Modal-1001074b.js');
12
+require('../utils-9c8fdacf.js');
10 13
 var ConsumeListView = require('../ConsumeListView/index.js');
11 14
 var PayPlatformOptions = require('../PayPlatformOptions/index.js');
12 15
 require('antd');
13 16
 var PriceOptions = require('../PriceOptions/index.js');
14 17
 var WaitPayInfoView = require('../WaitPayInfoView/index.js');
18
+var AllocWantedModal = require('../AllocWantedModal/index.js');
19
+var WantedPublishView = require('../WantedPublishView/index.js');
20
+var WantedPublishPopover = require('../WantedPublishPopover/index.js');
15 21
 
16 22
 
17 23
 
@@ -19,4 +25,7 @@ exports.ConsumeListView = ConsumeListView.default;
19 25
 exports.PayPlatformOptions = PayPlatformOptions.default;
20 26
 exports.PriceOptions = PriceOptions.default;
21 27
 exports.WaitPayInfoView = WaitPayInfoView.default;
28
+exports.AllocWantedModal = AllocWantedModal.default;
29
+exports.WantedPublishView = WantedPublishView.default;
30
+exports.WantedPublishPopover = WantedPublishPopover.default;
22 31
 //# sourceMappingURL=index.js.map

+ 1
- 1
lib/Payment/index.js.map View File

@@ -1 +1 @@
1
-{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
1
+{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}

+ 39
- 15
lib/PriceOptions/index.js View File

@@ -4,20 +4,23 @@ Object.defineProperty(exports, '__esModule', { value: true });
4 4
 
5 5
 function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6 6
 
7
-var _commonjsHelpers = require('../_commonjsHelpers-4ed3570f.js');
7
+var _rollupPluginBabelHelpers = require('../_rollupPluginBabelHelpers-3469b70d.js');
8 8
 var React = require('react');
9 9
 var React__default = _interopDefault(React);
10
-var index = require('../index-c2424ad4.js');
10
+require('../_commonjsHelpers-72d386ba.js');
11
+var index = require('../index-44e17595.js');
11 12
 var styleInject_es = require('../style-inject.es-dcee06b6.js');
12 13
 var antd = require('antd');
13 14
 
14
-var css = ".PriceOptions_options__J-ZSS {\n  padding: 20px 50px;\n  border-bottom: 1px dashed #00000017;\n}\n.PriceOptions_options__J-ZSS p {\n  font-size: 14px;\n  font-weight: 400;\n  color: #616a79;\n  margin-bottom: 20px;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a {\n  padding-right: 0;\n  margin-bottom: -12px;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2 {\n  background: rgba(243, 243, 243, 0.14);\n  border-radius: 4px;\n  border: 1px solid #cfcfcf;\n  font-size: 14px;\n  font-weight: 600;\n  color: #616a79;\n  display: inline-block;\n  text-align: center;\n  vertical-align: top;\n  height: 30px;\n  width: 70px;\n  line-height: 30px;\n  cursor: pointer;\n  margin: 6px;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2.PriceOptions_active__3WyAU {\n  background: rgba(255, 50, 102, 0.1);\n  border-radius: 4px;\n  border: 1px solid #ff3266;\n  color: #616a79;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_priceInput__1MrVy {\n  display: inline-block;\n  min-width: 70px;\n  width: auto;\n  margin: 6px;\n  text-align: center;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a button {\n  border-top-left-radius: 0;\n  border-bottom-left-radius: 0;\n  height: 30px;\n  width: 50px;\n  vertical-align: top;\n  padding: 0 5px;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_rate__QgHQ3 {\n  margin-left: 10px;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_rate__QgHQ3 i {\n  margin-right: 5px;\n  color: #1790FF;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl {\n  padding: 0 0 12px 0;\n  border-bottom: none;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl p {\n  margin-bottom: 8px;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl .PriceOptions_infoItem__3IL3a {\n  text-align: center;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2 {\n  border-radius: 6px;\n  height: 32px;\n  width: 72px;\n  margin: 0 0 12px 19px;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2:first-child {\n  margin: 0 0 12px 0px;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl .PriceOptions_infoItem__3IL3a .PriceOptions_priceInput__1MrVy {\n  display: block;\n  width: 254px;\n  border-radius: 6px;\n  height: 32px;\n}\n@media (max-width: 768px) {\n  .PriceOptions_options__J-ZSS {\n    padding: 20px 20px;\n  }\n  .PriceOptions_options__J-ZSS p {\n    font-size: 14px;\n    font-weight: 400;\n    color: #616a79;\n  }\n  .PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a {\n    padding-right: 0;\n    display: flex;\n    flex-direction: column;\n    justify-content: center;\n  }\n  .PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_priceBtn__Xz4m_ {\n    display: flex;\n    justify-content: space-between;\n  }\n  .PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2 {\n    display: inline-block;\n    background-color: #fff;\n    width: 74px;\n    height: 36px;\n    line-height: 36px;\n    border-radius: 6px;\n    border: 1px solid #cfcfcf;\n  }\n  .PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2.PriceOptions_active__3WyAU {\n    background-color: #fff;\n    color: #FF3266FF;\n    border-radius: 4px;\n    border: 1px solid #ff3266;\n  }\n  .PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_priceInput__1MrVy {\n    border-radius: 6px;\n    height: 36px;\n    width: auto;\n  }\n}\n";
15
-var styles = {"options":"PriceOptions_options__J-ZSS","infoItem":"PriceOptions_infoItem__3IL3a","priceItem":"PriceOptions_priceItem__rJ9o2","active":"PriceOptions_active__3WyAU","priceInput":"PriceOptions_priceInput__1MrVy","rate":"PriceOptions_rate__QgHQ3","small":"PriceOptions_small__2-wzl","priceBtn":"PriceOptions_priceBtn__Xz4m_"};
15
+var css = ".PriceOptions_options__J-ZSS {\n  border-bottom: 1px dashed #00000017;\n}\n.PriceOptions_options__J-ZSS p {\n  font-size: 14px;\n  font-weight: 400;\n  color: #616a79;\n  margin-bottom: 20px;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a {\n  padding-right: 0;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2 {\n  background: rgba(243, 243, 243, 0.14);\n  border-radius: 4px;\n  border: 1px solid #cfcfcf;\n  font-size: 14px;\n  font-weight: 600;\n  color: #616a79;\n  display: inline-block;\n  text-align: center;\n  vertical-align: top;\n  height: 30px;\n  width: 70px;\n  line-height: 30px;\n  cursor: pointer;\n  margin: 6px;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2.PriceOptions_active__3WyAU {\n  background: rgba(255, 50, 102, 0.1);\n  border-radius: 4px;\n  border: 1px solid #ff3266;\n  color: #616a79;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_priceInput__1MrVy {\n  display: inline-block;\n  min-width: 70px;\n  width: auto;\n  margin: 6px;\n  text-align: center;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a button {\n  border-top-left-radius: 0;\n  border-bottom-left-radius: 0;\n  height: 30px;\n  width: 50px;\n  vertical-align: top;\n  padding: 0 5px;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_rate__QgHQ3 {\n  margin-left: 10px;\n}\n.PriceOptions_options__J-ZSS .PriceOptions_infoItem__3IL3a .PriceOptions_rate__QgHQ3 i {\n  margin-right: 5px;\n  color: #1790FF;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl {\n  padding: 0 0 12px 0;\n  border-bottom: none;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl p {\n  margin-bottom: 8px;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl .PriceOptions_infoItem__3IL3a {\n  text-align: center;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2 {\n  border-radius: 6px;\n  height: 32px;\n  width: 72px;\n  margin: 0 0 12px 19px;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2:first-child {\n  margin: 0 0 12px 0px;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_small__2-wzl .PriceOptions_infoItem__3IL3a .PriceOptions_priceInput__1MrVy {\n  display: block;\n  width: 254px;\n  border-radius: 6px;\n  height: 32px;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_multi__N_Xc4 {\n  padding: 20px 20px;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_multi__N_Xc4 p {\n  font-size: 14px;\n  font-weight: 400;\n  color: #616a79;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_multi__N_Xc4 .PriceOptions_infoItem__3IL3a {\n  padding-right: 0;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_multi__N_Xc4 .PriceOptions_infoItem__3IL3a .PriceOptions_priceBtn__Xz4m_ {\n  display: flex;\n  justify-content: space-between;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_multi__N_Xc4 .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2 {\n  display: inline-block;\n  background-color: #fff;\n  width: 74px;\n  height: 36px;\n  line-height: 36px;\n  border-radius: 4px;\n  border: 1px solid #cfcfcf;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_multi__N_Xc4 .PriceOptions_infoItem__3IL3a .PriceOptions_priceItem__rJ9o2.PriceOptions_active__3WyAU {\n  background-color: #fff;\n  color: #FF3266FF;\n  border-radius: 4px;\n  border: 1px solid #ff3266;\n}\n.PriceOptions_options__J-ZSS.PriceOptions_multi__N_Xc4 .PriceOptions_infoItem__3IL3a .PriceOptions_priceInput__1MrVy {\n  border-radius: 6px;\n  height: 36px;\n  width: auto;\n}\n";
16
+var styles = {"options":"PriceOptions_options__J-ZSS","infoItem":"PriceOptions_infoItem__3IL3a","priceItem":"PriceOptions_priceItem__rJ9o2","active":"PriceOptions_active__3WyAU","priceInput":"PriceOptions_priceInput__1MrVy","rate":"PriceOptions_rate__QgHQ3","small":"PriceOptions_small__2-wzl","multi":"PriceOptions_multi__N_Xc4","priceBtn":"PriceOptions_priceBtn__Xz4m_"};
16 17
 styleInject_es.styleInject(css);
17 18
 
18 19
 var PriceOptions = function PriceOptions(_ref) {
19 20
   var price = _ref.price,
20 21
       onPriceChange = _ref.onPriceChange,
22
+      _ref$rowMode = _ref.rowMode,
23
+      rowMode = _ref$rowMode === void 0 ? "single" : _ref$rowMode,
21 24
       _ref$size = _ref.size,
22 25
       _ref$focusScroll = _ref.focusScroll,
23 26
       focusScroll = _ref$focusScroll === void 0 ? true : _ref$focusScroll,
@@ -37,25 +40,37 @@ var PriceOptions = function PriceOptions(_ref) {
37 40
       inputPriceRender = _ref$inputPriceRender === void 0 ? function (i) {
38 41
     return i ? i / 100 : "";
39 42
   } : _ref$inputPriceRender,
43
+      _ref$inputSuffix = _ref.inputSuffix,
44
+      inputSuffix = _ref$inputSuffix === void 0 ? "¥" : _ref$inputSuffix,
45
+      _ref$injectOptions = _ref.injectOptions,
46
+      injectOptions = _ref$injectOptions === void 0 ? {
47
+    priceBtnClass: {},
48
+    priceInputClass: {}
49
+  } : _ref$injectOptions,
40 50
       inputRef = _ref.inputRef;
41 51
   var defaultOptions = priceOptions; // 控制是否为其他金额输入情况
42 52
 
43 53
   var _useState = React.useState(false),
44
-      _useState2 = _commonjsHelpers._slicedToArray(_useState, 2),
54
+      _useState2 = _rollupPluginBabelHelpers._slicedToArray(_useState, 2),
45 55
       inputStatus = _useState2[0],
46 56
       setInputStatus = _useState2[1];
47 57
 
58
+  var _useState3 = React.useState(''),
59
+      _useState4 = _rollupPluginBabelHelpers._slicedToArray(_useState3, 2),
60
+      inputPrice = _useState4[0],
61
+      setInputPrice = _useState4[1];
62
+
48 63
   return React__default.createElement("div", {
49
-    className: index.classnames(styles.options)
64
+    className: index.classnames(styles.options, _rollupPluginBabelHelpers._defineProperty({}, styles.multi, rowMode === "multi"))
50 65
   }, withTitle ? titleText || null : null, React__default.createElement("div", {
51 66
     className: styles.infoItem
52 67
   }, React__default.createElement("span", {
53 68
     className: styles.priceBtn
54 69
   }, defaultOptions.map(function (item) {
55
-    var _classnames;
70
+    var _objectSpread2;
56 71
 
57 72
     return React__default.createElement("span", {
58
-      className: index.classnames((_classnames = {}, _commonjsHelpers._defineProperty(_classnames, styles.priceItem, true), _commonjsHelpers._defineProperty(_classnames, styles.active, price === item && !inputStatus), _classnames)),
73
+      className: index.classnames(_rollupPluginBabelHelpers._objectSpread2((_objectSpread2 = {}, _rollupPluginBabelHelpers._defineProperty(_objectSpread2, styles.priceItem, true), _rollupPluginBabelHelpers._defineProperty(_objectSpread2, styles.active, price === item && !inputStatus), _objectSpread2), injectOptions.priceBtnClass)),
59 74
       key: item,
60 75
       onClick: function onClick() {
61 76
         onPriceChange(item);
@@ -64,15 +79,15 @@ var PriceOptions = function PriceOptions(_ref) {
64 79
     }, priceRender(item));
65 80
   })), React__default.createElement(antd.Input, {
66 81
     ref: inputRef,
82
+    className: index.classnames(styles.priceInput, _rollupPluginBabelHelpers._objectSpread2({}, injectOptions.priceInputClass)),
67 83
     onMouseEnter: function onMouseEnter() {
68 84
       if (inputStatus && inputRef && inputRef.current) {
69 85
         inputRef.current.focus();
70 86
         inputRef.current.select();
71 87
       }
72 88
     },
73
-    suffix: "\xA5",
74
-    className: styles.priceInput,
75
-    value: inputStatus ? inputPriceRender(price) : "",
89
+    suffix: inputSuffix,
90
+    value: inputStatus ? inputPriceRender(inputPrice) : "",
76 91
     placeholder: inputPlaceholderText,
77 92
     onChange: function onChange(e) {
78 93
       var n = +e.target.value;
@@ -82,15 +97,24 @@ var PriceOptions = function PriceOptions(_ref) {
82 97
       } // 测试暂时改成1分
83 98
 
84 99
 
100
+      setInputPrice("".concat(n * 100));
85 101
       onPriceChange(n * 100);
86 102
     },
87 103
     onClick: function onClick(e) {
88
-      onPriceChange(0);
89
-      setInputStatus(true);
104
+      if (!inputStatus) {
105
+        setInputPrice('');
106
+        setInputStatus(true);
107
+      }
90 108
     },
91 109
     onFocus: function onFocus(e) {
92 110
       e.target.placeholder = "";
93
-      setInputStatus(true);
111
+
112
+      if (inputStatus) {
113
+        setInputPrice("".concat(price));
114
+      } else {
115
+        setInputPrice('');
116
+        setInputStatus(true);
117
+      }
94 118
 
95 119
       if (focusScroll) {
96 120
         e.target.scrollIntoView();
@@ -99,7 +123,7 @@ var PriceOptions = function PriceOptions(_ref) {
99 123
     onBlur: function onBlur(e) {
100 124
       e.target.placeholder = inputPlaceholderText;
101 125
 
102
-      if (price) {
126
+      if (inputPrice) {
103 127
         setInputStatus(true);
104 128
       } else {
105 129
         setInputStatus(false);

+ 1
- 1
lib/PriceOptions/index.js.map
File diff suppressed because it is too large
View File


+ 11
- 10
lib/RichTextEditor/index.js View File

@@ -4,13 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
4 4
 
5 5
 function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6 6
 
7
-var _commonjsHelpers = require('../_commonjsHelpers-4ed3570f.js');
7
+var _rollupPluginBabelHelpers = require('../_rollupPluginBabelHelpers-3469b70d.js');
8 8
 var React = require('react');
9 9
 var React__default = _interopDefault(React);
10
+require('../_commonjsHelpers-72d386ba.js');
10 11
 var styleInject_es = require('../style-inject.es-dcee06b6.js');
11
-var Draft = require('../Draft-7ee7c163.js');
12
-require('../_react-dom_commonjs-external-55867475.js');
13 12
 require('react-dom');
13
+var Draft = require('../Draft-a5afe13a.js');
14
+require('../_react-dom_commonjs-external-55867475.js');
14 15
 
15 16
 var css = ".RichTextEditor_wrapper__3X3Yv .RichTextEditor_btnListWrapper__vUaki {\n  display: flex;\n}\n.RichTextEditor_wrapper__3X3Yv .RichTextEditor_editorWrapper__3UFgF {\n  border: 1px solid #ccc;\n}\n";
16 17
 var styles = {"wrapper":"RichTextEditor_wrapper__3X3Yv","btnListWrapper":"RichTextEditor_btnListWrapper__vUaki","editorWrapper":"RichTextEditor_editorWrapper__3UFgF"};
@@ -66,16 +67,16 @@ var decorator = new Draft.Draft_4([{
66 67
 var RichTextEditor =
67 68
 /*#__PURE__*/
68 69
 function (_React$Component) {
69
-  _commonjsHelpers._inherits(RichTextEditor, _React$Component);
70
+  _rollupPluginBabelHelpers._inherits(RichTextEditor, _React$Component);
70 71
 
71 72
   function RichTextEditor(props) {
72 73
     var _this;
73 74
 
74
-    _commonjsHelpers._classCallCheck(this, RichTextEditor);
75
+    _rollupPluginBabelHelpers._classCallCheck(this, RichTextEditor);
75 76
 
76
-    _this = _commonjsHelpers._possibleConstructorReturn(this, _commonjsHelpers._getPrototypeOf(RichTextEditor).call(this, props));
77
+    _this = _rollupPluginBabelHelpers._possibleConstructorReturn(this, _rollupPluginBabelHelpers._getPrototypeOf(RichTextEditor).call(this, props));
77 78
 
78
-    _commonjsHelpers._defineProperty(_commonjsHelpers._assertThisInitialized(_this), "onChange", void 0);
79
+    _rollupPluginBabelHelpers._defineProperty(_rollupPluginBabelHelpers._assertThisInitialized(_this), "onChange", void 0);
79 80
 
80 81
     _this.state = {
81 82
       editorState: Draft.Draft_3.createEmpty(decorator)
@@ -87,12 +88,12 @@ function (_React$Component) {
87 88
       });
88 89
     };
89 90
 
90
-    _this.handleKeyCommand = _this.handleKeyCommand.bind(_commonjsHelpers._assertThisInitialized(_this));
91
-    _this.defaultBlockStyleFn = _this.defaultBlockStyleFn.bind(_commonjsHelpers._assertThisInitialized(_this));
91
+    _this.handleKeyCommand = _this.handleKeyCommand.bind(_rollupPluginBabelHelpers._assertThisInitialized(_this));
92
+    _this.defaultBlockStyleFn = _this.defaultBlockStyleFn.bind(_rollupPluginBabelHelpers._assertThisInitialized(_this));
92 93
     return _this;
93 94
   }
94 95
 
95
-  _commonjsHelpers._createClass(RichTextEditor, [{
96
+  _rollupPluginBabelHelpers._createClass(RichTextEditor, [{
96 97
     key: "handleKeyCommand",
97 98
     value: function handleKeyCommand(command, editorState) {
98 99
       var newState = Draft.Draft_15.handleKeyCommand(editorState, command);

+ 1
- 1
lib/RichTextEditor/index.js.map
File diff suppressed because it is too large
View File


+ 4
- 3
lib/RichTextEditorForSlate/index.js View File

@@ -4,11 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
4 4
 
5 5
 function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6 6
 
7
-var _commonjsHelpers = require('../_commonjsHelpers-4ed3570f.js');
7
+var _rollupPluginBabelHelpers = require('../_rollupPluginBabelHelpers-3469b70d.js');
8 8
 var React = require('react');
9 9
 var React__default = _interopDefault(React);
10
-var _reactDom_commonjsExternal = require('../_react-dom_commonjs-external-55867475.js');
10
+var _commonjsHelpers = require('../_commonjsHelpers-72d386ba.js');
11 11
 require('react-dom');
12
+var _reactDom_commonjsExternal = require('../_react-dom_commonjs-external-55867475.js');
12 13
 
13 14
 /*!
14 15
  * isobject <https://github.com/jonschlinkert/isobject>
@@ -10240,7 +10241,7 @@ var RichTextEditorForSlate = function RichTextEditorForSlate() {
10240 10241
       text: 'A line of text in a paragraph.'
10241 10242
     }]
10242 10243
   }]),
10243
-      _useState2 = _commonjsHelpers._slicedToArray(_useState, 2),
10244
+      _useState2 = _rollupPluginBabelHelpers._slicedToArray(_useState, 2),
10244 10245
       value = _useState2[0],
10245 10246
       setValue = _useState2[1];
10246 10247
 

+ 1
- 1
lib/RichTextEditorForSlate/index.js.map
File diff suppressed because it is too large
View File


+ 8
- 7
lib/WaitPayInfoView/index.js View File

@@ -4,10 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
4 4
 
5 5
 function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6 6
 
7
-var _commonjsHelpers = require('../_commonjsHelpers-4ed3570f.js');
7
+var _rollupPluginBabelHelpers = require('../_rollupPluginBabelHelpers-3469b70d.js');
8 8
 var React = require('react');
9 9
 var React__default = _interopDefault(React);
10
-var index = require('../index-c2424ad4.js');
10
+require('../_commonjsHelpers-72d386ba.js');
11
+var index = require('../index-44e17595.js');
11 12
 var styleInject_es = require('../style-inject.es-dcee06b6.js');
12 13
 
13 14
 var css = ".WaitPayInfoView_waitingContainer__2DyOZ {\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n}\n";
@@ -27,15 +28,15 @@ var Button = function Button() {
27 28
 var WaitPayInfoView =
28 29
 /*#__PURE__*/
29 30
 function (_Component) {
30
-  _commonjsHelpers._inherits(WaitPayInfoView, _Component);
31
+  _rollupPluginBabelHelpers._inherits(WaitPayInfoView, _Component);
31 32
 
32 33
   function WaitPayInfoView() {
33
-    _commonjsHelpers._classCallCheck(this, WaitPayInfoView);
34
+    _rollupPluginBabelHelpers._classCallCheck(this, WaitPayInfoView);
34 35
 
35
-    return _commonjsHelpers._possibleConstructorReturn(this, _commonjsHelpers._getPrototypeOf(WaitPayInfoView).apply(this, arguments));
36
+    return _rollupPluginBabelHelpers._possibleConstructorReturn(this, _rollupPluginBabelHelpers._getPrototypeOf(WaitPayInfoView).apply(this, arguments));
36 37
   }
37 38
 
38
-  _commonjsHelpers._createClass(WaitPayInfoView, [{
39
+  _rollupPluginBabelHelpers._createClass(WaitPayInfoView, [{
39 40
     key: "render",
40 41
     value: function render() {
41 42
       var _this$props = this.props,
@@ -74,7 +75,7 @@ function (_Component) {
74 75
   return WaitPayInfoView;
75 76
 }(React.Component);
76 77
 
77
-_commonjsHelpers._defineProperty(WaitPayInfoView, "defaultProps", {
78
+_rollupPluginBabelHelpers._defineProperty(WaitPayInfoView, "defaultProps", {
78 79
   onClickPayed: function onClickPayed() {
79 80
     console.log("onClickPayed");
80 81
   },

+ 1
- 1
lib/WaitPayInfoView/index.js.map
File diff suppressed because it is too large
View File


+ 152
- 0
lib/WantedPublishPopover/index.js View File

@@ -0,0 +1,152 @@
1
+'use strict';
2
+
3
+Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
+
7
+var _rollupPluginBabelHelpers = require('../_rollupPluginBabelHelpers-3469b70d.js');
8
+var React = require('react');
9
+var React__default = _interopDefault(React);
10
+require('../_commonjsHelpers-72d386ba.js');
11
+require('../index-44e17595.js');
12
+var styleInject_es = require('../style-inject.es-dcee06b6.js');
13
+var antd = require('antd');
14
+var WantedPublishView = require('../WantedPublishView/index.js');
15
+
16
+const img = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAAFNElEQVRYR82Yf0jcdRjH33enp1NbTQ3FdKhTY64hTTsURc6keQeSqIPSQJIiMHM3zj8ST/BE/And+c8wmSSMomHl4EaaP2aeuq/R1MwrraEgLVbLXcvpReY847l9v3I7774/LKUHjuN79/k8z+v7+fG8n89Hhv+pyf4F1xEAxwE8BSAIQDAAPwB/AnCwnzsAVgHsSI0jFcwfwEkA8QAiRAYj0BUACwDsIvtALJgcwLMA0tjREevfs90tADcBbAg5EAN2FEAegFAhZyL/3wYwBeB7vvZCYFEAzgIIEBlUSjMCYwA4vXXiA6N1lAuApvGg7DaAL7zB+QILB1DA7rKDguL80shNegbxBkZbv4jd/gcNxfmfYHftbjxvYDR9CYdFxMahDfExm/tcP3mC0RQWHzIUF+5HAGPcgydYPoBn+MCSk5ODm5ubs4qKigadTq8b6rHuFRUVcYmJicf0ev2swAuTOnwC4L7niD0J4FW+zvHx8YEMw+gjIiKOz8zM3MjIyPhwa2vLp9xUV1cntra2VioUCv+WlpYug8EwLwD3HYAbnmApANL5OlZVVZ0wm806hUKhpHbz8/Nfq1Sqns3NzT1wdXV1J41GYwXXdnZ2lklNTb0sAEaK8JEnGKWHSKH1xY2Cn59fILVdXFz8RqVSXdrY2Nid16amptM1NTVvyeVy0laIGV23uJ+SpnJrTAHgTSEo7v/Kyso4k8l0XqlUUoWBpaUlW3p6epfdbn9oMpnO6HS6N+RyOfnE1NTUWFZW1hUx65H1T3I1z4E9AaBULBi1Ky8vj+ns7NQFBASE0PPKysqi1WqdKSsrK5XJZC61sFqtw2q1+jMpfgmK3ocDoymkqZRkJSUlUd3d3ReCgoJI6B+zwcHBzzUazTVJDh81XgJwnQOLY8Vasp+CgoKI3t7ed5VKJSmGy4aGhvrz8vIskp096kDF5TUOjCpR7X4c9fX1nS0sLCQJ27XV1dXbubm5HTabjSpZqfYTgAEOLAzAOake+vv787VaLSVlsh2Hw/EgODiY8iHsdvsdjUbTMT09/UCi3x9oeXJgtLvKpDgYHR0tzMnJoQISOzs7zq6urss9PT0LAwMDF0JDQ6mOw9ra2t38/Hzz5OTkHxJ8k0Lc5MDo+3UArsTJZ3K5HOPj469kZmbmsFDbHR0dH+j1+hl6TklJCRkZGdGFh4fH0PP6+vq94uJi8/DwsNh6/0sAt9y18kUAiXxQ/v7+MoZhXktLS8uidk6n82FbW9ul2trab937JSUlBVmt1vORkZGx9LvD4bhfWlpqtlgsvwm8NykIqcNf7mBUsb7E19FoNJ6qr6+vojbb29t/NzY2vt/Q0ECnnz0WGxsbODEx8U50dLSrhFpeXrYlJCRcFAD7BYBrN7uDkXzQOqOzoU+zWCwarVarNRgMF9vb2+nU49OioqKUDMO8HRIScjQ7O/u9hYUFoV1KZwCbJxg9vwDgjNA6U6vVx8bGxlzliZCFhYX5xcTEHJmbm1sXaEvnzysAtryB0eIvAeAS6EO2caoJuJjeSutTAFyL+xDtdwCkqbsViq9T0mHW/ZsArlLacx8IX2C0AV4G8PQBjxqlh34AP3vG4TvwkihrDhCOTkZ0+KBqYo8JXRHQyKkBnPiPR4524CAAnwlXCIzjOc3e9AhKlogXoCspOnnz5jSxYBSPLlaeB/AcAFfZLNHuAvgKwK9i+kkB4/xRjqP6jXSQhJpPKUi4aYToc08MEF8ek9KfRo675qRv7qqTu+6kVLAv28+I7SuQ1E7/AHTQdDZ7M6+KAAAAAElFTkSuQmCC';
17
+
18
+var css = ".WantedPublishPopover_wanted_wrapper__1HLvh {\n  width: 366px;\n  height: 424px;\n  font-size: 18px;\n  text-align: center;\n}\n.WantedPublishPopover_wanted_wrapper__1HLvh .WantedPublishPopover_close_btn__2gPNo {\n  position: absolute;\n  top: 10px;\n  right: 16px;\n  width: 20px;\n  height: 20px;\n}\n.WantedPublishPopover_wanted_wrapper__1HLvh .WantedPublishPopover_close_btn__2gPNo > button {\n  border: none;\n  padding: 0px;\n  margin: 0px;\n  cursor: pointer;\n}\n.WantedPublishPopover_wanted_wrapper__1HLvh .WantedPublishPopover_close_btn__2gPNo > button > img {\n  width: 100%;\n}\n";
19
+var styles = {"wanted_wrapper":"WantedPublishPopover_wanted_wrapper__1HLvh","close_btn":"WantedPublishPopover_close_btn__2gPNo","wantedWrapper":"WantedPublishPopover_wanted_wrapper__1HLvh","closeBtn":"WantedPublishPopover_close_btn__2gPNo"};
20
+styleInject_es.styleInject(css);
21
+
22
+var WantedPublishPopover =
23
+/*#__PURE__*/
24
+function (_React$Component) {
25
+  _rollupPluginBabelHelpers._inherits(WantedPublishPopover, _React$Component);
26
+
27
+  function WantedPublishPopover(props) {
28
+    var _this;
29
+
30
+    _rollupPluginBabelHelpers._classCallCheck(this, WantedPublishPopover);
31
+
32
+    _this = _rollupPluginBabelHelpers._possibleConstructorReturn(this, _rollupPluginBabelHelpers._getPrototypeOf(WantedPublishPopover).call(this, props));
33
+
34
+    _rollupPluginBabelHelpers._defineProperty(_rollupPluginBabelHelpers._assertThisInitialized(_this), "handleClose", function () {
35
+      var handleConfirm = _this.props.handleConfirm;
36
+
37
+      if (handleConfirm) {
38
+        _this.handleUpdateCurrentWanted(_this.state.current_wanted, function (value) {
39
+          handleConfirm(Number(value).toFixed(2));
40
+        });
41
+      }
42
+
43
+      _this.setState({
44
+        visible: false
45
+      });
46
+    });
47
+
48
+    _rollupPluginBabelHelpers._defineProperty(_rollupPluginBabelHelpers._assertThisInitialized(_this), "clearCurrentWanted", function (cb) {
49
+      _this.setState({
50
+        current_wanted: null
51
+      }, function () {
52
+        return cb();
53
+      });
54
+    });
55
+
56
+    _rollupPluginBabelHelpers._defineProperty(_rollupPluginBabelHelpers._assertThisInitialized(_this), "handleUpdateCurrentWanted", function (value, afterUpdate) {
57
+      if (!value) return;
58
+      var result;
59
+      result = value;
60
+
61
+      if (parseInt("".concat(value), 10) === value) {
62
+        // 无小数判断
63
+        result = Number(value);
64
+      }
65
+
66
+      if (!result) return;
67
+      if (result > 10000) result = 10000;
68
+      if (result < 5) result = 5;
69
+
70
+      _this.setState({
71
+        current_wanted: result
72
+      }, function () {
73
+        return afterUpdate && afterUpdate(result);
74
+      });
75
+    });
76
+
77
+    _this.state = {
78
+      visible: false,
79
+      current_wanted: null
80
+    };
81
+    return _this;
82
+  }
83
+
84
+  _rollupPluginBabelHelpers._createClass(WantedPublishPopover, [{
85
+    key: "renderInitView",
86
+    value: function renderInitView() {
87
+      var _this2 = this;
88
+
89
+      var current_wanted = this.state.current_wanted;
90
+      return React__default.createElement(WantedPublishView.default, {
91
+        type: "pop",
92
+        current_wanted: current_wanted,
93
+        InputWantedValueChange: function InputWantedValueChange(v) {
94
+          return _this2.setState({
95
+            current_wanted: v
96
+          });
97
+        },
98
+        InputWantedPressEnter: function InputWantedPressEnter(v) {
99
+          return _this2.handleUpdateCurrentWanted(v, _this2.handleClose);
100
+        },
101
+        InputWantedOnBlur: function InputWantedOnBlur(v) {
102
+          return _this2.handleUpdateCurrentWanted(v);
103
+        },
104
+        InputWantedClear: function InputWantedClear() {
105
+          return _this2.clearCurrentWanted(_this2.handleClose);
106
+        },
107
+        CloseFunction: this.handleClose
108
+      });
109
+    }
110
+  }, {
111
+    key: "render",
112
+    value: function render() {
113
+      var _this3 = this;
114
+
115
+      var _this$props = this.props,
116
+          children = _this$props.children,
117
+          _this$props$popoverCo = _this$props.popoverConfig,
118
+          popoverConfig = _this$props$popoverCo === void 0 ? {} : _this$props$popoverCo;
119
+      return React__default.createElement(antd.Popover, _rollupPluginBabelHelpers._extends({
120
+        placement: "left",
121
+        trigger: "click",
122
+        visible: this.state.visible,
123
+        onVisibleChange: function onVisibleChange(value) {
124
+          if (!value) {
125
+            _this3.handleClose();
126
+          }
127
+
128
+          _this3.setState({
129
+            visible: value
130
+          });
131
+        }
132
+      }, popoverConfig, {
133
+        content: React__default.createElement("div", {
134
+          className: styles.wanted_wrapper
135
+        }, React__default.createElement("div", {
136
+          className: styles.close_btn
137
+        }, React__default.createElement("button", {
138
+          onClick: this.handleClose
139
+        }, React__default.createElement("img", {
140
+          src: img,
141
+          alt: "close wanted button"
142
+        }))), this.renderInitView())
143
+      }), children);
144
+    }
145
+  }]);
146
+
147
+  return WantedPublishPopover;
148
+}(React__default.Component);
149
+
150
+exports.WantedPublishPopover = WantedPublishPopover;
151
+exports.default = WantedPublishPopover;
152
+//# sourceMappingURL=index.js.map

+ 1
- 0
lib/WantedPublishPopover/index.js.map
File diff suppressed because it is too large
View File


+ 101
- 0
lib/WantedPublishView/index.js
File diff suppressed because it is too large
View File


+ 1
- 0
lib/WantedPublishView/index.js.map
File diff suppressed because it is too large
View File


+ 0
- 1
lib/_commonjsHelpers-4ed3570f.js.map View File

@@ -1 +0,0 @@
1
-{"version":3,"file":"_commonjsHelpers-aeb41076.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}

+ 16
- 0
lib/_commonjsHelpers-72d386ba.js View File

@@ -0,0 +1,16 @@
1
+'use strict';
2
+
3
+var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
+
5
+function unwrapExports (x) {
6
+	return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
7
+}
8
+
9
+function createCommonjsModule(fn, module) {
10
+	return module = { exports: {} }, fn(module, module.exports), module.exports;
11
+}
12
+
13
+exports.commonjsGlobal = commonjsGlobal;
14
+exports.createCommonjsModule = createCommonjsModule;
15
+exports.unwrapExports = unwrapExports;
16
+//# sourceMappingURL=_commonjsHelpers-72d386ba.js.map

+ 1
- 0
lib/_commonjsHelpers-72d386ba.js.map View File

@@ -0,0 +1 @@
1
+{"version":3,"file":"_commonjsHelpers-97e6d7b1.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}

+ 3
- 2
lib/_react-dom_commonjs-external-55867475.js View File

@@ -4,10 +4,11 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
4 4
 
5 5
 var React = require('react');
6 6
 var React__default = _interopDefault(React);
7
-var reactDom = _interopDefault(require('react-dom'));
7
+var reactDom = require('react-dom');
8
+var reactDom__default = _interopDefault(reactDom);
8 9
 
9 10
 
10 11
 
11 12
 exports.React = React__default;
12
-exports.require$$3 = reactDom;
13
+exports.require$$3 = reactDom__default;
13 14
 //# sourceMappingURL=_react-dom_commonjs-external-55867475.js.map

+ 1
- 1
lib/_react-dom_commonjs-external-55867475.js.map View File

@@ -1 +1 @@
1
-{"version":3,"file":"_react-dom_commonjs-external-d3012e04.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
1
+{"version":3,"file":"_react-dom_commonjs-external-d3012e04.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}

lib/_commonjsHelpers-4ed3570f.js → lib/_rollupPluginBabelHelpers-3469b70d.js View File

@@ -1,5 +1,19 @@
1 1
 'use strict';
2 2
 
3
+function _typeof(obj) {
4
+  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
5
+    _typeof = function (obj) {
6
+      return typeof obj;
7
+    };
8
+  } else {
9
+    _typeof = function (obj) {
10
+      return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
11
+    };
12
+  }
13
+
14
+  return _typeof(obj);
15
+}
16
+
3 17
 function _classCallCheck(instance, Constructor) {
4 18
   if (!(instance instanceof Constructor)) {
5 19
     throw new TypeError("Cannot call a class as a function");
@@ -178,16 +192,6 @@ function _nonIterableRest() {
178 192
   throw new TypeError("Invalid attempt to destructure non-iterable instance");
179 193
 }
180 194
 
181
-var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
182
-
183
-function unwrapExports (x) {
184
-	return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
185
-}
186
-
187
-function createCommonjsModule(fn, module) {
188
-	return module = { exports: {} }, fn(module, module.exports), module.exports;
189
-}
190
-
191 195
 exports._assertThisInitialized = _assertThisInitialized;
192 196
 exports._classCallCheck = _classCallCheck;
193 197
 exports._createClass = _createClass;
@@ -198,7 +202,5 @@ exports._inherits = _inherits;
198 202
 exports._objectSpread2 = _objectSpread2;
199 203
 exports._possibleConstructorReturn = _possibleConstructorReturn;
200 204
 exports._slicedToArray = _slicedToArray;
201
-exports.commonjsGlobal = commonjsGlobal;
202
-exports.createCommonjsModule = createCommonjsModule;
203
-exports.unwrapExports = unwrapExports;
204
-//# sourceMappingURL=_commonjsHelpers-4ed3570f.js.map
205
+exports._typeof = _typeof;
206
+//# sourceMappingURL=_rollupPluginBabelHelpers-3469b70d.js.map

+ 1
- 0
lib/_rollupPluginBabelHelpers-3469b70d.js.map View File

@@ -0,0 +1 @@
1
+{"version":3,"file":"_rollupPluginBabelHelpers-bf46fecd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}

lib/index-c2424ad4.js → lib/index-44e17595.js View File

@@ -1,6 +1,6 @@
1 1
 'use strict';
2 2
 
3
-var _commonjsHelpers = require('./_commonjsHelpers-4ed3570f.js');
3
+var _commonjsHelpers = require('./_commonjsHelpers-72d386ba.js');
4 4
 
5 5
 var classnames = _commonjsHelpers.createCommonjsModule(function (module) {
6 6
 /*!
@@ -52,4 +52,4 @@ var classnames = _commonjsHelpers.createCommonjsModule(function (module) {
52 52
 });
53 53
 
54 54
 exports.classnames = classnames;
55
-//# sourceMappingURL=index-c2424ad4.js.map
55
+//# sourceMappingURL=index-44e17595.js.map

lib/index-c2424ad4.js.map → lib/index-44e17595.js.map View File

@@ -1 +1 @@
1
-{"version":3,"file":"index-7951fb2f.js","sources":["../node_modules/classnames/index.js"],"sourcesContent":["/*!\n  Copyright (c) 2017 Jed Watson.\n  Licensed under the MIT License (MIT), see\n  http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n"],"names":[],"mappings":";;;;;;;;;;;;AAOA,CAAC,YAAY;;CAGZ,IAAI,MAAM,GAAG,EAAE,CAAC,cAAc,CAAC;;CAE/B,SAAS,UAAU,IAAI;EACtB,IAAI,OAAO,GAAG,EAAE,CAAC;;EAEjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;GAC1C,IAAI,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;GACvB,IAAI,CAAC,GAAG,EAAE,SAAS;;GAEnB,IAAI,OAAO,GAAG,OAAO,GAAG,CAAC;;GAEzB,IAAI,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,QAAQ,EAAE;IACjD,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAClB,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,EAAE;IAC5C,IAAI,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IACxC,IAAI,KAAK,EAAE;KACV,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACpB;IACD,MAAM,IAAI,OAAO,KAAK,QAAQ,EAAE;IAChC,KAAK,IAAI,GAAG,IAAI,GAAG,EAAE;KACpB,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,GAAG,CAAC,GAAG,CAAC,EAAE;MACtC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;MAClB;KACD;IACD;GACD;;EAED,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;EACzB;;CAED,IAAI,CAAiC,MAAM,CAAC,OAAO,EAAE;EACpD,UAAU,CAAC,OAAO,GAAG,UAAU,CAAC;EAChC,cAAc,GAAG,UAAU,CAAC;EAC5B,MAAM,AAKA;EACN,MAAM,CAAC,UAAU,GAAG,UAAU,CAAC;EAC/B;CACD,EAAE,EAAE;;;;;"}
1
+{"version":3,"file":"index-c9837619.js","sources":["../node_modules/classnames/index.js"],"sourcesContent":["/*!\n  Copyright (c) 2017 Jed Watson.\n  Licensed under the MIT License (MIT), see\n  http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n"],"names":[],"mappings":";;;;;;;;;;;;AAOA,CAAC,YAAY;;CAGZ,IAAI,MAAM,GAAG,EAAE,CAAC,cAAc,CAAC;;CAE/B,SAAS,UAAU,IAAI;EACtB,IAAI,OAAO,GAAG,EAAE,CAAC;;EAEjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;GAC1C,IAAI,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;GACvB,IAAI,CAAC,GAAG,EAAE,SAAS;;GAEnB,IAAI,OAAO,GAAG,OAAO,GAAG,CAAC;;GAEzB,IAAI,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,QAAQ,EAAE;IACjD,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAClB,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,EAAE;IAC5C,IAAI,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IACxC,IAAI,KAAK,EAAE;KACV,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACpB;IACD,MAAM,IAAI,OAAO,KAAK,QAAQ,EAAE;IAChC,KAAK,IAAI,GAAG,IAAI,GAAG,EAAE;KACpB,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,GAAG,CAAC,GAAG,CAAC,EAAE;MACtC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;MAClB;KACD;IACD;GACD;;EAED,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;EACzB;;CAED,IAAI,CAAiC,MAAM,CAAC,OAAO,EAAE;EACpD,UAAU,CAAC,OAAO,GAAG,UAAU,CAAC;EAChC,cAAc,GAAG,UAAU,CAAC;EAC5B,MAAM,AAKA;EACN,MAAM,CAAC,UAAU,GAAG,UAAU,CAAC;EAC/B;CACD,EAAE,EAAE;;;;;"}

+ 15
- 4
lib/index.js View File

@@ -2,17 +2,24 @@
2 2
 
3 3
 Object.defineProperty(exports, '__esModule', { value: true });
4 4
 
5
-require('./_commonjsHelpers-4ed3570f.js');
5
+require('./_rollupPluginBabelHelpers-3469b70d.js');
6 6
 require('react');
7
-require('./index-c2424ad4.js');
7
+require('./_commonjsHelpers-72d386ba.js');
8
+require('./index-44e17595.js');
8 9
 require('./style-inject.es-dcee06b6.js');
9
-require('./test-029f205d.js');
10
-require('./utils-4bc17ae2.js');
10
+require('./test-71997d3e.js');
11
+require('react-dom');
12
+require('./Modal-1001074b.js');
13
+var Modal$1 = require('./Modal/index.js');
14
+require('./utils-9c8fdacf.js');
11 15
 var ConsumeListView = require('./ConsumeListView/index.js');
12 16
 var PayPlatformOptions = require('./PayPlatformOptions/index.js');
13 17
 require('antd');
14 18
 var PriceOptions = require('./PriceOptions/index.js');
15 19
 var WaitPayInfoView = require('./WaitPayInfoView/index.js');
20
+var AllocWantedModal = require('./AllocWantedModal/index.js');
21
+var WantedPublishView = require('./WantedPublishView/index.js');
22
+var WantedPublishPopover = require('./WantedPublishPopover/index.js');
16 23
 
17 24
 // type TransmitImgTxtData = {
18 25
 //   user_id?: string|number;
@@ -79,9 +86,13 @@ var WaitPayInfoView = require('./WaitPayInfoView/index.js');
79 86
 
80 87
 var Test = "TestComponent";
81 88
 
89
+exports.Modal = Modal$1.default;
82 90
 exports.ConsumeListView = ConsumeListView.default;
83 91
 exports.PayPlatformOptions = PayPlatformOptions.default;
84 92
 exports.PriceOptions = PriceOptions.default;
85 93
 exports.WaitPayInfoView = WaitPayInfoView.default;
94
+exports.AllocWantedModal = AllocWantedModal.default;
95
+exports.WantedPublishView = WantedPublishView.default;
96
+exports.WantedPublishPopover = WantedPublishPopover.default;
86 97
 exports.Test = Test;
87 98
 //# sourceMappingURL=index.js.map

+ 1
- 1
lib/index.js.map
File diff suppressed because it is too large
View File


lib/test-029f205d.js → lib/test-71997d3e.js View File

@@ -1,8 +1,8 @@
1 1
 'use strict';
2 2
 
3
-require('./_commonjsHelpers-4ed3570f.js');
3
+require('./_rollupPluginBabelHelpers-3469b70d.js');
4 4
 require('react');
5
-require('./index-c2424ad4.js');
5
+require('./index-44e17595.js');
6 6
 var styleInject_es = require('./style-inject.es-dcee06b6.js');
7 7
 
8 8
 var css = ".test_red__3UOk2 {\n  color: red;\n}\n";
@@ -74,4 +74,4 @@ styleInject_es.styleInject(css);
74 74
 var Test = "TestComponent";
75 75
 
76 76
 exports.Test = Test;
77
-//# sourceMappingURL=test-029f205d.js.map
77
+//# sourceMappingURL=test-71997d3e.js.map

lib/test-71997d3e.js.map
File diff suppressed because it is too large
View File


+ 0
- 1
lib/utils-4bc17ae2.js.map View File

@@ -1 +0,0 @@
1
-{"version":3,"file":"utils-f64eef69.js","sources":["../src/components/Payment/Utils/utils.ts"],"sourcesContent":["\r\nexport const IMAGE_PROCESS = '?x-oss-process=image/resize,h_350';\r\nexport const IMAGE_PROCESS_SMALL = '?x-oss-process=image/resize,h_100';\r\nexport const IMAGE_PROCESS_LARGE = '?x-oss-process=image/resize,h_500';\r\n\r\ntype AddImageProcessOptions = {\r\n  small?: boolean;\r\n  large?: boolean;\r\n  custom?: boolean;\r\n  width?: string;\r\n  height?: string;\r\n}\r\n\r\nexport function addImageProcess(url: string, options: AddImageProcessOptions = { width: '36px', height: '36px' }) {\r\n  // 防止重复添加导致的url不正确\r\n  if (url && url.indexOf('x-oss-process') > -1) {\r\n    return url;\r\n  }\r\n  if (options.small) {\r\n    return url + IMAGE_PROCESS_SMALL;\r\n  }\r\n  if (options.large) {\r\n    return url + IMAGE_PROCESS_LARGE;\r\n  }\r\n  if (options.custom) {\r\n    return `${url}?x-oss-process=image/resize,limit_0,m_fill,w_${options.width},h_${options.height}`;\r\n  }\r\n  return url + IMAGE_PROCESS;\r\n}\r\n\r\nexport function formatMoney(input: any, fuzz = 2) {\r\n  if (isNaN(+input)) {\r\n    return input;\r\n  }\r\n  return (+input).toFixed(fuzz);\r\n}\r\n\r\ntype classSize = 'small'|'normal'|'large';\r\n\r\nexport function exportStyleSizeClass(styles: any, size: classSize) {\r\n  return {\r\n    [styles[size]]: true,\r\n  }\r\n}"],"names":["IMAGE_PROCESS","IMAGE_PROCESS_SMALL","IMAGE_PROCESS_LARGE","addImageProcess","url","options","width","height","indexOf","small","large","custom","exportStyleSizeClass","styles","size"],"mappings":";;;;AACO,IAAMA,aAAa,GAAG,mCAAtB;AACP,AAAO,IAAMC,mBAAmB,GAAG,mCAA5B;AACP,AAAO,IAAMC,mBAAmB,GAAG,mCAA5B;AAUP,AAAO,SAASC,eAAT,CAAyBC,GAAzB,EAA2G;MAArEC,OAAqE,uEAAnC;IAAEC,KAAK,EAAE,MAAT;IAAiBC,MAAM,EAAE;GAAU;;;MAE5GH,GAAG,IAAIA,GAAG,CAACI,OAAJ,CAAY,eAAZ,IAA+B,CAAC,CAA3C,EAA8C;WACrCJ,GAAP;;;MAEEC,OAAO,CAACI,KAAZ,EAAmB;WACVL,GAAG,GAAGH,mBAAb;;;MAEEI,OAAO,CAACK,KAAZ,EAAmB;WACVN,GAAG,GAAGF,mBAAb;;;MAEEG,OAAO,CAACM,MAAZ,EAAoB;qBACRP,GAAV,0DAA6DC,OAAO,CAACC,KAArE,gBAAgFD,OAAO,CAACE,MAAxF;;;SAEKH,GAAG,GAAGJ,aAAb;;AAGF,AASO,SAASY,oBAAT,CAA8BC,MAA9B,EAA2CC,IAA3C,EAA4D;8CAE9DD,MAAM,CAACC,IAAD,CADT,EACkB,IADlB;;;;;;"}

lib/utils-4bc17ae2.js → lib/utils-9c8fdacf.js View File

@@ -1,6 +1,6 @@
1 1
 'use strict';
2 2
 
3
-var _commonjsHelpers = require('./_commonjsHelpers-4ed3570f.js');
3
+var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-3469b70d.js');
4 4
 
5 5
 var IMAGE_PROCESS = '?x-oss-process=image/resize,h_350';
6 6
 var IMAGE_PROCESS_SMALL = '?x-oss-process=image/resize,h_100';
@@ -31,9 +31,9 @@ function addImageProcess(url) {
31 31
   return url + IMAGE_PROCESS;
32 32
 }
33 33
 function exportStyleSizeClass(styles, size) {
34
-  return _commonjsHelpers._defineProperty({}, styles[size], true);
34
+  return _rollupPluginBabelHelpers._defineProperty({}, styles[size], true);
35 35
 }
36 36
 
37 37
 exports.addImageProcess = addImageProcess;
38 38
 exports.exportStyleSizeClass = exportStyleSizeClass;
39
-//# sourceMappingURL=utils-4bc17ae2.js.map
39
+//# sourceMappingURL=utils-9c8fdacf.js.map

+ 1
- 0
lib/utils-9c8fdacf.js.map View File

@@ -0,0 +1 @@
1
+{"version":3,"file":"utils-74f31cae.js","sources":["../src/components/Payment/Utils/utils.ts"],"sourcesContent":["\r\nexport const IMAGE_PROCESS = '?x-oss-process=image/resize,h_350';\r\nexport const IMAGE_PROCESS_SMALL = '?x-oss-process=image/resize,h_100';\r\nexport const IMAGE_PROCESS_LARGE = '?x-oss-process=image/resize,h_500';\r\n\r\ninterface AddImageProcessOptions {\r\n  small?: boolean;\r\n  large?: boolean;\r\n  custom?: boolean;\r\n  width?: string;\r\n  height?: string;\r\n}\r\n\r\nexport function addImageProcess(url: string, options: AddImageProcessOptions = { width: '36px', height: '36px' }) {\r\n  // 防止重复添加导致的url不正确\r\n  if (url && url.indexOf('x-oss-process') > -1) {\r\n    return url;\r\n  }\r\n  if (options.small) {\r\n    return url + IMAGE_PROCESS_SMALL;\r\n  }\r\n  if (options.large) {\r\n    return url + IMAGE_PROCESS_LARGE;\r\n  }\r\n  if (options.custom) {\r\n    return `${url}?x-oss-process=image/resize,limit_0,m_fill,w_${options.width},h_${options.height}`;\r\n  }\r\n  return url + IMAGE_PROCESS;\r\n}\r\n\r\nexport function formatMoney(input: any, fuzz = 2) {\r\n  if (isNaN(+input)) {\r\n    return input;\r\n  }\r\n  return (+input).toFixed(fuzz);\r\n}\r\n\r\ntype classSize = 'small'|'normal'|'large';\r\n\r\nexport function exportStyleSizeClass(styles: any, size: classSize) {\r\n  return {\r\n    [styles[size]]: true,\r\n  }\r\n}"],"names":["IMAGE_PROCESS","IMAGE_PROCESS_SMALL","IMAGE_PROCESS_LARGE","addImageProcess","url","options","width","height","indexOf","small","large","custom","exportStyleSizeClass","styles","size"],"mappings":";;;;AACO,IAAMA,aAAa,GAAG,mCAAtB;AACP,AAAO,IAAMC,mBAAmB,GAAG,mCAA5B;AACP,AAAO,IAAMC,mBAAmB,GAAG,mCAA5B;AAUP,AAAO,SAASC,eAAT,CAAyBC,GAAzB,EAA2G;MAArEC,OAAqE,uEAAnC;IAAEC,KAAK,EAAE,MAAT;IAAiBC,MAAM,EAAE;GAAU;;;MAE5GH,GAAG,IAAIA,GAAG,CAACI,OAAJ,CAAY,eAAZ,IAA+B,CAAC,CAA3C,EAA8C;WACrCJ,GAAP;;;MAEEC,OAAO,CAACI,KAAZ,EAAmB;WACVL,GAAG,GAAGH,mBAAb;;;MAEEI,OAAO,CAACK,KAAZ,EAAmB;WACVN,GAAG,GAAGF,mBAAb;;;MAEEG,OAAO,CAACM,MAAZ,EAAoB;qBACRP,GAAV,0DAA6DC,OAAO,CAACC,KAArE,gBAAgFD,OAAO,CAACE,MAAxF;;;SAEKH,GAAG,GAAGJ,aAAb;;AAGF,AASO,SAASY,oBAAT,CAA8BC,MAA9B,EAA2CC,IAA3C,EAA4D;uDAE9DD,MAAM,CAACC,IAAD,CADT,EACkB,IADlB;;;;;;"}

+ 4
- 4
src/components/Payment/PriceOptions/PriceOptions.less View File

@@ -2,6 +2,7 @@
2 2
 @item_margin: 6px;
3 3
 .options{
4 4
   border-bottom: 1px dashed #00000017;
5
+
5 6
   p {
6 7
     font-size:14px;
7 8
     font-weight:400;
@@ -10,7 +11,6 @@
10 11
   }
11 12
   .infoItem {
12 13
     padding-right: 0;
13
-    margin-bottom: -12px;
14 14
     .priceItem {
15 15
       background:rgba(243,243,243,0.14);
16 16
       border-radius:4px;
@@ -91,8 +91,8 @@
91 91
   }
92 92
 }
93 93
 
94
-@media (max-width: 768px) {
95
-  .options {
94
+.options {
95
+  &.multi {
96 96
     padding: 20px 20px;
97 97
     p{
98 98
       font-size:14px;
@@ -114,7 +114,7 @@
114 114
         width:74px;
115 115
         height:36px;
116 116
         line-height: 36px;
117
-        border-radius:6px;
117
+        border-radius:4px;
118 118
         border:1px solid rgba(207,207,207,1);
119 119
           &.active {
120 120
           background-color: #fff;

+ 16
- 3
src/components/Payment/PriceOptions/index.tsx View File

@@ -4,6 +4,7 @@ import { Input } from "antd";
4 4
 import styles from "./PriceOptions.less";
5 5
 
6 6
 interface Props {
7
+  rowMode: "single" | "multi";
7 8
   price: number;
8 9
   onPriceChange: (v: number) => void;
9 10
   size: "small" | "normal" | "large";
@@ -15,12 +16,17 @@ interface Props {
15 16
   priceRender?: Function;
16 17
   inputPriceRender?: Function;
17 18
   inputSuffix?: string | JSX.Element[] | JSX.Element;
19
+  injectOptions?: {
20
+    priceBtnClass: any;
21
+    priceInputClass: any;
22
+  }
18 23
   inputRef: React.RefObject<any>;
19 24
 }
20 25
 
21 26
 const PriceOptions = ({
22 27
   price,
23 28
   onPriceChange,
29
+  rowMode = "single",
24 30
   size = "normal",
25 31
   focusScroll = true,
26 32
   withTitle = true,
@@ -30,6 +36,10 @@ const PriceOptions = ({
30 36
   priceRender = (i: any) => i / 100,
31 37
   inputPriceRender = (i: any) => (i ? i / 100 : ""),
32 38
   inputSuffix = "¥",
39
+  injectOptions = {
40
+    priceBtnClass: {},
41
+    priceInputClass: {},
42
+  },
33 43
   inputRef
34 44
 }: Props) => {
35 45
   const defaultOptions = priceOptions;
@@ -38,7 +48,9 @@ const PriceOptions = ({
38 48
   const [inputPrice, setInputPrice] = useState('');
39 49
 
40 50
   return (
41
-    <div className={classnames(styles.options)}>
51
+    <div className={classnames(styles.options, {
52
+      [styles.multi]: rowMode === "multi"
53
+    })}>
42 54
       {withTitle ? (titleText || null) : null}
43 55
       <div className={styles.infoItem}>
44 56
         <span className={styles.priceBtn}>
@@ -46,7 +58,8 @@ const PriceOptions = ({
46 58
             <span
47 59
               className={classnames({
48 60
                 [styles.priceItem]: true,
49
-                [styles.active]: price === item && !inputStatus
61
+                [styles.active]: price === item && !inputStatus,
62
+                ...injectOptions.priceBtnClass,
50 63
               })}
51 64
               key={item}
52 65
               onClick={() => {
@@ -60,6 +73,7 @@ const PriceOptions = ({
60 73
         </span>
61 74
         <Input
62 75
           ref={inputRef}
76
+          className={classnames(styles.priceInput, {...injectOptions.priceInputClass})}
63 77
           onMouseEnter={() => {
64 78
             if (inputStatus && inputRef && inputRef.current) {
65 79
               inputRef.current.focus();
@@ -67,7 +81,6 @@ const PriceOptions = ({
67 81
             }
68 82
           }}
69 83
           suffix={inputSuffix}
70
-          className={styles.priceInput}
71 84
           value={inputStatus ? inputPriceRender(inputPrice) : ""}
72 85
           placeholder={inputPlaceholderText}
73 86
           onChange={e => {

+ 2
- 1
stats.html
File diff suppressed because it is too large
View File


+ 3
- 2
stories/Payment.stories.tsx View File

@@ -133,9 +133,10 @@ stories.add(
133 133
     const [price, setPrice] = React.useState(0);
134 134
     const refInput = React.useRef(null);
135 135
     return (
136
-      <>
136
+      <div style={{ width: text("style_width", "auto") }}>
137 137
         <PriceOptions
138 138
           price={price}
139
+          rowMode={select("rowMode", { single: 'single', multi: 'multi' }, "single")}
139 140
           onPriceChange={v => setPrice(v)}
140 141
           size={select(
141 142
             "size",
@@ -152,7 +153,7 @@ stories.add(
152 153
         />
153 154
         <Divider />
154 155
         <div>price: {price}</div>
155
-      </>
156
+      </div>
156 157
     );
157 158
   },
158 159
   {