説明なし

index.js 18KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', { value: true });
  3. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  4. var inherits = require('../inherits-c86d64c1.js');
  5. var React = require('react');
  6. var React__default = _interopDefault(React);
  7. require('react-dom');
  8. var Modal = require('../Modal/index.js');
  9. var styleInject_es = require('../style-inject.es-dcee06b6.js');
  10. var defineProperty = require('../defineProperty-ba7cd53d.js');
  11. var index = require('../index-1143667e.js');
  12. var antd = require('antd');
  13. var img = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKoAAACeCAMAAACVQ2ELAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAABEZVhJZk1NACoAAAAIAAGHaQAEAAAAAQAAABoAAAAAAAOgAQADAAAAAQABAACgAgAEAAAAAQAAAKqgAwAEAAAAAQAAAJ4AAAAAi9HANwAAAHVQTFRFR3BM8cxv6ZkU+cND97w78a8t87Y0879D8M11/fDX658b76km8Mtt+9hj8cxt78pu46BA9blO7KQg5ZIM8Mtr8Mpt/s9b4p8/6KJN+MZW/95p6aVD7q9K6qpA7rVI8b9S66w/99GJ+MhN+9dh+uO16KAw+9VhDAjuxQAAACd0Uk5TABDc3Nzc3NwH3NzcQdwkGtzc3NwuN9zc3Nzc3NykZE9/3LqZ3LpykugjDgAAD+NJREFUeNrMm4d2skoUhYOUIRQJBDQo3fL+j3inN2YQFdf9zyAtGr7s00Y0X19PmlP1w9Anmf0ZoZNlztf/bsnw99fA8ffXDlVoeELWtVMOwDQNiY4bZmXfdQOyrt9/mrTHlMSav7bTtU0uwHVdAFy0mTpH8kXX3v7In0n/1C78KGor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w4m9T4HjriQtJHXgBu+fQpc6ULMwn0CbPqBGHSlYyWvAPUjAXJHXEiNcS//hU+TBpQC15pg9Dt8PmFiOXCkbJZORERuQzf4p/NQDjRFCfxxEKtBUeJGu73YoB9M2mt3pAnZwMnxB+eDF3tCMiUaGp5EJe0Xf1iMxG9+KxERueK8OGoidfhg+bDDZO6btgTEbVYgMvEbHvq589oKgiYjcu3L5jG/JflN5r/s63BjnA8Yoyd1u+VmDoKWG2rm53YsZq7GRMY/JrJv7WPCGEDJWCyZy2+HD6Cw0ZYIH5olc2iW0ocqZjiOu9Zx/A8JqORwPqNn9gAAAABJRU5ErkJggg==";
  15. var css = ".WantedPublishView_wrapper__3lkb6 .WantedPublishView_wanted_middle__1UdIU {\n color: #e1ad28;\n font-size: 17px;\n margin-top: 21px;\n}\n.WantedPublishView_wrapper__3lkb6 .WantedPublishView_wanted_middle__1UdIU .WantedPublishView_wanted_cover__30Gn1 {\n width: 95px;\n}\n.WantedPublishView_wrapper__3lkb6 .WantedPublishView_wanted_bottom__3EIE0 .WantedPublishView_wanted_bottom_title__2LAKy {\n color: #565656;\n font-size: 14px;\n}\n.WantedPublishView_wrapper__3lkb6 .WantedPublishView_wanted_bottom__3EIE0 .WantedPublishView_wanted_input_number__2Afkg {\n margin: 11px auto;\n width: 266px;\n height: 36px;\n}\n.WantedPublishView_wrapper__3lkb6 .WantedPublishView_wanted_bottom__3EIE0 .WantedPublishView_wanted_input_number__2Afkg .ant-input {\n color: #fb4b56;\n font-size: 16px;\n text-align: center;\n}\n.WantedPublishView_wrapper__3lkb6 .WantedPublishView_wanted_bottom__3EIE0 .WantedPublishView_wanted_input_number__2Afkg .ant-input:focus,\n.WantedPublishView_wrapper__3lkb6 .WantedPublishView_wanted_bottom__3EIE0 .WantedPublishView_wanted_input_number__2Afkg .ant-input:hover {\n outline: none;\n box-shadow: none;\n border-color: #fb4b56;\n}\n.WantedPublishView_wrapper__3lkb6 .WantedPublishView_wanted_bottom__3EIE0 .WantedPublishView_wanted_bottom_tips__19Je0 {\n color: #9b9b9b;\n font-size: 12px;\n}\n.WantedPublishView_wrapper__3lkb6 footer {\n margin-top: 40px;\n}\n.WantedPublishView_wrapper__3lkb6 footer .WantedPublishView_wanted_confirm_button__1JBhv {\n font-size: 16px;\n color: white;\n background-color: #71c135;\n}\n.WantedPublishView_wrapper__3lkb6 footer .WantedPublishView_wanted_confirm_button__1JBhv:hover,\n.WantedPublishView_wrapper__3lkb6 footer .WantedPublishView_wanted_confirm_button__1JBhv:focus {\n color: white;\n outline: none;\n box-shadow: none;\n background-color: #8cd158;\n border-color: #fafdf8;\n}\n.WantedPublishView_wrapper__3lkb6 footer .WantedPublishView_wanted_cancel_button__CosmE {\n margin-top: 12px;\n color: #787f8c;\n font-size: 12px;\n cursor: pointer;\n}\n.WantedPublishView_wrapper__3lkb6 footer .WantedPublishView_wanted_cancel_button__CosmE:hover,\n.WantedPublishView_wrapper__3lkb6 footer .WantedPublishView_wanted_cancel_button__CosmE:focus {\n color: #787f8c;\n text-shadow: #565656;\n}\n.WantedPublishView_wantedCancelModal__2ODM1 {\n width: 320px;\n padding: 32px 32px 24px 32px;\n box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.2);\n background-color: white;\n border-radius: 4px;\n}\n.WantedPublishView_wantedCancelModal__2ODM1 .WantedPublishView_top__2bV0z {\n display: flex;\n}\n.WantedPublishView_wantedCancelModal__2ODM1 .WantedPublishView_top__2bV0z .WantedPublishView_questionIcon__13EXq {\n width: 22px;\n height: 22px;\n}\n.WantedPublishView_wantedCancelModal__2ODM1 .WantedPublishView_top__2bV0z .WantedPublishView_questionIcon__13EXq img {\n width: 100%;\n height: 100%;\n}\n.WantedPublishView_wantedCancelModal__2ODM1 .WantedPublishView_top__2bV0z .WantedPublishView_title__dsQ9f {\n font-size: 16px;\n color: rgba(0, 0, 0, 0.85);\n font-weight: bold;\n margin-left: 16px;\n}\n.WantedPublishView_wantedCancelModal__2ODM1 .WantedPublishView_content__b2kHo {\n margin-left: 38px;\n font-size: 14px;\n}\n.WantedPublishView_wantedCancelModal__2ODM1 footer {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n margin-top: 20px;\n}\n.WantedPublishView_wantedCancelModal__2ODM1 footer .WantedPublishView_modalOk__3d3JO {\n margin-left: 8px;\n background-color: #71c135;\n color: white;\n}\n.WantedPublishView_wantedCancelModal__2ODM1 footer .WantedPublishView_modalOk__3d3JO:hover,\n.WantedPublishView_wantedCancelModal__2ODM1 footer .WantedPublishView_modalOk__3d3JO:focus {\n color: white;\n outline: none;\n box-shadow: none;\n background-color: #8cd158;\n border-color: #fafdf8;\n}\n";
  16. var styles = {
  17. "wrapper": "WantedPublishView_wrapper__3lkb6",
  18. "wanted_middle": "WantedPublishView_wanted_middle__1UdIU",
  19. "wanted_cover": "WantedPublishView_wanted_cover__30Gn1",
  20. "wanted_bottom": "WantedPublishView_wanted_bottom__3EIE0",
  21. "wanted_bottom_title": "WantedPublishView_wanted_bottom_title__2LAKy",
  22. "wanted_input_number": "WantedPublishView_wanted_input_number__2Afkg",
  23. "wanted_bottom_tips": "WantedPublishView_wanted_bottom_tips__19Je0",
  24. "wanted_confirm_button": "WantedPublishView_wanted_confirm_button__1JBhv",
  25. "wanted_cancel_button": "WantedPublishView_wanted_cancel_button__CosmE",
  26. "wantedCancelModal": "WantedPublishView_wantedCancelModal__2ODM1",
  27. "top": "WantedPublishView_top__2bV0z",
  28. "questionIcon": "WantedPublishView_questionIcon__13EXq",
  29. "title": "WantedPublishView_title__dsQ9f",
  30. "content": "WantedPublishView_content__b2kHo",
  31. "modalOk": "WantedPublishView_modalOk__3d3JO",
  32. "wantedMiddle": "WantedPublishView_wanted_middle__1UdIU",
  33. "wantedCover": "WantedPublishView_wanted_cover__30Gn1",
  34. "wantedBottom": "WantedPublishView_wanted_bottom__3EIE0",
  35. "wantedBottomTitle": "WantedPublishView_wanted_bottom_title__2LAKy",
  36. "wantedInputNumber": "WantedPublishView_wanted_input_number__2Afkg",
  37. "wantedBottomTips": "WantedPublishView_wanted_bottom_tips__19Je0",
  38. "wantedConfirmButton": "WantedPublishView_wanted_confirm_button__1JBhv",
  39. "wantedCancelButton": "WantedPublishView_wanted_cancel_button__CosmE"
  40. };
  41. styleInject_es.styleInject(css);
  42. var WantedPublishView =
  43. /*#__PURE__*/
  44. function (_React$Component) {
  45. inherits._inherits(WantedPublishView, _React$Component);
  46. function WantedPublishView(props) {
  47. var _this;
  48. inherits._classCallCheck(this, WantedPublishView);
  49. _this = inherits._possibleConstructorReturn(this, inherits._getPrototypeOf(WantedPublishView).call(this, props));
  50. _this.containerRef = React__default.createRef();
  51. _this.state = {};
  52. return _this;
  53. }
  54. inherits._createClass(WantedPublishView, [{
  55. key: "componentWillUnmount",
  56. value: function componentWillUnmount() {}
  57. }, {
  58. key: "render",
  59. value: function render() {
  60. var _this2 = this;
  61. var _this$props = this.props,
  62. current_wanted = _this$props.current_wanted,
  63. wrapperClass = _this$props.wrapperClass,
  64. _this$props$viewTextO = _this$props.viewTextOptions,
  65. viewTextOptions = _this$props$viewTextO === void 0 ? {
  66. viewTitle: "设置悬赏金额",
  67. imgLabelBottom: "悬赏提问",
  68. inputTipTop: "设置悬赏金额范围¥5.00~¥10000",
  69. numberSuffix: "元",
  70. inputTipBottom: "若5天内没人回答该问题, 所支付的金额将退还至您的钱包"
  71. } : _this$props$viewTextO,
  72. _this$props$showInput = _this$props.showInputWantedClear,
  73. showInputWantedClear = _this$props$showInput === void 0 ? true : _this$props$showInput;
  74. return React__default.createElement("div", {
  75. className: index.classnames(styles.wrapper, defineProperty._defineProperty({}, wrapperClass ? wrapperClass : "", true)),
  76. ref: this.containerRef
  77. }, React__default.createElement("header", null, viewTextOptions.viewTitle), React__default.createElement("section", {
  78. className: styles.wanted_middle
  79. }, React__default.createElement("img", {
  80. className: styles.wanted_cover,
  81. src: img,
  82. alt: "wanted_image"
  83. }), React__default.createElement("div", null, viewTextOptions.imgLabelBottom)), React__default.createElement(antd.Divider, {
  84. style: {
  85. minWidth: "auto",
  86. marginLeft: "auto",
  87. marginRight: "auto",
  88. width: "266px"
  89. }
  90. }), React__default.createElement("section", {
  91. className: styles.wanted_bottom
  92. }, React__default.createElement("div", {
  93. className: styles.wanted_bottom_title
  94. }, viewTextOptions.inputTipTop), React__default.createElement(antd.Input, {
  95. className: styles.wanted_input_number,
  96. suffix: viewTextOptions.numberSuffix,
  97. value: current_wanted || "",
  98. onChange: function onChange(v) {
  99. if (!/^[.0-9]*$/g.test(v.target.value)) return;
  100. _this2.props.InputWantedValueChange(v.target.value);
  101. },
  102. onPressEnter: function onPressEnter() {
  103. _this2.props.InputWantedPressEnter(current_wanted);
  104. },
  105. onBlur: function onBlur() {
  106. _this2.props.InputWantedOnBlur(current_wanted);
  107. },
  108. autoFocus: true
  109. }), React__default.createElement("div", {
  110. className: styles.wanted_bottom_tips
  111. }, viewTextOptions.inputTipBottom)), React__default.createElement("footer", null, React__default.createElement(antd.Button, {
  112. className: styles.wanted_confirm_button,
  113. onClick: function onClick() {
  114. _this2.props.InputWantedConfirm(_this2.containerRef);
  115. }
  116. }, "\u786E\u5B9A"), showInputWantedClear && React__default.createElement("div", {
  117. role: "button",
  118. tabIndex: -1,
  119. onClick: function onClick() {
  120. _this2.props.InputWantedClear();
  121. },
  122. className: styles.wanted_cancel_button
  123. }, "\u53D6\u6D88\u60AC\u8D4F")));
  124. }
  125. }]);
  126. return WantedPublishView;
  127. }(React__default.Component);
  128. function WantedViewWranModel(_ref) {
  129. var refMount = _ref.refMount,
  130. actionConfirm = _ref.actionConfirm,
  131. actionCancel = _ref.actionCancel,
  132. _ref$viewTextOptions = _ref.viewTextOptions,
  133. viewTextOptions = _ref$viewTextOptions === void 0 ? {
  134. warnModalTitle: "确认减少悬赏金额",
  135. warnModalTip: "若减少悬赏金额,您之前支付的金额中,已分配的赏金无法退回,剩余的¥2.00会退还至您的钱包。"
  136. } : _ref$viewTextOptions;
  137. Modal.ModalCMD.show({
  138. container: refMount.current || document.body,
  139. children: React__default.createElement("div", {
  140. className: styles.wantedCancelModal
  141. }, React__default.createElement("div", {
  142. className: styles.top
  143. }, React__default.createElement("div", {
  144. className: styles.questionIcon
  145. }, React__default.createElement("img", {
  146. src: img$1,
  147. alt: "question"
  148. })), React__default.createElement("div", {
  149. className: styles.title
  150. }, viewTextOptions.warnModalTitle)), React__default.createElement("div", {
  151. className: styles.content
  152. }, viewTextOptions.warnModalTip), React__default.createElement("footer", null, React__default.createElement(antd.Button, {
  153. className: styles.modalCancel,
  154. onClick: function onClick() {
  155. actionCancel();
  156. Modal.ModalCMD.hide();
  157. }
  158. }, "\u53D6\u6D88"), React__default.createElement(antd.Button, {
  159. className: styles.modalOk,
  160. onClick: function onClick() {
  161. actionConfirm();
  162. Modal.ModalCMD.hide();
  163. }
  164. }, "\u786E\u8BA4")))
  165. });
  166. }
  167. exports.WantedViewWranModel = WantedViewWranModel;
  168. exports.default = WantedPublishView;
  169. //# sourceMappingURL=index.js.map