Browse Source

dev: 打包策略优化,组件代码细化

Roxas 4 years ago
parent
commit
eb4c587d3b
80 changed files with 115683 additions and 115399 deletions
  1. 4
    3
      eslib/Common/index.js
  2. 1
    1
      eslib/Common/index.js.map
  3. 17689
    0
      eslib/Draft-ec3417b2.js
  4. 1
    0
      eslib/Draft-ec3417b2.js.map
  5. 29025
    0
      eslib/Editor-BraftEditor/index.js
  6. 1
    0
      eslib/Editor-BraftEditor/index.js.map
  7. 211
    0
      eslib/Editor-RichTextEditor/index.js
  8. 1
    0
      eslib/Editor-RichTextEditor/index.js.map
  9. 10253
    0
      eslib/Editor-RichTextEditorForSlate/index.js
  10. 1
    0
      eslib/Editor-RichTextEditorForSlate/index.js.map
  11. 10
    57150
      eslib/Editor/index.js
  12. 1
    1
      eslib/Editor/index.js.map
  13. 155
    0
      eslib/Payment-Common-common-ConsumeListView/index.js
  14. 1
    0
      eslib/Payment-Common-common-ConsumeListView/index.js.map
  15. 175
    0
      eslib/Payment-Common-common-PayPlatformOptions/index.js
  16. 1
    0
      eslib/Payment-Common-common-PayPlatformOptions/index.js.map
  17. 59
    0
      eslib/Payment-Common-common-PriceOptions/index.js
  18. 1
    0
      eslib/Payment-Common-common-PriceOptions/index.js.map
  19. 81
    0
      eslib/Payment-Common-common-WaitPayInfoView/index.js
  20. 1
    0
      eslib/Payment-Common-common-WaitPayInfoView/index.js.map
  21. 8
    3
      eslib/Payment/index.js
  22. 1
    1
      eslib/Payment/index.js.map
  23. 2
    29
      eslib/_commonjsHelpers-aeb41076.js
  24. 1
    0
      eslib/_commonjsHelpers-aeb41076.js.map
  25. 7
    0
      eslib/_react-dom_commonjs-external-d3012e04.js
  26. 1
    0
      eslib/_react-dom_commonjs-external-d3012e04.js.map
  27. 2
    2
      eslib/index-7951fb2f.js
  28. 1
    1
      eslib/index-7951fb2f.js.map
  29. 0
    484
      eslib/index-80502ae7.js
  30. 0
    1
      eslib/index-80502ae7.js.map
  31. 9
    4
      eslib/index.js
  32. 1
    1
      eslib/index.js.map
  33. 29
    0
      eslib/style-inject.es-1f59c1d0.js
  34. 1
    0
      eslib/style-inject.es-1f59c1d0.js.map
  35. 0
    1
      eslib/style-inject.es-610f1f83.js.map
  36. 4
    3
      eslib/test-81795c27.js
  37. 1
    1
      eslib/test-81795c27.js.map
  38. 45
    0
      eslib/utils-82346768.js
  39. 1
    0
      eslib/utils-82346768.js.map
  40. 4
    3
      lib/Common/index.js
  41. 1
    1
      lib/Common/index.js.map
  42. 17697
    0
      lib/Draft-7ee7c163.js
  43. 1
    0
      lib/Draft-7ee7c163.js.map
  44. 29032
    0
      lib/Editor-BraftEditor/index.js
  45. 1
    0
      lib/Editor-BraftEditor/index.js.map
  46. 218
    0
      lib/Editor-RichTextEditor/index.js
  47. 1
    0
      lib/Editor-RichTextEditor/index.js.map
  48. 10260
    0
      lib/Editor-RichTextEditorForSlate/index.js
  49. 1
    0
      lib/Editor-RichTextEditorForSlate/index.js.map
  50. 16
    57155
      lib/Editor/index.js
  51. 1
    1
      lib/Editor/index.js.map
  52. 162
    0
      lib/Payment-Common-common-ConsumeListView/index.js
  53. 1
    0
      lib/Payment-Common-common-ConsumeListView/index.js.map
  54. 183
    0
      lib/Payment-Common-common-PayPlatformOptions/index.js
  55. 1
    0
      lib/Payment-Common-common-PayPlatformOptions/index.js.map
  56. 66
    0
      lib/Payment-Common-common-PriceOptions/index.js
  57. 1
    0
      lib/Payment-Common-common-PriceOptions/index.js.map
  58. 88
    0
      lib/Payment-Common-common-WaitPayInfoView/index.js
  59. 1
    0
      lib/Payment-Common-common-WaitPayInfoView/index.js.map
  60. 12
    7
      lib/Payment/index.js
  61. 1
    1
      lib/Payment/index.js.map
  62. 1
    29
      lib/_commonjsHelpers-4ed3570f.js
  63. 1
    0
      lib/_commonjsHelpers-4ed3570f.js.map
  64. 13
    0
      lib/_react-dom_commonjs-external-55867475.js
  65. 1
    0
      lib/_react-dom_commonjs-external-55867475.js.map
  66. 0
    492
      lib/index-88ef31fa.js
  67. 0
    1
      lib/index-88ef31fa.js.map
  68. 3
    3
      lib/index-c2424ad4.js
  69. 1
    1
      lib/index-c2424ad4.js.map
  70. 13
    8
      lib/index.js
  71. 1
    1
      lib/index.js.map
  72. 0
    1
      lib/style-inject.es-b93a8bdc.js.map
  73. 31
    0
      lib/style-inject.es-dcee06b6.js
  74. 1
    0
      lib/style-inject.es-dcee06b6.js.map
  75. 4
    3
      lib/test-029f205d.js
  76. 1
    1
      lib/test-029f205d.js.map
  77. 49
    0
      lib/utils-ed518bfc.js
  78. 1
    0
      lib/utils-ed518bfc.js.map
  79. 26
    3
      rollup.config.js
  80. 1
    2
      stats.html

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

@@ -1,5 +1,6 @@
1
-import '../style-inject.es-610f1f83.js';
1
+import '../_commonjsHelpers-aeb41076.js';
2 2
 import 'react';
3
-import '../index-b92ec402.js';
4
-export { T as Test } from '../test-b5c74301.js';
3
+import '../index-7951fb2f.js';
4
+import '../style-inject.es-1f59c1d0.js';
5
+export { T as Test } from '../test-81795c27.js';
5 6
 //# 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":";;;;"}

+ 17689
- 0
eslib/Draft-ec3417b2.js
File diff suppressed because it is too large
View File


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


+ 29025
- 0
eslib/Editor-BraftEditor/index.js
File diff suppressed because it is too large
View File


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


+ 211
- 0
eslib/Editor-RichTextEditor/index.js View File

@@ -0,0 +1,211 @@
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';
2
+import React from 'react';
3
+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
+import 'react-dom';
7
+
8
+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
+var styles = {"wrapper":"RichTextEditor_wrapper__3X3Yv","btnListWrapper":"RichTextEditor_btnListWrapper__vUaki","editorWrapper":"RichTextEditor_editorWrapper__3UFgF"};
10
+styleInject(css);
11
+
12
+// 自定义组件,用于超链接
13
+var Link = function Link(props) {
14
+  // 这里通过contentState来获取entity�,之后通过getData获取entity中包含的数据
15
+  var _props$contentState$g = props.contentState.getEntity(props.entityKey).getData(),
16
+      url = _props$contentState$g.url;
17
+
18
+  return React.createElement("a", {
19
+    href: url
20
+  }, props.children);
21
+}; // decorator,用于超链接
22
+
23
+
24
+var decorator = new Draft_4([{
25
+  strategy: function strategy(contentBlock, callback, contentState) {
26
+    // 这个方法接收2个函数作为参数,如果第一个参数的函数执行时�返回true,就会执行第二个参数函数,同时会�将匹配的�字符的起始位置和结束位置传递给第二个参数。
27
+    contentBlock.findEntityRanges(function (character) {
28
+      var entityKey = character.getEntity();
29
+      return entityKey !== null && contentState.getEntity(entityKey).getType() === 'LINK';
30
+    }, function () {
31
+      callback.apply(void 0, arguments);
32
+    });
33
+  },
34
+  component: Link
35
+}, {
36
+  strategy: function strategy(contentBlock, callback, contentState) {
37
+    contentBlock.findEntityRanges(function (character) {
38
+      var entityKey = character.getEntity();
39
+      return entityKey !== null && contentState.getEntity(entityKey).getType() === 'EMOJI';
40
+    }, function () {
41
+      callback.apply(void 0, arguments);
42
+    });
43
+  },
44
+  // component: (props: any) => (<span style={{ color: 'red' }}>[Emoji]</span>)
45
+  component: function component(props) {
46
+    return React.createElement("i", {
47
+      style: {
48
+        display: 'inline-block',
49
+        height: '18px',
50
+        width: '18px',
51
+        backgroundImage: "url(https://i.pinimg.com/originals/03/7e/79/037e79b2fb52127537be79110891ae3f.png)",
52
+        backgroundSize: '100% 100%',
53
+        color: 'transparent'
54
+      }
55
+    }, "e");
56
+  }
57
+}]);
58
+
59
+var RichTextEditor =
60
+/*#__PURE__*/
61
+function (_React$Component) {
62
+  _inherits(RichTextEditor, _React$Component);
63
+
64
+  function RichTextEditor(props) {
65
+    var _this;
66
+
67
+    _classCallCheck(this, RichTextEditor);
68
+
69
+    _this = _possibleConstructorReturn(this, _getPrototypeOf(RichTextEditor).call(this, props));
70
+
71
+    _defineProperty(_assertThisInitialized(_this), "onChange", void 0);
72
+
73
+    _this.state = {
74
+      editorState: Draft_3.createEmpty(decorator)
75
+    };
76
+
77
+    _this.onChange = function (editorState) {
78
+      return _this.setState({
79
+        editorState: editorState
80
+      });
81
+    };
82
+
83
+    _this.handleKeyCommand = _this.handleKeyCommand.bind(_assertThisInitialized(_this));
84
+    _this.defaultBlockStyleFn = _this.defaultBlockStyleFn.bind(_assertThisInitialized(_this));
85
+    return _this;
86
+  }
87
+
88
+  _createClass(RichTextEditor, [{
89
+    key: "handleKeyCommand",
90
+    value: function handleKeyCommand(command, editorState) {
91
+      var newState = Draft_15.handleKeyCommand(editorState, command);
92
+      console.log('command: ', command);
93
+      console.log('newState: ', newState);
94
+
95
+      if (newState) {
96
+        this.onChange(newState);
97
+        return "handled";
98
+      }
99
+
100
+      switch (command) {
101
+        case 'backspace':
102
+          var contentState = editorState.getCurrentContent();
103
+          var selectionState = editorState.getSelection();
104
+          var _ref = [selectionState.getStartOffset(), selectionState.getEndOffset()],
105
+              startOffset = _ref[0],
106
+              endOffset = _ref[1];
107
+
108
+          if (startOffset === endOffset) {
109
+            // 未选中状态
110
+            console.log(selectionState.getAnchorKey());
111
+          } // 选中状态
112
+
113
+
114
+          break;
115
+      }
116
+
117
+      return "not-handled";
118
+    }
119
+  }, {
120
+    key: "_onBoldClick",
121
+    value: function _onBoldClick() {
122
+      this.onChange(Draft_15.toggleInlineStyle(this.state.editorState, 'BOLD'));
123
+    }
124
+  }, {
125
+    key: "_onLinkClick",
126
+    value: function _onLinkClick() {
127
+      var editorState = this.state.editorState;
128
+      var contentState = editorState.getCurrentContent();
129
+      var selectionState = editorState.getSelection();
130
+      var contentStateWithEntity = contentState.createEntity('LINK', 'MUTABLE', {
131
+        url: 'http://www.zombo.com'
132
+      });
133
+      var entityKey = contentStateWithEntity.getLastCreatedEntityKey();
134
+      var contentStateWithLink = Draft_14.applyEntity(contentStateWithEntity, selectionState, entityKey);
135
+      var newEditorState = Draft_3.push(editorState, contentStateWithLink, 'apply-entity');
136
+      this.onChange(newEditorState);
137
+    }
138
+  }, {
139
+    key: "_onEmojiClick",
140
+    value: function _onEmojiClick(e, emojiCode) {
141
+      var editorState = this.state.editorState;
142
+      var contentState = editorState.getCurrentContent();
143
+      var selectionState = editorState.getSelection();
144
+      var EMOJIEntity = contentState.createEntity('EMOJI', 'IMMUTABLE', {
145
+        emojiCode: emojiCode
146
+      });
147
+      var entityKey = EMOJIEntity.getLastCreatedEntityKey();
148
+      var ncsWithEntity = Draft_14.insertText(contentState, selectionState, 'e', undefined, entityKey);
149
+      var newEditorState = Draft_3.push(editorState, ncsWithEntity, 'insert-characters'); // const newEditorState = AtomicBlockUtils.insertAtomicBlock(
150
+      //   editorState,
151
+      //   entityKey,
152
+      //   ' '
153
+      // );
154
+
155
+      this.onChange(newEditorState);
156
+    }
157
+  }, {
158
+    key: "_onCheckRange",
159
+    value: function _onCheckRange() {
160
+      console.log(this.state.editorState.getCurrentContent());
161
+      console.log(Draft_20(this.state.editorState.getCurrentContent()));
162
+    }
163
+  }, {
164
+    key: "defaultBlockStyleFn",
165
+    value: function defaultBlockStyleFn(contentBlock) {
166
+      var type = contentBlock.getType();
167
+      return "";
168
+    }
169
+  }, {
170
+    key: "defaultBlockRenderFn",
171
+    value: function defaultBlockRenderFn(contentBlock) {
172
+      var type = contentBlock.getType();
173
+      return contentBlock;
174
+    }
175
+  }, {
176
+    key: "render",
177
+    value: function render() {
178
+      var _this2 = this;
179
+
180
+      var editorState = this.state.editorState;
181
+      return React.createElement("div", {
182
+        className: styles.wrapper
183
+      }, React.createElement("div", {
184
+        className: styles.btnListWrapper
185
+      }, React.createElement("button", {
186
+        onClick: this._onBoldClick.bind(this)
187
+      }, "Bold"), React.createElement("button", {
188
+        onClick: this._onCheckRange.bind(this)
189
+      }, "Check"), React.createElement("button", {
190
+        onClick: this._onLinkClick.bind(this)
191
+      }, "Link"), React.createElement("button", {
192
+        onClick: function onClick(e) {
193
+          return _this2._onEmojiClick(e, '0011');
194
+        }
195
+      }, "Emoji")), React.createElement("div", {
196
+        className: styles.editorWrapper
197
+      }, React.createElement(Draft_1, {
198
+        editorState: editorState,
199
+        blockStyleFn: this.defaultBlockStyleFn,
200
+        blockRendererFn: this.defaultBlockRenderFn,
201
+        handleKeyCommand: this.handleKeyCommand,
202
+        onChange: this.onChange
203
+      })));
204
+    }
205
+  }]);
206
+
207
+  return RichTextEditor;
208
+}(React.Component);
209
+
210
+export default RichTextEditor;
211
+//# sourceMappingURL=index.js.map

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


+ 10253
- 0
eslib/Editor-RichTextEditorForSlate/index.js
File diff suppressed because it is too large
View File


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


+ 10
- 57150
eslib/Editor/index.js
File diff suppressed because it is too large
View File


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


+ 155
- 0
eslib/Payment-Common-common-ConsumeListView/index.js View File

@@ -0,0 +1,155 @@
1
+import { a as _inherits, b as _createClass, _ as _defineProperty, d as _classCallCheck, e as _possibleConstructorReturn, f as _getPrototypeOf } from '../_commonjsHelpers-aeb41076.js';
2
+import React, { Component } from 'react';
3
+import { c as classnames } from '../index-7951fb2f.js';
4
+import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
5
+import { a as addImageProcess } from '../utils-82346768.js';
6
+
7
+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
+var css = ".ConsumeListView_wrapper__2Tr0_ {\n  display: flex;\n  justify-content: center;\n}\n.ConsumeListView_wrapper__2Tr0_ .ConsumeListView_consumelist__2yoWt {\n  padding: 0;\n  margin: 0;\n  display: flex;\n  flex-wrap: wrap;\n  padding-top: 10px;\n}\n.ConsumeListView_wrapper__2Tr0_ .ConsumeListView_consumelist__2yoWt li {\n  list-style: none;\n}\n.ConsumeListView_wrapper__2Tr0_ .ConsumeListView_consumelist__2yoWt .ConsumeListView_consumeItem__2NKR7 {\n  margin: 0 6px 10px;\n  text-align: center;\n  position: relative;\n}\n.ConsumeListView_wrapper__2Tr0_ .ConsumeListView_consumelist__2yoWt .ConsumeListView_consumeItem__2NKR7 .ConsumeListView_kingdomIcon__3VUpq {\n  position: absolute;\n  width: 24px;\n  height: 22px;\n  left: -6px;\n  top: -12px;\n}\n.ConsumeListView_wrapper__2Tr0_ .ConsumeListView_consumelist__2yoWt .ConsumeListView_consumeItem__2NKR7 .ConsumeListView_avatar__1t0io {\n  margin: 0 auto 4px;\n  width: 36px;\n  height: 36px;\n  background-size: cover;\n  border-radius: 50%;\n}\n.ConsumeListView_wrapper__2Tr0_ .ConsumeListView_consumelist__2yoWt .ConsumeListView_consumeItem__2NKR7 .ConsumeListView_gray__3eaP8 {\n  color: #9b9b9b;\n  font-size: 12px;\n}\n.ConsumeListView_wrapper__2Tr0_ .ConsumeListView_consumelist__2yoWt .ConsumeListView_toggle__2GLGV {\n  margin: 0 6px 10px;\n  width: 36px;\n  height: 36px;\n  line-height: 36px;\n  background-color: #ececec;\n  border-radius: 50%;\n  color: #a8adb6;\n  cursor: pointer;\n  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAACv0lEQVRIS8WXTW8SURSGzzAYNSYCA7SCUEqBioLtohvjD9CN7ozG36AmXfsRafxYN9b+BqNx50r3GjddqEVRRgSRVr4GWmOsERjfOwEzVYa5lAokEwJzznnOe865d+4IxPFRVXVPrVY73Wq1TgmCMIffYbjZ2q4b+E/GfysWi+WZw+F4it+/zMIKvQwAszcajXnYXEIwl1kwdh8JVPC1bLVaF5FE3cjHEFytVs8hyH04jvMAu9gUkexlp9P5uJv/P2DABCi9hbJehUPPinAkpKL8d6H8BpJQ9fbbAjOooigP8H2BIyi3CaAPJUm6qIdvAwN6G0qvcUfswxDK7wB+vePyB9zu6aNdKK9ROioUn+/0XAOz6W02m6kBBolXe1EUxSibdg0MtQn09Sav9yB2UL0A1QmBbQ6VSmWNd50OAu2sc5fL5WVTfAYD9WTQgP34Y9DOClB7D05X+nHcBdslAf19jnKfNAr2cmWVDuzfR7HoFCFTUyaqR8lUhr7/2KITc/Gu9mjrC6a4iLtjRhHfvv9Ea1/L5JLsNBML94Qz6OukTBWlTt5Dbjp2JGgUtsTAW7i713DxqSql0jkqrJfIKdloNhbpCmfQV8k0VZUNOuwZo2gkQFBmFPanKVibRFxpOUefC0VyOmw0E4+QqCt7s8mgH0ipbdKEb5wiIUB7N0UD9yy13l/O5CmbXyfJfpBm49MkihbSoKuA1jdpcsJD4aDfdA5gUDIdrr+jZLIFyuQK5AD8+NEQvXknU63+jUKTPgoGvDxQ1gJtuPpeTkw1U8+mnPU2MuWngN/DBW0bLe14A8mj3x+zX7TS+ryGi6JrMtoGMrItk6VULpcTqPtQHhIQuuB2uxOjfSwy1SM5CHQmYCRHn/azcjSHvQ586Mdb/aIb+oFeD2eHQOxM87j6eoXBBrGMa2evMPoE/sdL22+mI4T0ou1LqAAAAABJRU5ErkJggg==);\n  background-position: center;\n}\n.ConsumeListView_wrapper__2Tr0_ .ConsumeListView_consumelist__2yoWt .ConsumeListView_toggle__2GLGV.ConsumeListView_expand__1D2BA {\n  transform: rotate(180deg);\n}\n";
10
+var styles = {"wrapper":"ConsumeListView_wrapper__2Tr0_","consumelist":"ConsumeListView_consumelist__2yoWt","consumeItem":"ConsumeListView_consumeItem__2NKR7","kingdomIcon":"ConsumeListView_kingdomIcon__3VUpq","avatar":"ConsumeListView_avatar__1t0io","gray":"ConsumeListView_gray__3eaP8","toggle":"ConsumeListView_toggle__2GLGV","expand":"ConsumeListView_expand__1D2BA"};
11
+styleInject(css);
12
+
13
+var DEFAULT_AVATAR = '//links-comment.oss-cn-beijing.aliyuncs.com/comment/20180820/Kgka4_oU1.jpeg';
14
+
15
+var ConsumeListView =
16
+/*#__PURE__*/
17
+function (_Component) {
18
+  _inherits(ConsumeListView, _Component);
19
+
20
+  function ConsumeListView() {
21
+    _classCallCheck(this, ConsumeListView);
22
+
23
+    return _possibleConstructorReturn(this, _getPrototypeOf(ConsumeListView).apply(this, arguments));
24
+  }
25
+
26
+  _createClass(ConsumeListView, [{
27
+    key: "renderConsumeItem",
28
+    value: function renderConsumeItem() {
29
+      var _this$props = this.props,
30
+          dataSource = _this$props.dataSource,
31
+          isToggle = _this$props.isToggle,
32
+          onConsumeItemClick = _this$props.onConsumeItemClick,
33
+          showLength = _this$props.showLength,
34
+          listLength = _this$props.listLength,
35
+          options = _this$props.options;
36
+      var kingdomWidth = options.kingdomWidth,
37
+          kingdomHeight = options.kingdomHeight,
38
+          kingdomPosition = options.kingdomPosition,
39
+          avatarSize = options.avatarSize,
40
+          avatarMarginLeftAndRight = options.avatarMarginLeftAndRight;
41
+      var renderData = dataSource;
42
+
43
+      if (!isToggle && listLength > showLength) {
44
+        renderData = dataSource.slice(0, showLength - 1);
45
+      }
46
+
47
+      return renderData.map(function (v, i) {
48
+        var kingdom = null;
49
+
50
+        if (i === 0) {
51
+          kingdom = React.createElement("img", {
52
+            className: styles.kingdomIcon,
53
+            src: img,
54
+            alt: "reward top user",
55
+            style: {
56
+              width: "".concat(kingdomWidth, "px"),
57
+              height: "".concat(kingdomHeight, "px"),
58
+              left: "".concat(kingdomPosition[0], "px"),
59
+              top: "".concat(kingdomPosition[1], "px")
60
+            }
61
+          });
62
+        }
63
+
64
+        return React.createElement("li", {
65
+          key: v.id,
66
+          className: styles.consumeItem,
67
+          style: {
68
+            margin: "0 ".concat(avatarMarginLeftAndRight, "px 10px")
69
+          }
70
+        }, kingdom, React.createElement("div", {
71
+          className: styles.avatar,
72
+          onClick: function onClick(e) {
73
+            return onConsumeItemClick(e, v);
74
+          },
75
+          style: {
76
+            backgroundImage: "url(".concat(addImageProcess(v.user_avatar || DEFAULT_AVATAR, {
77
+              small: true
78
+            }), ")"),
79
+            width: "".concat(avatarSize, "px"),
80
+            height: "".concat(avatarSize, "px")
81
+          }
82
+        }), React.createElement("span", {
83
+          className: styles.gray
84
+        }));
85
+      });
86
+    }
87
+  }, {
88
+    key: "renderToggleButton",
89
+    value: function renderToggleButton() {
90
+      var _this$props2 = this.props,
91
+          isToggle = _this$props2.isToggle,
92
+          onToggleChange = _this$props2.onToggleChange,
93
+          listLength = _this$props2.listLength,
94
+          showLength = _this$props2.showLength,
95
+          options = _this$props2.options;
96
+      var avatarSize = options.avatarSize,
97
+          avatarMarginLeftAndRight = options.avatarMarginLeftAndRight;
98
+
99
+      if (listLength <= showLength) {
100
+        return null;
101
+      }
102
+
103
+      return React.createElement("li", {
104
+        onClick: function onClick() {
105
+          return onToggleChange();
106
+        },
107
+        className: classnames(styles.toggle, _defineProperty({}, styles.expand, isToggle)),
108
+        style: {
109
+          width: "".concat(avatarSize, "px"),
110
+          height: "".concat(avatarSize, "px"),
111
+          lineHeight: "".concat(avatarSize, "px"),
112
+          margin: "0 ".concat(avatarMarginLeftAndRight, "px 10px")
113
+        }
114
+      });
115
+    }
116
+  }, {
117
+    key: "render",
118
+    value: function render() {
119
+      var _this$props3 = this.props,
120
+          showLength = _this$props3.showLength,
121
+          options = _this$props3.options;
122
+      var avatarSize = options.avatarSize,
123
+          avatarMarginLeftAndRight = options.avatarMarginLeftAndRight;
124
+      return React.createElement("div", {
125
+        className: styles.wrapper
126
+      }, React.createElement("ul", {
127
+        className: styles.consumelist,
128
+        style: {
129
+          width: "calc(".concat(avatarMarginLeftAndRight * 2 + avatarSize, "px * ").concat(showLength, ")")
130
+        }
131
+      }, this.renderConsumeItem(), this.renderToggleButton()));
132
+    }
133
+  }]);
134
+
135
+  return ConsumeListView;
136
+}(Component);
137
+
138
+_defineProperty(ConsumeListView, "defaultProps", {
139
+  isToggle: false,
140
+  onToggleChange: function onToggleChange() {},
141
+  onConsumeItemClick: function onConsumeItemClick() {},
142
+  dataSource: [],
143
+  listLength: 0,
144
+  showLength: 6,
145
+  options: {
146
+    avatarSize: 36,
147
+    avatarMarginLeftAndRight: 6,
148
+    kingdomWidth: 24,
149
+    kingdomHeight: 22,
150
+    kingdomPosition: [-6, -12]
151
+  }
152
+});
153
+
154
+export default ConsumeListView;
155
+//# sourceMappingURL=index.js.map

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


+ 175
- 0
eslib/Payment-Common-common-PayPlatformOptions/index.js
File diff suppressed because it is too large
View File


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


+ 59
- 0
eslib/Payment-Common-common-PriceOptions/index.js View File

@@ -0,0 +1,59 @@
1
+import { i as _slicedToArray, _ as _defineProperty } from '../_commonjsHelpers-aeb41076.js';
2
+import React, { useState } from 'react';
3
+import { c as classnames } from '../index-7951fb2f.js';
4
+import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
5
+import { f as formatMoney } from '../utils-82346768.js';
6
+
7
+var css = ".PriceOptions_options__2AGBn {\n  padding: 20px 50px;\n  border-bottom: 1px dashed #00000017;\n}\n.PriceOptions_options__2AGBn p {\n  font-size: 14px;\n  font-weight: 400;\n  color: #616a79;\n  margin-bottom: 20px;\n}\n.PriceOptions_options__2AGBn .PriceOptions_infoItem__1dYFN {\n  padding-right: 0;\n}\n.PriceOptions_options__2AGBn .PriceOptions_infoItem__1dYFN .PriceOptions_priceItem__2PLhM {\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__2AGBn .PriceOptions_infoItem__1dYFN .PriceOptions_priceItem__2PLhM.PriceOptions_active__rlHby {\n  background: rgba(255, 50, 102, 0.1);\n  border-radius: 4px;\n  border: 1px solid #ff3266;\n  color: #616a79;\n}\n.PriceOptions_options__2AGBn .PriceOptions_infoItem__1dYFN .PriceOptions_priceInput__1UYLy {\n  display: inline-block;\n  min-width: 70px;\n  width: auto;\n  margin: 6px;\n  text-align: center;\n}\n.PriceOptions_options__2AGBn .PriceOptions_infoItem__1dYFN 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__2AGBn .PriceOptions_infoItem__1dYFN .PriceOptions_rate__3hVeo {\n  margin-left: 10px;\n}\n.PriceOptions_options__2AGBn .PriceOptions_infoItem__1dYFN .PriceOptions_rate__3hVeo i {\n  margin-right: 5px;\n  color: #1790FF;\n}\n.PriceOptions_options__2AGBn.PriceOptions_small__2Vys4 {\n  padding: 0 0 12px 0;\n  border-bottom: none;\n}\n.PriceOptions_options__2AGBn.PriceOptions_small__2Vys4 p {\n  margin-bottom: 8px;\n}\n.PriceOptions_options__2AGBn.PriceOptions_small__2Vys4 .PriceOptions_infoItem__1dYFN {\n  text-align: center;\n}\n.PriceOptions_options__2AGBn.PriceOptions_small__2Vys4 .PriceOptions_infoItem__1dYFN .PriceOptions_priceItem__2PLhM {\n  border-radius: 6px;\n  height: 32px;\n  width: 72px;\n  margin: 0 0 12px 19px;\n}\n.PriceOptions_options__2AGBn.PriceOptions_small__2Vys4 .PriceOptions_infoItem__1dYFN .PriceOptions_priceItem__2PLhM:first-child {\n  margin: 0 0 12px 0px;\n}\n.PriceOptions_options__2AGBn.PriceOptions_small__2Vys4 .PriceOptions_infoItem__1dYFN .PriceOptions_priceInput__1UYLy {\n  display: block;\n  width: 254px;\n  border-radius: 6px;\n  height: 32px;\n}\n@media (max-width: 768px) {\n  .PriceOptions_options__2AGBn {\n    padding: 20px 20px;\n  }\n  .PriceOptions_options__2AGBn p {\n    font-size: 14px;\n    font-weight: 400;\n    color: #616a79;\n  }\n  .PriceOptions_options__2AGBn .PriceOptions_infoItem__1dYFN {\n    padding-right: 0;\n    display: flex;\n    flex-direction: column;\n    justify-content: center;\n  }\n  .PriceOptions_options__2AGBn .PriceOptions_infoItem__1dYFN .PriceOptions_priceBtn__YfsBe {\n    display: flex;\n    justify-content: space-between;\n  }\n  .PriceOptions_options__2AGBn .PriceOptions_infoItem__1dYFN .PriceOptions_priceItem__2PLhM {\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__2AGBn .PriceOptions_infoItem__1dYFN .PriceOptions_priceItem__2PLhM.PriceOptions_active__rlHby {\n    background-color: #fff;\n    color: #FF3266FF;\n    border-radius: 4px;\n    border: 1px solid #ff3266;\n  }\n  .PriceOptions_options__2AGBn .PriceOptions_infoItem__1dYFN .PriceOptions_priceInput__1UYLy {\n    border-radius: 6px;\n    height: 36px;\n    width: auto;\n  }\n}\n";
8
+var styles = {"options":"PriceOptions_options__2AGBn","infoItem":"PriceOptions_infoItem__1dYFN","priceItem":"PriceOptions_priceItem__2PLhM","active":"PriceOptions_active__rlHby","priceInput":"PriceOptions_priceInput__1UYLy","rate":"PriceOptions_rate__3hVeo","small":"PriceOptions_small__2Vys4","priceBtn":"PriceOptions_priceBtn__YfsBe"};
9
+styleInject(css);
10
+
11
+var FormattedMessage = function FormattedMessage(_ref) {
12
+  var id = _ref.id;
13
+  return id;
14
+};
15
+
16
+var PriceOptions = function PriceOptions(_ref2) {
17
+  var price = _ref2.price,
18
+      onPriceChange = _ref2.onPriceChange,
19
+      _ref2$size = _ref2.size,
20
+      _ref2$focusScroll = _ref2.focusScroll,
21
+      _ref2$withTitle = _ref2.withTitle,
22
+      withTitle = _ref2$withTitle === void 0 ? true : _ref2$withTitle,
23
+      inputRef = _ref2.inputRef;
24
+  var defaultOptions = [100, 600, 800]; // 控制是否为其他金额输入情况
25
+
26
+  var _useState = useState(false),
27
+      _useState2 = _slicedToArray(_useState, 2),
28
+      inputStatus = _useState2[0],
29
+      setInputStatus = _useState2[1];
30
+
31
+  return React.createElement("div", {
32
+    className: classnames(styles.options)
33
+  }, withTitle ? React.createElement("p", null, React.createElement(FormattedMessage, {
34
+    id: "pay.price.select.text"
35
+  })) : null, React.createElement("div", {
36
+    className: styles.infoItem,
37
+    style: {
38
+      marginBottom: "-12px"
39
+    }
40
+  }, React.createElement("span", {
41
+    className: styles.priceBtn
42
+  }, defaultOptions.map(function (item) {
43
+    var _classnames;
44
+
45
+    return React.createElement("span", {
46
+      className: classnames((_classnames = {}, _defineProperty(_classnames, styles.priceItem, true), _defineProperty(_classnames, styles.active, price === item && !inputStatus), _classnames)),
47
+      key: item,
48
+      onClick: function onClick() {
49
+        onPriceChange(item);
50
+        setInputStatus(false);
51
+      }
52
+    }, React.createElement(FormattedMessage, {
53
+      id: "".concat(formatMoney(item / 100, 0), "\xA5")
54
+    }));
55
+  }))));
56
+};
57
+
58
+export default PriceOptions;
59
+//# sourceMappingURL=index.js.map

+ 1
- 0
eslib/Payment-Common-common-PriceOptions/index.js.map View File

@@ -0,0 +1 @@
1
+{"version":3,"file":"index.js","sources":["../../src/components/Payment/Common/PriceOptions/index.tsx"],"sourcesContent":["import React, { useState } from \"react\";\r\nimport classnames from \"classnames\";\r\nimport { formatMoney } from \"../../Utils/utils\";\r\n\r\nimport styles from \"./PriceOptions.less\";\r\n\r\nconst FormattedMessage = ({ id }: any) => id;\r\n\r\ninterface Props {\r\n  price: number;\r\n  onPriceChange: (v: number) => void;\r\n  size: \"small\" | \"normal\" | \"large\";\r\n  focusScroll: boolean;\r\n  withTitle: boolean;\r\n  inputRef: React.RefObject<any>;\r\n}\r\n\r\nconst PriceOptions = ({\r\n  price,\r\n  onPriceChange,\r\n  size = \"normal\",\r\n  focusScroll = true,\r\n  withTitle = true,\r\n  inputRef\r\n}: Props) => {\r\n  const defaultOptions = [100, 600, 800];\r\n  // 控制是否为其他金额输入情况\r\n  const [inputStatus, setInputStatus] = useState(false);\r\n\r\n  return (\r\n    <div\r\n      className={classnames(styles.options)}\r\n    >\r\n      {withTitle ? (\r\n        <p>\r\n          <FormattedMessage id=\"pay.price.select.text\" />\r\n        </p>\r\n      ) : null}\r\n      <div className={styles.infoItem} style={{ marginBottom: \"-12px\" }}>\r\n        <span className={styles.priceBtn}>\r\n          {defaultOptions.map(item => (\r\n            <span\r\n              className={classnames({\r\n                [styles.priceItem]: true,\r\n                [styles.active]: price === item && !inputStatus\r\n              })}\r\n              key={item}\r\n              onClick={() => {\r\n                onPriceChange(item);\r\n                setInputStatus(false);\r\n              }}\r\n            >\r\n              <FormattedMessage id={`${formatMoney(item/100, 0)}¥`} />\r\n            </span>\r\n          ))}\r\n        </span>\r\n        {/* <Input\r\n          ref={inputRef}\r\n          onMouseEnter={() => {\r\n            if (inputStatus && inputRef && inputRef.current) {\r\n              inputRef.current.focus();\r\n              inputRef.current.select();\r\n            }\r\n          }}\r\n          suffix=\"¥\"\r\n          className={styles.priceInput}\r\n          value={inputStatus ? price / 100 || \"\" : \"\"}\r\n          placeholder=\"Others\"\r\n          onChange={e => {\r\n            const n = +e.target.value;\r\n            if (Number.isNaN(n)) {\r\n              return;\r\n            }\r\n            // 测试暂时改成1分\r\n            onPriceChange(n * 100);\r\n          }}\r\n          onClick={e => {\r\n            onPriceChange(0);\r\n            setInputStatus(true);\r\n          }}\r\n          onFocus={e => {\r\n            if (focusScroll) {\r\n              e.target.scrollIntoView();\r\n            }\r\n          }}\r\n        /> */}\r\n      </div>\r\n    </div>\r\n  );\r\n};\r\n\r\nexport default PriceOptions;\r\n"],"names":["FormattedMessage","id","PriceOptions","price","onPriceChange","size","focusScroll","withTitle","inputRef","defaultOptions","useState","inputStatus","setInputStatus","classnames","styles","options","infoItem","marginBottom","priceBtn","map","item","priceItem","active","formatMoney"],"mappings":";;;;;;;;;;AAMA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAmB;MAAGC,EAAH,QAAGA,EAAH;SAAiBA,EAAjB;CAAzB;;AAWA,IAAMC,YAAY,GAAG,SAAfA,YAAe,QAOR;MANXC,KAMW,SANXA,KAMW;MALXC,aAKW,SALXA,aAKW;yBAJXC,IAIW;MAJXA,0BACAC,WAGW;MAHXA,wBACAC,SAEW;MAFXA,SAEW,gCAFC,IAED;MADXC,QACW,SADXA,QACW;MACLC,cAAc,GAAG,CAAC,GAAD,EAAM,GAAN,EAAW,GAAX,CAAvB,CADW;;kBAG2BC,QAAQ,CAAC,KAAD,CAHnC;;MAGJC,WAHI;MAGSC,cAHT;;SAMT;IACE,SAAS,EAAEC,UAAU,CAACC,MAAM,CAACC,OAAR;KAEpBR,SAAS,GACR,+BACE,oBAAC,gBAAD;IAAkB,EAAE,EAAC;IADvB,CADQ,GAIN,IAPN,EAQE;IAAK,SAAS,EAAEO,MAAM,CAACE,QAAvB;IAAiC,KAAK,EAAE;MAAEC,YAAY,EAAE;;KACtD;IAAM,SAAS,EAAEH,MAAM,CAACI;KACrBT,cAAc,CAACU,GAAf,CAAmB,UAAAC,IAAI;;;WACtB;MACE,SAAS,EAAEP,UAAU,iDAClBC,MAAM,CAACO,SADW,EACC,IADD,gCAElBP,MAAM,CAACQ,MAFW,EAEFnB,KAAK,KAAKiB,IAAV,IAAkB,CAACT,WAFjB,gBADvB;MAKE,GAAG,EAAES,IALP;MAME,OAAO,EAAE,mBAAM;QACbhB,aAAa,CAACgB,IAAD,CAAb;QACAR,cAAc,CAAC,KAAD,CAAd;;OAGF,oBAAC,gBAAD;MAAkB,EAAE,YAAKW,WAAW,CAACH,IAAI,GAAC,GAAN,EAAW,CAAX,CAAhB;MAXtB,CADsB;GAAvB,CADH,CADF,CARF,CADF;CAZF;;;;"}

+ 81
- 0
eslib/Payment-Common-common-WaitPayInfoView/index.js View File

@@ -0,0 +1,81 @@
1
+import { a as _inherits, b as _createClass, _ as _defineProperty, d as _classCallCheck, e as _possibleConstructorReturn, f as _getPrototypeOf } from '../_commonjsHelpers-aeb41076.js';
2
+import React, { Component } from 'react';
3
+import { c as classnames } from '../index-7951fb2f.js';
4
+import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
5
+
6
+var css = ".WaitPayInfoView_waitingContainer__2fyww {\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n}\n";
7
+var styles = {"waitingContainer":"WaitPayInfoView_waitingContainer__2fyww"};
8
+styleInject(css);
9
+
10
+const img = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgd2lkdGg9IjQ4cHgiIGhlaWdodD0iNDNweCIgdmlld0JveD0iMCAwIDQ4IDQzIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPg0KICAgIDwhLS0gR2VuZXJhdG9yOiBTa2V0Y2ggNTAuMiAoNTUwNDcpIC0gaHR0cDovL3d3dy5ib2hlbWlhbmNvZGluZy5jb20vc2tldGNoIC0tPg0KICAgIDx0aXRsZT5rY3hxX3BvcG92ZXJzX2ljb25fdGFuaGFvPC90aXRsZT4NCiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4NCiAgICA8ZGVmcz48L2RlZnM+DQogICAgPGcgaWQ9IlBhZ2UtMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+DQogICAgICAgIDxnIGlkPSLlj6blrqLnvZFf55u05pKt6K++X+ivvueoi+S7i+e7jeivpuaDhV/otK3kubDmj5DnpLrlvLnnqpciIHRyYW5zZm9ybT0idHJhbnNsYXRlKC05MzYuMDAwMDAwLCAtMTkwLjAwMDAwMCkiIGZpbGwtcnVsZT0ibm9uemVybyI+DQogICAgICAgICAgICA8ZyBpZD0iR3JvdXAtMjIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDY5MC4wMDAwMDAsIDExMC4wMDAwMDApIj4NCiAgICAgICAgICAgICAgICA8ZyBpZD0ia2N4cV9wb3BvdmVyc19pY29uX3RhbmhhbyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjQ2LjAwMDAwMCwgODAuMDAwMDAwKSI+DQogICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik00OCwyMS41IEM0OCwzMy4zNzM2NjI2IDM4LjM2NDU3NTYsNDMgMjYuNDc5NzA0OCw0MyBDMjEuMTMwNjI3Myw0MyAxNy4wMzkxMTQ0LDQyLjE1MDYxNzMgMTMuMjg0MTMyOCwzOC45MzAwNDEyIEMxMS44MTQwMjIxLDM3LjY3MzY2MjYgMS43MDAzNjksNDMuMjEyMzQ1NyAwLjE3NzEyMTc3MSwzOS4yODM5NTA2IEMtMS4wNjI3MzA2MywzNi4wOTg3NjU0IDUuOTUxMjkxNTEsMjkuMjUwNjE3MyA1LjMxMzY1MzE0LDI3LjA3NDA3NDEgQzQuNzY0NTc1NjUsMjUuMTgwNjU4NCA0Ljk1OTQwOTU5LDIzLjU3MDM3MDQgNC45NTk0MDk1OSwyMS41IEM0Ljk1OTQwOTU5LDkuNjI2MzM3NDUgMTQuNTk0ODMzOSwwIDI2LjQ3OTcwNDgsMCBDMzguMzY0NTc1NiwwIDQ4LDkuNjI2MzM3NDUgNDgsMjEuNSBaIiBpZD0iU2hhcGUiIGZpbGw9IiMxNzkwRkYiPjwvcGF0aD4NCiAgICAgICAgICAgICAgICAgICAgPGcgaWQ9Ikdyb3VwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyMy44NDg3MDgsIDguMTkzNDE2KSIgZmlsbD0iI0ZGRkZGRiI+DQogICAgICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMi41LDI3LjQ5NzEwOTggQzEuMTMyMzUyOTQsMjcuNDk3MTA5OCAwLDI2LjM3OTQ2MjggMCwyNC45OTcxMDk4IEMwLDIzLjYxNDc1NjkgMS4xMzIzNTI5NCwyMi40OTcxMDk4IDIuNSwyMi40OTcxMDk4IEMzLjg2NzY0NzA2LDIyLjQ5NzEwOTggNSwyMy42MTQ3NTY5IDUsMjQuOTk3MTA5OCBDNSwyNi4zNzk0NjI4IDMuODY3NjQ3MDYsMjcuNDk3MTA5OCAyLjUsMjcuNDk3MTA5OCBaIE0yLjUsMTkuNDIxOTY1MyBDMS4xMzIzNTI5NCwxOS40MjE5NjUzIDAsMTguMTkxOTA3NSAwLDE2LjY3MDUyMDIgTDAsMi43NTE0NDUwOSBDMCwxLjI0NjI0Mjc3IDEuMTMyMzUyOTQsMCAyLjUsMCBDMy44Njc2NDcwNiwwIDUsMS4yMzAwNTc4IDUsMi43NTE0NDUwOSBMNSwxNi42NzA1MjAyIEM1LDE4LjE5MTkwNzUgMy44Njc2NDcwNiwxOS40MjE5NjUzIDIuNSwxOS40MjE5NjUzIFoiIGlkPSJTaGFwZSI+PC9wYXRoPg0KICAgICAgICAgICAgICAgICAgICA8L2c+DQogICAgICAgICAgICAgICAgPC9nPg0KICAgICAgICAgICAgPC9nPg0KICAgICAgICA8L2c+DQogICAgPC9nPg0KPC9zdmc+';
11
+
12
+var Button = function Button() {
13
+  for (var _len = arguments.length, props = new Array(_len), _key = 0; _key < _len; _key++) {
14
+    props[_key] = arguments[_key];
15
+  }
16
+
17
+  return React.createElement("button", props, "button");
18
+};
19
+
20
+var WaitPayInfoView =
21
+/*#__PURE__*/
22
+function (_Component) {
23
+  _inherits(WaitPayInfoView, _Component);
24
+
25
+  function WaitPayInfoView() {
26
+    _classCallCheck(this, WaitPayInfoView);
27
+
28
+    return _possibleConstructorReturn(this, _getPrototypeOf(WaitPayInfoView).apply(this, arguments));
29
+  }
30
+
31
+  _createClass(WaitPayInfoView, [{
32
+    key: "render",
33
+    value: function render() {
34
+      var _this$props = this.props,
35
+          onClickPayed = _this$props.onClickPayed,
36
+          onClickProblem = _this$props.onClickProblem;
37
+      return React.createElement("div", {
38
+        className: styles.waitingContainer
39
+      }, React.createElement("div", {
40
+        className: styles.infoIconImgContainer
41
+      }, React.createElement("img", {
42
+        src: img,
43
+        alt: "info label icon"
44
+      })), React.createElement("div", null, React.createElement("div", {
45
+        className: styles.pay_text
46
+      }, "live.course_info.pay.notification"), React.createElement("div", {
47
+        className: styles.btn_row
48
+      }, React.createElement(Button, {
49
+        className: classnames(styles.pay_btn, styles.btn_default),
50
+        size: "small",
51
+        onClick: function onClick() {
52
+          onClickPayed && onClickPayed();
53
+        }
54
+      }, "live.course_info.pay.payed"), React.createElement(Button, {
55
+        className: styles.btn_default,
56
+        size: "small",
57
+        style: {
58
+          marginLeft: '16px'
59
+        },
60
+        onClick: function onClick() {
61
+          onClickProblem && onClickProblem();
62
+        }
63
+      }, "live.course_info.pay.help"))));
64
+    }
65
+  }]);
66
+
67
+  return WaitPayInfoView;
68
+}(Component);
69
+
70
+_defineProperty(WaitPayInfoView, "defaultProps", {
71
+  onClickPayed: function onClickPayed() {
72
+    console.log("onClickPayed");
73
+  },
74
+  onClickProblem: function onClickProblem() {
75
+    console.log("onClickProblem");
76
+  }
77
+});
78
+
79
+export default WaitPayInfoView;
80
+export { WaitPayInfoView };
81
+//# sourceMappingURL=index.js.map

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


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

@@ -1,5 +1,10 @@
1
-import '../style-inject.es-610f1f83.js';
1
+import '../_commonjsHelpers-aeb41076.js';
2 2
 import 'react';
3
-import '../index-b92ec402.js';
4
-export { C as ConsumeListView, P as PayPlatformOptions, a as PriceOptions, W as WaitPayInfoView } from '../index-80502ae7.js';
3
+import '../index-7951fb2f.js';
4
+import '../style-inject.es-1f59c1d0.js';
5
+import '../utils-82346768.js';
6
+export { default as ConsumeListView } from '../Payment-Common-common-ConsumeListView/index.js';
7
+export { default as PayPlatformOptions } from '../Payment-Common-common-PayPlatformOptions/index.js';
8
+export { default as PriceOptions } from '../Payment-Common-common-PriceOptions/index.js';
9
+export { default as WaitPayInfoView } from '../Payment-Common-common-WaitPayInfoView/index.js';
5 10
 //# 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":";;;;;;;;"}

eslib/style-inject.es-610f1f83.js → eslib/_commonjsHelpers-aeb41076.js View File

@@ -186,32 +186,5 @@ function createCommonjsModule(fn, module) {
186 186
 	return module = { exports: {} }, fn(module, module.exports), module.exports;
187 187
 }
188 188
 
189
-function styleInject(css, ref) {
190
-  if ( ref === void 0 ) ref = {};
191
-  var insertAt = ref.insertAt;
192
-
193
-  if (!css || typeof document === 'undefined') { return; }
194
-
195
-  var head = document.head || document.getElementsByTagName('head')[0];
196
-  var style = document.createElement('style');
197
-  style.type = 'text/css';
198
-
199
-  if (insertAt === 'top') {
200
-    if (head.firstChild) {
201
-      head.insertBefore(style, head.firstChild);
202
-    } else {
203
-      head.appendChild(style);
204
-    }
205
-  } else {
206
-    head.appendChild(style);
207
-  }
208
-
209
-  if (style.styleSheet) {
210
-    style.styleSheet.cssText = css;
211
-  } else {
212
-    style.appendChild(document.createTextNode(css));
213
-  }
214
-}
215
-
216
-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, styleInject as s, unwrapExports as u };
217
-//# sourceMappingURL=style-inject.es-610f1f83.js.map
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

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

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

+ 7
- 0
eslib/_react-dom_commonjs-external-d3012e04.js View File

@@ -0,0 +1,7 @@
1
+import React from 'react';
2
+import reactDom from 'react-dom';
3
+
4
+
5
+
6
+export { React as R, reactDom as r };
7
+//# sourceMappingURL=_react-dom_commonjs-external-d3012e04.js.map

+ 1
- 0
eslib/_react-dom_commonjs-external-d3012e04.js.map View File

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

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

@@ -1,4 +1,4 @@
1
-import { c as createCommonjsModule } from './style-inject.es-610f1f83.js';
1
+import { c as createCommonjsModule } from './_commonjsHelpers-aeb41076.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-b92ec402.js.map
53
+//# sourceMappingURL=index-7951fb2f.js.map

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

@@ -1 +1 @@
1
-{"version":3,"file":"index-b92ec402.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-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;;;;;"}

+ 0
- 484
eslib/index-80502ae7.js
File diff suppressed because it is too large
View File


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


+ 9
- 4
eslib/index.js View File

@@ -1,8 +1,13 @@
1
-import './style-inject.es-610f1f83.js';
1
+import './_commonjsHelpers-aeb41076.js';
2 2
 import 'react';
3
-import './index-b92ec402.js';
4
-import './test-b5c74301.js';
5
-export { C as ConsumeListView, P as PayPlatformOptions, a as PriceOptions, W as WaitPayInfoView } from './index-80502ae7.js';
3
+import './index-7951fb2f.js';
4
+import './style-inject.es-1f59c1d0.js';
5
+import './test-81795c27.js';
6
+import './utils-82346768.js';
7
+export { default as ConsumeListView } from './Payment-Common-common-ConsumeListView/index.js';
8
+export { default as PayPlatformOptions } from './Payment-Common-common-PayPlatformOptions/index.js';
9
+export { default as PriceOptions } from './Payment-Common-common-PriceOptions/index.js';
10
+export { default as WaitPayInfoView } from './Payment-Common-common-WaitPayInfoView/index.js';
6 11
 
7 12
 // type TransmitImgTxtData = {
8 13
 //   user_id?: string|number;

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


+ 29
- 0
eslib/style-inject.es-1f59c1d0.js View File

@@ -0,0 +1,29 @@
1
+function styleInject(css, ref) {
2
+  if ( ref === void 0 ) ref = {};
3
+  var insertAt = ref.insertAt;
4
+
5
+  if (!css || typeof document === 'undefined') { return; }
6
+
7
+  var head = document.head || document.getElementsByTagName('head')[0];
8
+  var style = document.createElement('style');
9
+  style.type = 'text/css';
10
+
11
+  if (insertAt === 'top') {
12
+    if (head.firstChild) {
13
+      head.insertBefore(style, head.firstChild);
14
+    } else {
15
+      head.appendChild(style);
16
+    }
17
+  } else {
18
+    head.appendChild(style);
19
+  }
20
+
21
+  if (style.styleSheet) {
22
+    style.styleSheet.cssText = css;
23
+  } else {
24
+    style.appendChild(document.createTextNode(css));
25
+  }
26
+}
27
+
28
+export { styleInject as s };
29
+//# sourceMappingURL=style-inject.es-1f59c1d0.js.map

+ 1
- 0
eslib/style-inject.es-1f59c1d0.js.map View File

@@ -0,0 +1 @@
1
+{"version":3,"file":"style-inject.es-1f59c1d0.js","sources":["../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\n  if ( ref === void 0 ) ref = {};\n  var insertAt = ref.insertAt;\n\n  if (!css || typeof document === 'undefined') { return; }\n\n  var head = document.head || document.getElementsByTagName('head')[0];\n  var style = document.createElement('style');\n  style.type = 'text/css';\n\n  if (insertAt === 'top') {\n    if (head.firstChild) {\n      head.insertBefore(style, head.firstChild);\n    } else {\n      head.appendChild(style);\n    }\n  } else {\n    head.appendChild(style);\n  }\n\n  if (style.styleSheet) {\n    style.styleSheet.cssText = css;\n  } else {\n    style.appendChild(document.createTextNode(css));\n  }\n}\n\nexport default styleInject;\n"],"names":[],"mappings":"AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;EAC7B,KAAK,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;EAC/B,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;;EAE5B,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO,EAAE;;EAExD,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;EACrE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;EAC5C,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;;EAExB,IAAI,QAAQ,KAAK,KAAK,EAAE;IACtB,IAAI,IAAI,CAAC,UAAU,EAAE;MACnB,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;KAC3C,MAAM;MACL,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;KACzB;GACF,MAAM;IACL,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;GACzB;;EAED,IAAI,KAAK,CAAC,UAAU,EAAE;IACpB,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG,CAAC;GAChC,MAAM;IACL,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;GACjD;CACF;;;;"}

+ 0
- 1
eslib/style-inject.es-610f1f83.js.map View File

@@ -1 +0,0 @@
1
-{"version":3,"file":"style-inject.es-610f1f83.js","sources":["../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\n  if ( ref === void 0 ) ref = {};\n  var insertAt = ref.insertAt;\n\n  if (!css || typeof document === 'undefined') { return; }\n\n  var head = document.head || document.getElementsByTagName('head')[0];\n  var style = document.createElement('style');\n  style.type = 'text/css';\n\n  if (insertAt === 'top') {\n    if (head.firstChild) {\n      head.insertBefore(style, head.firstChild);\n    } else {\n      head.appendChild(style);\n    }\n  } else {\n    head.appendChild(style);\n  }\n\n  if (style.styleSheet) {\n    style.styleSheet.cssText = css;\n  } else {\n    style.appendChild(document.createTextNode(css));\n  }\n}\n\nexport default styleInject;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;EAC7B,KAAK,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;EAC/B,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;;EAE5B,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO,EAAE;;EAExD,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;EACrE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;EAC5C,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;;EAExB,IAAI,QAAQ,KAAK,KAAK,EAAE;IACtB,IAAI,IAAI,CAAC,UAAU,EAAE;MACnB,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;KAC3C,MAAM;MACL,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;KACzB;GACF,MAAM;IACL,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;GACzB;;EAED,IAAI,KAAK,CAAC,UAAU,EAAE;IACpB,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG,CAAC;GAChC,MAAM;IACL,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;GACjD;CACF;;;;"}

eslib/test-b5c74301.js → eslib/test-81795c27.js View File

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

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


+ 45
- 0
eslib/utils-82346768.js View File

@@ -0,0 +1,45 @@
1
+import { _ as _defineProperty } from './_commonjsHelpers-aeb41076.js';
2
+
3
+var IMAGE_PROCESS = '?x-oss-process=image/resize,h_350';
4
+var IMAGE_PROCESS_SMALL = '?x-oss-process=image/resize,h_100';
5
+var IMAGE_PROCESS_LARGE = '?x-oss-process=image/resize,h_500';
6
+function addImageProcess(url) {
7
+  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
8
+    width: '36px',
9
+    height: '36px'
10
+  };
11
+
12
+  // 防止重复添加导致的url不正确
13
+  if (url && url.indexOf('x-oss-process') > -1) {
14
+    return url;
15
+  }
16
+
17
+  if (options.small) {
18
+    return url + IMAGE_PROCESS_SMALL;
19
+  }
20
+
21
+  if (options.large) {
22
+    return url + IMAGE_PROCESS_LARGE;
23
+  }
24
+
25
+  if (options.custom) {
26
+    return "".concat(url, "?x-oss-process=image/resize,limit_0,m_fill,w_").concat(options.width, ",h_").concat(options.height);
27
+  }
28
+
29
+  return url + IMAGE_PROCESS;
30
+}
31
+function formatMoney(input) {
32
+  var fuzz = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
33
+
34
+  if (isNaN(+input)) {
35
+    return input;
36
+  }
37
+
38
+  return (+input).toFixed(fuzz);
39
+}
40
+function exportStyleSizeClass(styles, size) {
41
+  return _defineProperty({}, styles[size], true);
42
+}
43
+
44
+export { addImageProcess as a, exportStyleSizeClass as e, formatMoney as f };
45
+//# sourceMappingURL=utils-82346768.js.map

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

@@ -0,0 +1 @@
1
+{"version":3,"file":"utils-82346768.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","formatMoney","input","fuzz","isNaN","toFixed","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,AAAO,SAASY,WAAT,CAAqBC,KAArB,EAA2C;MAAVC,IAAU,uEAAH,CAAG;;MAC5CC,KAAK,CAAC,CAACF,KAAF,CAAT,EAAmB;WACVA,KAAP;;;SAEK,CAAC,CAACA,KAAF,EAASG,OAAT,CAAiBF,IAAjB,CAAP;;AAKF,AAAO,SAASG,oBAAT,CAA8BC,MAA9B,EAA2CC,IAA3C,EAA4D;6BAE9DD,MAAM,CAACC,IAAD,CADT,EACkB,IADlB;;;;;"}

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

@@ -2,10 +2,11 @@
2 2
 
3 3
 Object.defineProperty(exports, '__esModule', { value: true });
4 4
 
5
-require('../style-inject.es-b93a8bdc.js');
5
+require('../_commonjsHelpers-4ed3570f.js');
6 6
 require('react');
7
-require('../index-cb8e892c.js');
8
-var test = require('../test-609dd691.js');
7
+require('../index-c2424ad4.js');
8
+require('../style-inject.es-dcee06b6.js');
9
+var test = require('../test-029f205d.js');
9 10
 
10 11
 
11 12
 

+ 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":";;;;;;;;;;;;"}

+ 17697
- 0
lib/Draft-7ee7c163.js
File diff suppressed because it is too large
View File


+ 1
- 0
lib/Draft-7ee7c163.js.map
File diff suppressed because it is too large
View File


+ 29032
- 0
lib/Editor-BraftEditor/index.js
File diff suppressed because it is too large
View File


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


+ 218
- 0
lib/Editor-RichTextEditor/index.js View File

@@ -0,0 +1,218 @@
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 _commonjsHelpers = require('../_commonjsHelpers-4ed3570f.js');
8
+var React = require('react');
9
+var React__default = _interopDefault(React);
10
+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
+require('react-dom');
14
+
15
+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
+var styles = {"wrapper":"RichTextEditor_wrapper__3X3Yv","btnListWrapper":"RichTextEditor_btnListWrapper__vUaki","editorWrapper":"RichTextEditor_editorWrapper__3UFgF"};
17
+styleInject_es.styleInject(css);
18
+
19
+// 自定义组件,用于超链接
20
+var Link = function Link(props) {
21
+  // 这里通过contentState来获取entity�,之后通过getData获取entity中包含的数据
22
+  var _props$contentState$g = props.contentState.getEntity(props.entityKey).getData(),
23
+      url = _props$contentState$g.url;
24
+
25
+  return React__default.createElement("a", {
26
+    href: url
27
+  }, props.children);
28
+}; // decorator,用于超链接
29
+
30
+
31
+var decorator = new Draft.Draft_4([{
32
+  strategy: function strategy(contentBlock, callback, contentState) {
33
+    // 这个方法接收2个函数作为参数,如果第一个参数的函数执行时�返回true,就会执行第二个参数函数,同时会�将匹配的�字符的起始位置和结束位置传递给第二个参数。
34
+    contentBlock.findEntityRanges(function (character) {
35
+      var entityKey = character.getEntity();
36
+      return entityKey !== null && contentState.getEntity(entityKey).getType() === 'LINK';
37
+    }, function () {
38
+      callback.apply(void 0, arguments);
39
+    });
40
+  },
41
+  component: Link
42
+}, {
43
+  strategy: function strategy(contentBlock, callback, contentState) {
44
+    contentBlock.findEntityRanges(function (character) {
45
+      var entityKey = character.getEntity();
46
+      return entityKey !== null && contentState.getEntity(entityKey).getType() === 'EMOJI';
47
+    }, function () {
48
+      callback.apply(void 0, arguments);
49
+    });
50
+  },
51
+  // component: (props: any) => (<span style={{ color: 'red' }}>[Emoji]</span>)
52
+  component: function component(props) {
53
+    return React__default.createElement("i", {
54
+      style: {
55
+        display: 'inline-block',
56
+        height: '18px',
57
+        width: '18px',
58
+        backgroundImage: "url(https://i.pinimg.com/originals/03/7e/79/037e79b2fb52127537be79110891ae3f.png)",
59
+        backgroundSize: '100% 100%',
60
+        color: 'transparent'
61
+      }
62
+    }, "e");
63
+  }
64
+}]);
65
+
66
+var RichTextEditor =
67
+/*#__PURE__*/
68
+function (_React$Component) {
69
+  _commonjsHelpers._inherits(RichTextEditor, _React$Component);
70
+
71
+  function RichTextEditor(props) {
72
+    var _this;
73
+
74
+    _commonjsHelpers._classCallCheck(this, RichTextEditor);
75
+
76
+    _this = _commonjsHelpers._possibleConstructorReturn(this, _commonjsHelpers._getPrototypeOf(RichTextEditor).call(this, props));
77
+
78
+    _commonjsHelpers._defineProperty(_commonjsHelpers._assertThisInitialized(_this), "onChange", void 0);
79
+
80
+    _this.state = {
81
+      editorState: Draft.Draft_3.createEmpty(decorator)
82
+    };
83
+
84
+    _this.onChange = function (editorState) {
85
+      return _this.setState({
86
+        editorState: editorState
87
+      });
88
+    };
89
+
90
+    _this.handleKeyCommand = _this.handleKeyCommand.bind(_commonjsHelpers._assertThisInitialized(_this));
91
+    _this.defaultBlockStyleFn = _this.defaultBlockStyleFn.bind(_commonjsHelpers._assertThisInitialized(_this));
92
+    return _this;
93
+  }
94
+
95
+  _commonjsHelpers._createClass(RichTextEditor, [{
96
+    key: "handleKeyCommand",
97
+    value: function handleKeyCommand(command, editorState) {
98
+      var newState = Draft.Draft_15.handleKeyCommand(editorState, command);
99
+      console.log('command: ', command);
100
+      console.log('newState: ', newState);
101
+
102
+      if (newState) {
103
+        this.onChange(newState);
104
+        return "handled";
105
+      }
106
+
107
+      switch (command) {
108
+        case 'backspace':
109
+          var contentState = editorState.getCurrentContent();
110
+          var selectionState = editorState.getSelection();
111
+          var _ref = [selectionState.getStartOffset(), selectionState.getEndOffset()],
112
+              startOffset = _ref[0],
113
+              endOffset = _ref[1];
114
+
115
+          if (startOffset === endOffset) {
116
+            // 未选中状态
117
+            console.log(selectionState.getAnchorKey());
118
+          } // 选中状态
119
+
120
+
121
+          break;
122
+      }
123
+
124
+      return "not-handled";
125
+    }
126
+  }, {
127
+    key: "_onBoldClick",
128
+    value: function _onBoldClick() {
129
+      this.onChange(Draft.Draft_15.toggleInlineStyle(this.state.editorState, 'BOLD'));
130
+    }
131
+  }, {
132
+    key: "_onLinkClick",
133
+    value: function _onLinkClick() {
134
+      var editorState = this.state.editorState;
135
+      var contentState = editorState.getCurrentContent();
136
+      var selectionState = editorState.getSelection();
137
+      var contentStateWithEntity = contentState.createEntity('LINK', 'MUTABLE', {
138
+        url: 'http://www.zombo.com'
139
+      });
140
+      var entityKey = contentStateWithEntity.getLastCreatedEntityKey();
141
+      var contentStateWithLink = Draft.Draft_14.applyEntity(contentStateWithEntity, selectionState, entityKey);
142
+      var newEditorState = Draft.Draft_3.push(editorState, contentStateWithLink, 'apply-entity');
143
+      this.onChange(newEditorState);
144
+    }
145
+  }, {
146
+    key: "_onEmojiClick",
147
+    value: function _onEmojiClick(e, emojiCode) {
148
+      var editorState = this.state.editorState;
149
+      var contentState = editorState.getCurrentContent();
150
+      var selectionState = editorState.getSelection();
151
+      var EMOJIEntity = contentState.createEntity('EMOJI', 'IMMUTABLE', {
152
+        emojiCode: emojiCode
153
+      });
154
+      var entityKey = EMOJIEntity.getLastCreatedEntityKey();
155
+      var ncsWithEntity = Draft.Draft_14.insertText(contentState, selectionState, 'e', undefined, entityKey);
156
+      var newEditorState = Draft.Draft_3.push(editorState, ncsWithEntity, 'insert-characters'); // const newEditorState = AtomicBlockUtils.insertAtomicBlock(
157
+      //   editorState,
158
+      //   entityKey,
159
+      //   ' '
160
+      // );
161
+
162
+      this.onChange(newEditorState);
163
+    }
164
+  }, {
165
+    key: "_onCheckRange",
166
+    value: function _onCheckRange() {
167
+      console.log(this.state.editorState.getCurrentContent());
168
+      console.log(Draft.Draft_20(this.state.editorState.getCurrentContent()));
169
+    }
170
+  }, {
171
+    key: "defaultBlockStyleFn",
172
+    value: function defaultBlockStyleFn(contentBlock) {
173
+      var type = contentBlock.getType();
174
+      return "";
175
+    }
176
+  }, {
177
+    key: "defaultBlockRenderFn",
178
+    value: function defaultBlockRenderFn(contentBlock) {
179
+      var type = contentBlock.getType();
180
+      return contentBlock;
181
+    }
182
+  }, {
183
+    key: "render",
184
+    value: function render() {
185
+      var _this2 = this;
186
+
187
+      var editorState = this.state.editorState;
188
+      return React__default.createElement("div", {
189
+        className: styles.wrapper
190
+      }, React__default.createElement("div", {
191
+        className: styles.btnListWrapper
192
+      }, React__default.createElement("button", {
193
+        onClick: this._onBoldClick.bind(this)
194
+      }, "Bold"), React__default.createElement("button", {
195
+        onClick: this._onCheckRange.bind(this)
196
+      }, "Check"), React__default.createElement("button", {
197
+        onClick: this._onLinkClick.bind(this)
198
+      }, "Link"), React__default.createElement("button", {
199
+        onClick: function onClick(e) {
200
+          return _this2._onEmojiClick(e, '0011');
201
+        }
202
+      }, "Emoji")), React__default.createElement("div", {
203
+        className: styles.editorWrapper
204
+      }, React__default.createElement(Draft.Draft_1, {
205
+        editorState: editorState,
206
+        blockStyleFn: this.defaultBlockStyleFn,
207
+        blockRendererFn: this.defaultBlockRenderFn,
208
+        handleKeyCommand: this.handleKeyCommand,
209
+        onChange: this.onChange
210
+      })));
211
+    }
212
+  }]);
213
+
214
+  return RichTextEditor;
215
+}(React__default.Component);
216
+
217
+exports.default = RichTextEditor;
218
+//# sourceMappingURL=index.js.map

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


+ 10260
- 0
lib/Editor-RichTextEditorForSlate/index.js
File diff suppressed because it is too large
View File


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


+ 16
- 57155
lib/Editor/index.js
File diff suppressed because it is too large
View File


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


+ 162
- 0
lib/Payment-Common-common-ConsumeListView/index.js View File

@@ -0,0 +1,162 @@
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 _commonjsHelpers = require('../_commonjsHelpers-4ed3570f.js');
8
+var React = require('react');
9
+var React__default = _interopDefault(React);
10
+var index = require('../index-c2424ad4.js');
11
+var styleInject_es = require('../style-inject.es-dcee06b6.js');
12
+var utils = require('../utils-ed518bfc.js');
13
+
14
+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
+var css = ".ConsumeListView_wrapper__2Tr0_ {\n  display: flex;\n  justify-content: center;\n}\n.ConsumeListView_wrapper__2Tr0_ .ConsumeListView_consumelist__2yoWt {\n  padding: 0;\n  margin: 0;\n  display: flex;\n  flex-wrap: wrap;\n  padding-top: 10px;\n}\n.ConsumeListView_wrapper__2Tr0_ .ConsumeListView_consumelist__2yoWt li {\n  list-style: none;\n}\n.ConsumeListView_wrapper__2Tr0_ .ConsumeListView_consumelist__2yoWt .ConsumeListView_consumeItem__2NKR7 {\n  margin: 0 6px 10px;\n  text-align: center;\n  position: relative;\n}\n.ConsumeListView_wrapper__2Tr0_ .ConsumeListView_consumelist__2yoWt .ConsumeListView_consumeItem__2NKR7 .ConsumeListView_kingdomIcon__3VUpq {\n  position: absolute;\n  width: 24px;\n  height: 22px;\n  left: -6px;\n  top: -12px;\n}\n.ConsumeListView_wrapper__2Tr0_ .ConsumeListView_consumelist__2yoWt .ConsumeListView_consumeItem__2NKR7 .ConsumeListView_avatar__1t0io {\n  margin: 0 auto 4px;\n  width: 36px;\n  height: 36px;\n  background-size: cover;\n  border-radius: 50%;\n}\n.ConsumeListView_wrapper__2Tr0_ .ConsumeListView_consumelist__2yoWt .ConsumeListView_consumeItem__2NKR7 .ConsumeListView_gray__3eaP8 {\n  color: #9b9b9b;\n  font-size: 12px;\n}\n.ConsumeListView_wrapper__2Tr0_ .ConsumeListView_consumelist__2yoWt .ConsumeListView_toggle__2GLGV {\n  margin: 0 6px 10px;\n  width: 36px;\n  height: 36px;\n  line-height: 36px;\n  background-color: #ececec;\n  border-radius: 50%;\n  color: #a8adb6;\n  cursor: pointer;\n  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAACv0lEQVRIS8WXTW8SURSGzzAYNSYCA7SCUEqBioLtohvjD9CN7ozG36AmXfsRafxYN9b+BqNx50r3GjddqEVRRgSRVr4GWmOsERjfOwEzVYa5lAokEwJzznnOe865d+4IxPFRVXVPrVY73Wq1TgmCMIffYbjZ2q4b+E/GfysWi+WZw+F4it+/zMIKvQwAszcajXnYXEIwl1kwdh8JVPC1bLVaF5FE3cjHEFytVs8hyH04jvMAu9gUkexlp9P5uJv/P2DABCi9hbJehUPPinAkpKL8d6H8BpJQ9fbbAjOooigP8H2BIyi3CaAPJUm6qIdvAwN6G0qvcUfswxDK7wB+vePyB9zu6aNdKK9ROioUn+/0XAOz6W02m6kBBolXe1EUxSibdg0MtQn09Sav9yB2UL0A1QmBbQ6VSmWNd50OAu2sc5fL5WVTfAYD9WTQgP34Y9DOClB7D05X+nHcBdslAf19jnKfNAr2cmWVDuzfR7HoFCFTUyaqR8lUhr7/2KITc/Gu9mjrC6a4iLtjRhHfvv9Ea1/L5JLsNBML94Qz6OukTBWlTt5Dbjp2JGgUtsTAW7i713DxqSql0jkqrJfIKdloNhbpCmfQV8k0VZUNOuwZo2gkQFBmFPanKVibRFxpOUefC0VyOmw0E4+QqCt7s8mgH0ipbdKEb5wiIUB7N0UD9yy13l/O5CmbXyfJfpBm49MkihbSoKuA1jdpcsJD4aDfdA5gUDIdrr+jZLIFyuQK5AD8+NEQvXknU63+jUKTPgoGvDxQ1gJtuPpeTkw1U8+mnPU2MuWngN/DBW0bLe14A8mj3x+zX7TS+ryGi6JrMtoGMrItk6VULpcTqPtQHhIQuuB2uxOjfSwy1SM5CHQmYCRHn/azcjSHvQ586Mdb/aIb+oFeD2eHQOxM87j6eoXBBrGMa2evMPoE/sdL22+mI4T0ou1LqAAAAABJRU5ErkJggg==);\n  background-position: center;\n}\n.ConsumeListView_wrapper__2Tr0_ .ConsumeListView_consumelist__2yoWt .ConsumeListView_toggle__2GLGV.ConsumeListView_expand__1D2BA {\n  transform: rotate(180deg);\n}\n";
17
+var styles = {"wrapper":"ConsumeListView_wrapper__2Tr0_","consumelist":"ConsumeListView_consumelist__2yoWt","consumeItem":"ConsumeListView_consumeItem__2NKR7","kingdomIcon":"ConsumeListView_kingdomIcon__3VUpq","avatar":"ConsumeListView_avatar__1t0io","gray":"ConsumeListView_gray__3eaP8","toggle":"ConsumeListView_toggle__2GLGV","expand":"ConsumeListView_expand__1D2BA"};
18
+styleInject_es.styleInject(css);
19
+
20
+var DEFAULT_AVATAR = '//links-comment.oss-cn-beijing.aliyuncs.com/comment/20180820/Kgka4_oU1.jpeg';
21
+
22
+var ConsumeListView =
23
+/*#__PURE__*/
24
+function (_Component) {
25
+  _commonjsHelpers._inherits(ConsumeListView, _Component);
26
+
27
+  function ConsumeListView() {
28
+    _commonjsHelpers._classCallCheck(this, ConsumeListView);
29
+
30
+    return _commonjsHelpers._possibleConstructorReturn(this, _commonjsHelpers._getPrototypeOf(ConsumeListView).apply(this, arguments));
31
+  }
32
+
33
+  _commonjsHelpers._createClass(ConsumeListView, [{
34
+    key: "renderConsumeItem",
35
+    value: function renderConsumeItem() {
36
+      var _this$props = this.props,
37
+          dataSource = _this$props.dataSource,
38
+          isToggle = _this$props.isToggle,
39
+          onConsumeItemClick = _this$props.onConsumeItemClick,
40
+          showLength = _this$props.showLength,
41
+          listLength = _this$props.listLength,
42
+          options = _this$props.options;
43
+      var kingdomWidth = options.kingdomWidth,
44
+          kingdomHeight = options.kingdomHeight,
45
+          kingdomPosition = options.kingdomPosition,
46
+          avatarSize = options.avatarSize,
47
+          avatarMarginLeftAndRight = options.avatarMarginLeftAndRight;
48
+      var renderData = dataSource;
49
+
50
+      if (!isToggle && listLength > showLength) {
51
+        renderData = dataSource.slice(0, showLength - 1);
52
+      }
53
+
54
+      return renderData.map(function (v, i) {
55
+        var kingdom = null;
56
+
57
+        if (i === 0) {
58
+          kingdom = React__default.createElement("img", {
59
+            className: styles.kingdomIcon,
60
+            src: img,
61
+            alt: "reward top user",
62
+            style: {
63
+              width: "".concat(kingdomWidth, "px"),
64
+              height: "".concat(kingdomHeight, "px"),
65
+              left: "".concat(kingdomPosition[0], "px"),
66
+              top: "".concat(kingdomPosition[1], "px")
67
+            }
68
+          });
69
+        }
70
+
71
+        return React__default.createElement("li", {
72
+          key: v.id,
73
+          className: styles.consumeItem,
74
+          style: {
75
+            margin: "0 ".concat(avatarMarginLeftAndRight, "px 10px")
76
+          }
77
+        }, kingdom, React__default.createElement("div", {
78
+          className: styles.avatar,
79
+          onClick: function onClick(e) {
80
+            return onConsumeItemClick(e, v);
81
+          },
82
+          style: {
83
+            backgroundImage: "url(".concat(utils.addImageProcess(v.user_avatar || DEFAULT_AVATAR, {
84
+              small: true
85
+            }), ")"),
86
+            width: "".concat(avatarSize, "px"),
87
+            height: "".concat(avatarSize, "px")
88
+          }
89
+        }), React__default.createElement("span", {
90
+          className: styles.gray
91
+        }));
92
+      });
93
+    }
94
+  }, {
95
+    key: "renderToggleButton",
96
+    value: function renderToggleButton() {
97
+      var _this$props2 = this.props,
98
+          isToggle = _this$props2.isToggle,
99
+          onToggleChange = _this$props2.onToggleChange,
100
+          listLength = _this$props2.listLength,
101
+          showLength = _this$props2.showLength,
102
+          options = _this$props2.options;
103
+      var avatarSize = options.avatarSize,
104
+          avatarMarginLeftAndRight = options.avatarMarginLeftAndRight;
105
+
106
+      if (listLength <= showLength) {
107
+        return null;
108
+      }
109
+
110
+      return React__default.createElement("li", {
111
+        onClick: function onClick() {
112
+          return onToggleChange();
113
+        },
114
+        className: index.classnames(styles.toggle, _commonjsHelpers._defineProperty({}, styles.expand, isToggle)),
115
+        style: {
116
+          width: "".concat(avatarSize, "px"),
117
+          height: "".concat(avatarSize, "px"),
118
+          lineHeight: "".concat(avatarSize, "px"),
119
+          margin: "0 ".concat(avatarMarginLeftAndRight, "px 10px")
120
+        }
121
+      });
122
+    }
123
+  }, {
124
+    key: "render",
125
+    value: function render() {
126
+      var _this$props3 = this.props,
127
+          showLength = _this$props3.showLength,
128
+          options = _this$props3.options;
129
+      var avatarSize = options.avatarSize,
130
+          avatarMarginLeftAndRight = options.avatarMarginLeftAndRight;
131
+      return React__default.createElement("div", {
132
+        className: styles.wrapper
133
+      }, React__default.createElement("ul", {
134
+        className: styles.consumelist,
135
+        style: {
136
+          width: "calc(".concat(avatarMarginLeftAndRight * 2 + avatarSize, "px * ").concat(showLength, ")")
137
+        }
138
+      }, this.renderConsumeItem(), this.renderToggleButton()));
139
+    }
140
+  }]);
141
+
142
+  return ConsumeListView;
143
+}(React.Component);
144
+
145
+_commonjsHelpers._defineProperty(ConsumeListView, "defaultProps", {
146
+  isToggle: false,
147
+  onToggleChange: function onToggleChange() {},
148
+  onConsumeItemClick: function onConsumeItemClick() {},
149
+  dataSource: [],
150
+  listLength: 0,
151
+  showLength: 6,
152
+  options: {
153
+    avatarSize: 36,
154
+    avatarMarginLeftAndRight: 6,
155
+    kingdomWidth: 24,
156
+    kingdomHeight: 22,
157
+    kingdomPosition: [-6, -12]
158
+  }
159
+});
160
+
161
+exports.default = ConsumeListView;
162
+//# sourceMappingURL=index.js.map

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


+ 183
- 0
lib/Payment-Common-common-PayPlatformOptions/index.js
File diff suppressed because it is too large
View File


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


+ 66
- 0
lib/Payment-Common-common-PriceOptions/index.js View File

@@ -0,0 +1,66 @@
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 _commonjsHelpers = require('../_commonjsHelpers-4ed3570f.js');
8
+var React = require('react');
9
+var React__default = _interopDefault(React);
10
+var index = require('../index-c2424ad4.js');
11
+var styleInject_es = require('../style-inject.es-dcee06b6.js');
12
+var utils = require('../utils-ed518bfc.js');
13
+
14
+var css = ".PriceOptions_options__2AGBn {\n  padding: 20px 50px;\n  border-bottom: 1px dashed #00000017;\n}\n.PriceOptions_options__2AGBn p {\n  font-size: 14px;\n  font-weight: 400;\n  color: #616a79;\n  margin-bottom: 20px;\n}\n.PriceOptions_options__2AGBn .PriceOptions_infoItem__1dYFN {\n  padding-right: 0;\n}\n.PriceOptions_options__2AGBn .PriceOptions_infoItem__1dYFN .PriceOptions_priceItem__2PLhM {\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__2AGBn .PriceOptions_infoItem__1dYFN .PriceOptions_priceItem__2PLhM.PriceOptions_active__rlHby {\n  background: rgba(255, 50, 102, 0.1);\n  border-radius: 4px;\n  border: 1px solid #ff3266;\n  color: #616a79;\n}\n.PriceOptions_options__2AGBn .PriceOptions_infoItem__1dYFN .PriceOptions_priceInput__1UYLy {\n  display: inline-block;\n  min-width: 70px;\n  width: auto;\n  margin: 6px;\n  text-align: center;\n}\n.PriceOptions_options__2AGBn .PriceOptions_infoItem__1dYFN 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__2AGBn .PriceOptions_infoItem__1dYFN .PriceOptions_rate__3hVeo {\n  margin-left: 10px;\n}\n.PriceOptions_options__2AGBn .PriceOptions_infoItem__1dYFN .PriceOptions_rate__3hVeo i {\n  margin-right: 5px;\n  color: #1790FF;\n}\n.PriceOptions_options__2AGBn.PriceOptions_small__2Vys4 {\n  padding: 0 0 12px 0;\n  border-bottom: none;\n}\n.PriceOptions_options__2AGBn.PriceOptions_small__2Vys4 p {\n  margin-bottom: 8px;\n}\n.PriceOptions_options__2AGBn.PriceOptions_small__2Vys4 .PriceOptions_infoItem__1dYFN {\n  text-align: center;\n}\n.PriceOptions_options__2AGBn.PriceOptions_small__2Vys4 .PriceOptions_infoItem__1dYFN .PriceOptions_priceItem__2PLhM {\n  border-radius: 6px;\n  height: 32px;\n  width: 72px;\n  margin: 0 0 12px 19px;\n}\n.PriceOptions_options__2AGBn.PriceOptions_small__2Vys4 .PriceOptions_infoItem__1dYFN .PriceOptions_priceItem__2PLhM:first-child {\n  margin: 0 0 12px 0px;\n}\n.PriceOptions_options__2AGBn.PriceOptions_small__2Vys4 .PriceOptions_infoItem__1dYFN .PriceOptions_priceInput__1UYLy {\n  display: block;\n  width: 254px;\n  border-radius: 6px;\n  height: 32px;\n}\n@media (max-width: 768px) {\n  .PriceOptions_options__2AGBn {\n    padding: 20px 20px;\n  }\n  .PriceOptions_options__2AGBn p {\n    font-size: 14px;\n    font-weight: 400;\n    color: #616a79;\n  }\n  .PriceOptions_options__2AGBn .PriceOptions_infoItem__1dYFN {\n    padding-right: 0;\n    display: flex;\n    flex-direction: column;\n    justify-content: center;\n  }\n  .PriceOptions_options__2AGBn .PriceOptions_infoItem__1dYFN .PriceOptions_priceBtn__YfsBe {\n    display: flex;\n    justify-content: space-between;\n  }\n  .PriceOptions_options__2AGBn .PriceOptions_infoItem__1dYFN .PriceOptions_priceItem__2PLhM {\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__2AGBn .PriceOptions_infoItem__1dYFN .PriceOptions_priceItem__2PLhM.PriceOptions_active__rlHby {\n    background-color: #fff;\n    color: #FF3266FF;\n    border-radius: 4px;\n    border: 1px solid #ff3266;\n  }\n  .PriceOptions_options__2AGBn .PriceOptions_infoItem__1dYFN .PriceOptions_priceInput__1UYLy {\n    border-radius: 6px;\n    height: 36px;\n    width: auto;\n  }\n}\n";
15
+var styles = {"options":"PriceOptions_options__2AGBn","infoItem":"PriceOptions_infoItem__1dYFN","priceItem":"PriceOptions_priceItem__2PLhM","active":"PriceOptions_active__rlHby","priceInput":"PriceOptions_priceInput__1UYLy","rate":"PriceOptions_rate__3hVeo","small":"PriceOptions_small__2Vys4","priceBtn":"PriceOptions_priceBtn__YfsBe"};
16
+styleInject_es.styleInject(css);
17
+
18
+var FormattedMessage = function FormattedMessage(_ref) {
19
+  var id = _ref.id;
20
+  return id;
21
+};
22
+
23
+var PriceOptions = function PriceOptions(_ref2) {
24
+  var price = _ref2.price,
25
+      onPriceChange = _ref2.onPriceChange,
26
+      _ref2$size = _ref2.size,
27
+      _ref2$focusScroll = _ref2.focusScroll,
28
+      _ref2$withTitle = _ref2.withTitle,
29
+      withTitle = _ref2$withTitle === void 0 ? true : _ref2$withTitle,
30
+      inputRef = _ref2.inputRef;
31
+  var defaultOptions = [100, 600, 800]; // 控制是否为其他金额输入情况
32
+
33
+  var _useState = React.useState(false),
34
+      _useState2 = _commonjsHelpers._slicedToArray(_useState, 2),
35
+      inputStatus = _useState2[0],
36
+      setInputStatus = _useState2[1];
37
+
38
+  return React__default.createElement("div", {
39
+    className: index.classnames(styles.options)
40
+  }, withTitle ? React__default.createElement("p", null, React__default.createElement(FormattedMessage, {
41
+    id: "pay.price.select.text"
42
+  })) : null, React__default.createElement("div", {
43
+    className: styles.infoItem,
44
+    style: {
45
+      marginBottom: "-12px"
46
+    }
47
+  }, React__default.createElement("span", {
48
+    className: styles.priceBtn
49
+  }, defaultOptions.map(function (item) {
50
+    var _classnames;
51
+
52
+    return React__default.createElement("span", {
53
+      className: index.classnames((_classnames = {}, _commonjsHelpers._defineProperty(_classnames, styles.priceItem, true), _commonjsHelpers._defineProperty(_classnames, styles.active, price === item && !inputStatus), _classnames)),
54
+      key: item,
55
+      onClick: function onClick() {
56
+        onPriceChange(item);
57
+        setInputStatus(false);
58
+      }
59
+    }, React__default.createElement(FormattedMessage, {
60
+      id: "".concat(utils.formatMoney(item / 100, 0), "\xA5")
61
+    }));
62
+  }))));
63
+};
64
+
65
+exports.default = PriceOptions;
66
+//# sourceMappingURL=index.js.map

+ 1
- 0
lib/Payment-Common-common-PriceOptions/index.js.map View File

@@ -0,0 +1 @@
1
+{"version":3,"file":"index.js","sources":["../../src/components/Payment/Common/PriceOptions/index.tsx"],"sourcesContent":["import React, { useState } from \"react\";\r\nimport classnames from \"classnames\";\r\nimport { formatMoney } from \"../../Utils/utils\";\r\n\r\nimport styles from \"./PriceOptions.less\";\r\n\r\nconst FormattedMessage = ({ id }: any) => id;\r\n\r\ninterface Props {\r\n  price: number;\r\n  onPriceChange: (v: number) => void;\r\n  size: \"small\" | \"normal\" | \"large\";\r\n  focusScroll: boolean;\r\n  withTitle: boolean;\r\n  inputRef: React.RefObject<any>;\r\n}\r\n\r\nconst PriceOptions = ({\r\n  price,\r\n  onPriceChange,\r\n  size = \"normal\",\r\n  focusScroll = true,\r\n  withTitle = true,\r\n  inputRef\r\n}: Props) => {\r\n  const defaultOptions = [100, 600, 800];\r\n  // 控制是否为其他金额输入情况\r\n  const [inputStatus, setInputStatus] = useState(false);\r\n\r\n  return (\r\n    <div\r\n      className={classnames(styles.options)}\r\n    >\r\n      {withTitle ? (\r\n        <p>\r\n          <FormattedMessage id=\"pay.price.select.text\" />\r\n        </p>\r\n      ) : null}\r\n      <div className={styles.infoItem} style={{ marginBottom: \"-12px\" }}>\r\n        <span className={styles.priceBtn}>\r\n          {defaultOptions.map(item => (\r\n            <span\r\n              className={classnames({\r\n                [styles.priceItem]: true,\r\n                [styles.active]: price === item && !inputStatus\r\n              })}\r\n              key={item}\r\n              onClick={() => {\r\n                onPriceChange(item);\r\n                setInputStatus(false);\r\n              }}\r\n            >\r\n              <FormattedMessage id={`${formatMoney(item/100, 0)}¥`} />\r\n            </span>\r\n          ))}\r\n        </span>\r\n        {/* <Input\r\n          ref={inputRef}\r\n          onMouseEnter={() => {\r\n            if (inputStatus && inputRef && inputRef.current) {\r\n              inputRef.current.focus();\r\n              inputRef.current.select();\r\n            }\r\n          }}\r\n          suffix=\"¥\"\r\n          className={styles.priceInput}\r\n          value={inputStatus ? price / 100 || \"\" : \"\"}\r\n          placeholder=\"Others\"\r\n          onChange={e => {\r\n            const n = +e.target.value;\r\n            if (Number.isNaN(n)) {\r\n              return;\r\n            }\r\n            // 测试暂时改成1分\r\n            onPriceChange(n * 100);\r\n          }}\r\n          onClick={e => {\r\n            onPriceChange(0);\r\n            setInputStatus(true);\r\n          }}\r\n          onFocus={e => {\r\n            if (focusScroll) {\r\n              e.target.scrollIntoView();\r\n            }\r\n          }}\r\n        /> */}\r\n      </div>\r\n    </div>\r\n  );\r\n};\r\n\r\nexport default PriceOptions;\r\n"],"names":["FormattedMessage","id","PriceOptions","price","onPriceChange","size","focusScroll","withTitle","inputRef","defaultOptions","useState","inputStatus","setInputStatus","React","classnames","styles","options","infoItem","marginBottom","priceBtn","map","item","priceItem","active","formatMoney"],"mappings":";;;;;;;;;;;;;;;;;AAMA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAmB;MAAGC,EAAH,QAAGA,EAAH;SAAiBA,EAAjB;CAAzB;;AAWA,IAAMC,YAAY,GAAG,SAAfA,YAAe,QAOR;MANXC,KAMW,SANXA,KAMW;MALXC,aAKW,SALXA,aAKW;yBAJXC,IAIW;MAJXA,0BACAC,WAGW;MAHXA,wBACAC,SAEW;MAFXA,SAEW,gCAFC,IAED;MADXC,QACW,SADXA,QACW;MACLC,cAAc,GAAG,CAAC,GAAD,EAAM,GAAN,EAAW,GAAX,CAAvB,CADW;;kBAG2BC,cAAQ,CAAC,KAAD,CAHnC;;MAGJC,WAHI;MAGSC,cAHT;;SAMTC;IACE,SAAS,EAAEC,gBAAU,CAACC,MAAM,CAACC,OAAR;KAEpBT,SAAS,GACRM,wCACEA,6BAAC,gBAAD;IAAkB,EAAE,EAAC;IADvB,CADQ,GAIN,IAPN,EAQEA;IAAK,SAAS,EAAEE,MAAM,CAACE,QAAvB;IAAiC,KAAK,EAAE;MAAEC,YAAY,EAAE;;KACtDL;IAAM,SAAS,EAAEE,MAAM,CAACI;KACrBV,cAAc,CAACW,GAAf,CAAmB,UAAAC,IAAI;;;WACtBR;MACE,SAAS,EAAEC,gBAAU,kEAClBC,MAAM,CAACO,SADW,EACC,IADD,iDAElBP,MAAM,CAACQ,MAFW,EAEFpB,KAAK,KAAKkB,IAAV,IAAkB,CAACV,WAFjB,gBADvB;MAKE,GAAG,EAAEU,IALP;MAME,OAAO,EAAE,mBAAM;QACbjB,aAAa,CAACiB,IAAD,CAAb;QACAT,cAAc,CAAC,KAAD,CAAd;;OAGFC,6BAAC,gBAAD;MAAkB,EAAE,YAAKW,iBAAW,CAACH,IAAI,GAAC,GAAN,EAAW,CAAX,CAAhB;MAXtB,CADsB;GAAvB,CADH,CADF,CARF,CADF;CAZF;;;;"}

+ 88
- 0
lib/Payment-Common-common-WaitPayInfoView/index.js View File

@@ -0,0 +1,88 @@
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 _commonjsHelpers = require('../_commonjsHelpers-4ed3570f.js');
8
+var React = require('react');
9
+var React__default = _interopDefault(React);
10
+var index = require('../index-c2424ad4.js');
11
+var styleInject_es = require('../style-inject.es-dcee06b6.js');
12
+
13
+var css = ".WaitPayInfoView_waitingContainer__2fyww {\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n}\n";
14
+var styles = {"waitingContainer":"WaitPayInfoView_waitingContainer__2fyww"};
15
+styleInject_es.styleInject(css);
16
+
17
+const img = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgd2lkdGg9IjQ4cHgiIGhlaWdodD0iNDNweCIgdmlld0JveD0iMCAwIDQ4IDQzIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPg0KICAgIDwhLS0gR2VuZXJhdG9yOiBTa2V0Y2ggNTAuMiAoNTUwNDcpIC0gaHR0cDovL3d3dy5ib2hlbWlhbmNvZGluZy5jb20vc2tldGNoIC0tPg0KICAgIDx0aXRsZT5rY3hxX3BvcG92ZXJzX2ljb25fdGFuaGFvPC90aXRsZT4NCiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4NCiAgICA8ZGVmcz48L2RlZnM+DQogICAgPGcgaWQ9IlBhZ2UtMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+DQogICAgICAgIDxnIGlkPSLlj6blrqLnvZFf55u05pKt6K++X+ivvueoi+S7i+e7jeivpuaDhV/otK3kubDmj5DnpLrlvLnnqpciIHRyYW5zZm9ybT0idHJhbnNsYXRlKC05MzYuMDAwMDAwLCAtMTkwLjAwMDAwMCkiIGZpbGwtcnVsZT0ibm9uemVybyI+DQogICAgICAgICAgICA8ZyBpZD0iR3JvdXAtMjIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDY5MC4wMDAwMDAsIDExMC4wMDAwMDApIj4NCiAgICAgICAgICAgICAgICA8ZyBpZD0ia2N4cV9wb3BvdmVyc19pY29uX3RhbmhhbyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjQ2LjAwMDAwMCwgODAuMDAwMDAwKSI+DQogICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik00OCwyMS41IEM0OCwzMy4zNzM2NjI2IDM4LjM2NDU3NTYsNDMgMjYuNDc5NzA0OCw0MyBDMjEuMTMwNjI3Myw0MyAxNy4wMzkxMTQ0LDQyLjE1MDYxNzMgMTMuMjg0MTMyOCwzOC45MzAwNDEyIEMxMS44MTQwMjIxLDM3LjY3MzY2MjYgMS43MDAzNjksNDMuMjEyMzQ1NyAwLjE3NzEyMTc3MSwzOS4yODM5NTA2IEMtMS4wNjI3MzA2MywzNi4wOTg3NjU0IDUuOTUxMjkxNTEsMjkuMjUwNjE3MyA1LjMxMzY1MzE0LDI3LjA3NDA3NDEgQzQuNzY0NTc1NjUsMjUuMTgwNjU4NCA0Ljk1OTQwOTU5LDIzLjU3MDM3MDQgNC45NTk0MDk1OSwyMS41IEM0Ljk1OTQwOTU5LDkuNjI2MzM3NDUgMTQuNTk0ODMzOSwwIDI2LjQ3OTcwNDgsMCBDMzguMzY0NTc1NiwwIDQ4LDkuNjI2MzM3NDUgNDgsMjEuNSBaIiBpZD0iU2hhcGUiIGZpbGw9IiMxNzkwRkYiPjwvcGF0aD4NCiAgICAgICAgICAgICAgICAgICAgPGcgaWQ9Ikdyb3VwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyMy44NDg3MDgsIDguMTkzNDE2KSIgZmlsbD0iI0ZGRkZGRiI+DQogICAgICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMi41LDI3LjQ5NzEwOTggQzEuMTMyMzUyOTQsMjcuNDk3MTA5OCAwLDI2LjM3OTQ2MjggMCwyNC45OTcxMDk4IEMwLDIzLjYxNDc1NjkgMS4xMzIzNTI5NCwyMi40OTcxMDk4IDIuNSwyMi40OTcxMDk4IEMzLjg2NzY0NzA2LDIyLjQ5NzEwOTggNSwyMy42MTQ3NTY5IDUsMjQuOTk3MTA5OCBDNSwyNi4zNzk0NjI4IDMuODY3NjQ3MDYsMjcuNDk3MTA5OCAyLjUsMjcuNDk3MTA5OCBaIE0yLjUsMTkuNDIxOTY1MyBDMS4xMzIzNTI5NCwxOS40MjE5NjUzIDAsMTguMTkxOTA3NSAwLDE2LjY3MDUyMDIgTDAsMi43NTE0NDUwOSBDMCwxLjI0NjI0Mjc3IDEuMTMyMzUyOTQsMCAyLjUsMCBDMy44Njc2NDcwNiwwIDUsMS4yMzAwNTc4IDUsMi43NTE0NDUwOSBMNSwxNi42NzA1MjAyIEM1LDE4LjE5MTkwNzUgMy44Njc2NDcwNiwxOS40MjE5NjUzIDIuNSwxOS40MjE5NjUzIFoiIGlkPSJTaGFwZSI+PC9wYXRoPg0KICAgICAgICAgICAgICAgICAgICA8L2c+DQogICAgICAgICAgICAgICAgPC9nPg0KICAgICAgICAgICAgPC9nPg0KICAgICAgICA8L2c+DQogICAgPC9nPg0KPC9zdmc+';
18
+
19
+var Button = function Button() {
20
+  for (var _len = arguments.length, props = new Array(_len), _key = 0; _key < _len; _key++) {
21
+    props[_key] = arguments[_key];
22
+  }
23
+
24
+  return React__default.createElement("button", props, "button");
25
+};
26
+
27
+var WaitPayInfoView =
28
+/*#__PURE__*/
29
+function (_Component) {
30
+  _commonjsHelpers._inherits(WaitPayInfoView, _Component);
31
+
32
+  function WaitPayInfoView() {
33
+    _commonjsHelpers._classCallCheck(this, WaitPayInfoView);
34
+
35
+    return _commonjsHelpers._possibleConstructorReturn(this, _commonjsHelpers._getPrototypeOf(WaitPayInfoView).apply(this, arguments));
36
+  }
37
+
38
+  _commonjsHelpers._createClass(WaitPayInfoView, [{
39
+    key: "render",
40
+    value: function render() {
41
+      var _this$props = this.props,
42
+          onClickPayed = _this$props.onClickPayed,
43
+          onClickProblem = _this$props.onClickProblem;
44
+      return React__default.createElement("div", {
45
+        className: styles.waitingContainer
46
+      }, React__default.createElement("div", {
47
+        className: styles.infoIconImgContainer
48
+      }, React__default.createElement("img", {
49
+        src: img,
50
+        alt: "info label icon"
51
+      })), React__default.createElement("div", null, React__default.createElement("div", {
52
+        className: styles.pay_text
53
+      }, "live.course_info.pay.notification"), React__default.createElement("div", {
54
+        className: styles.btn_row
55
+      }, React__default.createElement(Button, {
56
+        className: index.classnames(styles.pay_btn, styles.btn_default),
57
+        size: "small",
58
+        onClick: function onClick() {
59
+          onClickPayed && onClickPayed();
60
+        }
61
+      }, "live.course_info.pay.payed"), React__default.createElement(Button, {
62
+        className: styles.btn_default,
63
+        size: "small",
64
+        style: {
65
+          marginLeft: '16px'
66
+        },
67
+        onClick: function onClick() {
68
+          onClickProblem && onClickProblem();
69
+        }
70
+      }, "live.course_info.pay.help"))));
71
+    }
72
+  }]);
73
+
74
+  return WaitPayInfoView;
75
+}(React.Component);
76
+
77
+_commonjsHelpers._defineProperty(WaitPayInfoView, "defaultProps", {
78
+  onClickPayed: function onClickPayed() {
79
+    console.log("onClickPayed");
80
+  },
81
+  onClickProblem: function onClickProblem() {
82
+    console.log("onClickProblem");
83
+  }
84
+});
85
+
86
+exports.WaitPayInfoView = WaitPayInfoView;
87
+exports.default = WaitPayInfoView;
88
+//# sourceMappingURL=index.js.map

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


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

@@ -2,15 +2,20 @@
2 2
 
3 3
 Object.defineProperty(exports, '__esModule', { value: true });
4 4
 
5
-require('../style-inject.es-b93a8bdc.js');
5
+require('../_commonjsHelpers-4ed3570f.js');
6 6
 require('react');
7
-require('../index-cb8e892c.js');
8
-var index$1 = require('../index-88ef31fa.js');
7
+require('../index-c2424ad4.js');
8
+require('../style-inject.es-dcee06b6.js');
9
+require('../utils-ed518bfc.js');
10
+var PaymentCommonCommonConsumeListView = require('../Payment-Common-common-ConsumeListView/index.js');
11
+var PaymentCommonCommonPayPlatformOptions = require('../Payment-Common-common-PayPlatformOptions/index.js');
12
+var PaymentCommonCommonPriceOptions = require('../Payment-Common-common-PriceOptions/index.js');
13
+var PaymentCommonCommonWaitPayInfoView = require('../Payment-Common-common-WaitPayInfoView/index.js');
9 14
 
10 15
 
11 16
 
12
-exports.ConsumeListView = index$1.ConsumeListView;
13
-exports.PayPlatformOptions = index$1.PayPlatformOptions;
14
-exports.PriceOptions = index$1.PriceOptions;
15
-exports.WaitPayInfoView = index$1.WaitPayInfoView;
17
+exports.ConsumeListView = PaymentCommonCommonConsumeListView.default;
18
+exports.PayPlatformOptions = PaymentCommonCommonPayPlatformOptions.default;
19
+exports.PriceOptions = PaymentCommonCommonPriceOptions.default;
20
+exports.WaitPayInfoView = PaymentCommonCommonWaitPayInfoView.default;
16 21
 //# 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":";;;;;;;;;;;;;;;;;;;"}

lib/style-inject.es-b93a8bdc.js → lib/_commonjsHelpers-4ed3570f.js View File

@@ -188,33 +188,6 @@ function createCommonjsModule(fn, module) {
188 188
 	return module = { exports: {} }, fn(module, module.exports), module.exports;
189 189
 }
190 190
 
191
-function styleInject(css, ref) {
192
-  if ( ref === void 0 ) ref = {};
193
-  var insertAt = ref.insertAt;
194
-
195
-  if (!css || typeof document === 'undefined') { return; }
196
-
197
-  var head = document.head || document.getElementsByTagName('head')[0];
198
-  var style = document.createElement('style');
199
-  style.type = 'text/css';
200
-
201
-  if (insertAt === 'top') {
202
-    if (head.firstChild) {
203
-      head.insertBefore(style, head.firstChild);
204
-    } else {
205
-      head.appendChild(style);
206
-    }
207
-  } else {
208
-    head.appendChild(style);
209
-  }
210
-
211
-  if (style.styleSheet) {
212
-    style.styleSheet.cssText = css;
213
-  } else {
214
-    style.appendChild(document.createTextNode(css));
215
-  }
216
-}
217
-
218 191
 exports._assertThisInitialized = _assertThisInitialized;
219 192
 exports._classCallCheck = _classCallCheck;
220 193
 exports._createClass = _createClass;
@@ -227,6 +200,5 @@ exports._possibleConstructorReturn = _possibleConstructorReturn;
227 200
 exports._slicedToArray = _slicedToArray;
228 201
 exports.commonjsGlobal = commonjsGlobal;
229 202
 exports.createCommonjsModule = createCommonjsModule;
230
-exports.styleInject = styleInject;
231 203
 exports.unwrapExports = unwrapExports;
232
-//# sourceMappingURL=style-inject.es-b93a8bdc.js.map
204
+//# sourceMappingURL=_commonjsHelpers-4ed3570f.js.map

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

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

+ 13
- 0
lib/_react-dom_commonjs-external-55867475.js View File

@@ -0,0 +1,13 @@
1
+'use strict';
2
+
3
+function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4
+
5
+var React = require('react');
6
+var React__default = _interopDefault(React);
7
+var reactDom = _interopDefault(require('react-dom'));
8
+
9
+
10
+
11
+exports.React = React__default;
12
+exports.require$$3 = reactDom;
13
+//# sourceMappingURL=_react-dom_commonjs-external-55867475.js.map

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

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

+ 0
- 492
lib/index-88ef31fa.js
File diff suppressed because it is too large
View File


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


lib/index-cb8e892c.js → lib/index-c2424ad4.js View File

@@ -1,8 +1,8 @@
1 1
 'use strict';
2 2
 
3
-var styleInject_es = require('./style-inject.es-b93a8bdc.js');
3
+var _commonjsHelpers = require('./_commonjsHelpers-4ed3570f.js');
4 4
 
5
-var classnames = styleInject_es.createCommonjsModule(function (module) {
5
+var classnames = _commonjsHelpers.createCommonjsModule(function (module) {
6 6
 /*!
7 7
   Copyright (c) 2017 Jed Watson.
8 8
   Licensed under the MIT License (MIT), see
@@ -52,4 +52,4 @@ var classnames = styleInject_es.createCommonjsModule(function (module) {
52 52
 });
53 53
 
54 54
 exports.classnames = classnames;
55
-//# sourceMappingURL=index-cb8e892c.js.map
55
+//# sourceMappingURL=index-c2424ad4.js.map

lib/index-cb8e892c.js.map → lib/index-c2424ad4.js.map View File

@@ -1 +1 @@
1
-{"version":3,"file":"index-b92ec402.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-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;;;;;"}

+ 13
- 8
lib/index.js View File

@@ -2,11 +2,16 @@
2 2
 
3 3
 Object.defineProperty(exports, '__esModule', { value: true });
4 4
 
5
-require('./style-inject.es-b93a8bdc.js');
5
+require('./_commonjsHelpers-4ed3570f.js');
6 6
 require('react');
7
-require('./index-cb8e892c.js');
8
-require('./test-609dd691.js');
9
-var index$1 = require('./index-88ef31fa.js');
7
+require('./index-c2424ad4.js');
8
+require('./style-inject.es-dcee06b6.js');
9
+require('./test-029f205d.js');
10
+require('./utils-ed518bfc.js');
11
+var PaymentCommonCommonConsumeListView = require('./Payment-Common-common-ConsumeListView/index.js');
12
+var PaymentCommonCommonPayPlatformOptions = require('./Payment-Common-common-PayPlatformOptions/index.js');
13
+var PaymentCommonCommonPriceOptions = require('./Payment-Common-common-PriceOptions/index.js');
14
+var PaymentCommonCommonWaitPayInfoView = require('./Payment-Common-common-WaitPayInfoView/index.js');
10 15
 
11 16
 // type TransmitImgTxtData = {
12 17
 //   user_id?: string|number;
@@ -73,9 +78,9 @@ var index$1 = require('./index-88ef31fa.js');
73 78
 
74 79
 var Test = "TestComponent";
75 80
 
76
-exports.ConsumeListView = index$1.ConsumeListView;
77
-exports.PayPlatformOptions = index$1.PayPlatformOptions;
78
-exports.PriceOptions = index$1.PriceOptions;
79
-exports.WaitPayInfoView = index$1.WaitPayInfoView;
81
+exports.ConsumeListView = PaymentCommonCommonConsumeListView.default;
82
+exports.PayPlatformOptions = PaymentCommonCommonPayPlatformOptions.default;
83
+exports.PriceOptions = PaymentCommonCommonPriceOptions.default;
84
+exports.WaitPayInfoView = PaymentCommonCommonWaitPayInfoView.default;
80 85
 exports.Test = Test;
81 86
 //# sourceMappingURL=index.js.map

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


+ 0
- 1
lib/style-inject.es-b93a8bdc.js.map View File

@@ -1 +0,0 @@
1
-{"version":3,"file":"style-inject.es-610f1f83.js","sources":["../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\n  if ( ref === void 0 ) ref = {};\n  var insertAt = ref.insertAt;\n\n  if (!css || typeof document === 'undefined') { return; }\n\n  var head = document.head || document.getElementsByTagName('head')[0];\n  var style = document.createElement('style');\n  style.type = 'text/css';\n\n  if (insertAt === 'top') {\n    if (head.firstChild) {\n      head.insertBefore(style, head.firstChild);\n    } else {\n      head.appendChild(style);\n    }\n  } else {\n    head.appendChild(style);\n  }\n\n  if (style.styleSheet) {\n    style.styleSheet.cssText = css;\n  } else {\n    style.appendChild(document.createTextNode(css));\n  }\n}\n\nexport default styleInject;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;EAC7B,KAAK,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;EAC/B,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;;EAE5B,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO,EAAE;;EAExD,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;EACrE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;EAC5C,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;;EAExB,IAAI,QAAQ,KAAK,KAAK,EAAE;IACtB,IAAI,IAAI,CAAC,UAAU,EAAE;MACnB,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;KAC3C,MAAM;MACL,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;KACzB;GACF,MAAM;IACL,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;GACzB;;EAED,IAAI,KAAK,CAAC,UAAU,EAAE;IACpB,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG,CAAC;GAChC,MAAM;IACL,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;GACjD;CACF;;;;;;;;;;;;;;;;;"}

+ 31
- 0
lib/style-inject.es-dcee06b6.js View File

@@ -0,0 +1,31 @@
1
+'use strict';
2
+
3
+function styleInject(css, ref) {
4
+  if ( ref === void 0 ) ref = {};
5
+  var insertAt = ref.insertAt;
6
+
7
+  if (!css || typeof document === 'undefined') { return; }
8
+
9
+  var head = document.head || document.getElementsByTagName('head')[0];
10
+  var style = document.createElement('style');
11
+  style.type = 'text/css';
12
+
13
+  if (insertAt === 'top') {
14
+    if (head.firstChild) {
15
+      head.insertBefore(style, head.firstChild);
16
+    } else {
17
+      head.appendChild(style);
18
+    }
19
+  } else {
20
+    head.appendChild(style);
21
+  }
22
+
23
+  if (style.styleSheet) {
24
+    style.styleSheet.cssText = css;
25
+  } else {
26
+    style.appendChild(document.createTextNode(css));
27
+  }
28
+}
29
+
30
+exports.styleInject = styleInject;
31
+//# sourceMappingURL=style-inject.es-dcee06b6.js.map

+ 1
- 0
lib/style-inject.es-dcee06b6.js.map View File

@@ -0,0 +1 @@
1
+{"version":3,"file":"style-inject.es-1f59c1d0.js","sources":["../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\n  if ( ref === void 0 ) ref = {};\n  var insertAt = ref.insertAt;\n\n  if (!css || typeof document === 'undefined') { return; }\n\n  var head = document.head || document.getElementsByTagName('head')[0];\n  var style = document.createElement('style');\n  style.type = 'text/css';\n\n  if (insertAt === 'top') {\n    if (head.firstChild) {\n      head.insertBefore(style, head.firstChild);\n    } else {\n      head.appendChild(style);\n    }\n  } else {\n    head.appendChild(style);\n  }\n\n  if (style.styleSheet) {\n    style.styleSheet.cssText = css;\n  } else {\n    style.appendChild(document.createTextNode(css));\n  }\n}\n\nexport default styleInject;\n"],"names":[],"mappings":";;AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;EAC7B,KAAK,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;EAC/B,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;;EAE5B,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO,EAAE;;EAExD,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;EACrE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;EAC5C,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;;EAExB,IAAI,QAAQ,KAAK,KAAK,EAAE;IACtB,IAAI,IAAI,CAAC,UAAU,EAAE;MACnB,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;KAC3C,MAAM;MACL,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;KACzB;GACF,MAAM;IACL,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;GACzB;;EAED,IAAI,KAAK,CAAC,UAAU,EAAE;IACpB,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG,CAAC;GAChC,MAAM;IACL,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;GACjD;CACF;;;;"}

lib/test-609dd691.js → lib/test-029f205d.js View File

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

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


+ 49
- 0
lib/utils-ed518bfc.js View File

@@ -0,0 +1,49 @@
1
+'use strict';
2
+
3
+var _commonjsHelpers = require('./_commonjsHelpers-4ed3570f.js');
4
+
5
+var IMAGE_PROCESS = '?x-oss-process=image/resize,h_350';
6
+var IMAGE_PROCESS_SMALL = '?x-oss-process=image/resize,h_100';
7
+var IMAGE_PROCESS_LARGE = '?x-oss-process=image/resize,h_500';
8
+function addImageProcess(url) {
9
+  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
10
+    width: '36px',
11
+    height: '36px'
12
+  };
13
+
14
+  // 防止重复添加导致的url不正确
15
+  if (url && url.indexOf('x-oss-process') > -1) {
16
+    return url;
17
+  }
18
+
19
+  if (options.small) {
20
+    return url + IMAGE_PROCESS_SMALL;
21
+  }
22
+
23
+  if (options.large) {
24
+    return url + IMAGE_PROCESS_LARGE;
25
+  }
26
+
27
+  if (options.custom) {
28
+    return "".concat(url, "?x-oss-process=image/resize,limit_0,m_fill,w_").concat(options.width, ",h_").concat(options.height);
29
+  }
30
+
31
+  return url + IMAGE_PROCESS;
32
+}
33
+function formatMoney(input) {
34
+  var fuzz = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
35
+
36
+  if (isNaN(+input)) {
37
+    return input;
38
+  }
39
+
40
+  return (+input).toFixed(fuzz);
41
+}
42
+function exportStyleSizeClass(styles, size) {
43
+  return _commonjsHelpers._defineProperty({}, styles[size], true);
44
+}
45
+
46
+exports.addImageProcess = addImageProcess;
47
+exports.exportStyleSizeClass = exportStyleSizeClass;
48
+exports.formatMoney = formatMoney;
49
+//# sourceMappingURL=utils-ed518bfc.js.map

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

@@ -0,0 +1 @@
1
+{"version":3,"file":"utils-82346768.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","formatMoney","input","fuzz","isNaN","toFixed","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,AAAO,SAASY,WAAT,CAAqBC,KAArB,EAA2C;MAAVC,IAAU,uEAAH,CAAG;;MAC5CC,KAAK,CAAC,CAACF,KAAF,CAAT,EAAmB;WACVA,KAAP;;;SAEK,CAAC,CAACA,KAAF,EAASG,OAAT,CAAiBF,IAAjB,CAAP;;AAKF,AAAO,SAASG,oBAAT,CAA8BC,MAA9B,EAA2CC,IAA3C,EAA4D;8CAE9DD,MAAM,CAACC,IAAD,CADT,EACkB,IADlB;;;;;;;"}

+ 26
- 3
rollup.config.js View File

@@ -38,10 +38,33 @@ export function getNamedExports(moduleIds) {
38 38
 
39 39
 const fs = require('fs');
40 40
 const path = require('path');
41
-const componentFold = 'src/components';
42
-const cModuleNames = fs.readdirSync(path.resolve(componentFold));
41
+const componentsFold = 'src/components';
42
+const cModuleNames = fs.readdirSync(path.resolve(componentsFold));
43 43
 const cModuleMap = cModuleNames.reduce((prev, name) => {
44
-  prev[name] = `${componentFold}/${name}/index.ts`;
44
+  const modulePath = `${componentsFold}/${name}`;
45
+  prev[name] = `${modulePath}/index.ts`;
46
+  const child = fs.readdirSync(path.resolve(modulePath));
47
+  child.forEach(c => {
48
+    const childFoldPath = `${modulePath}/${c}`;
49
+    console.log('childFoldPath: ', childFoldPath);
50
+    const isDir = fs.statSync(childFoldPath).isDirectory();
51
+    if (isDir) {
52
+      if (fs.existsSync(`${childFoldPath}/index.tsx`)) {
53
+        prev[`${name}-${c}`] = `${childFoldPath}/index.tsx`;
54
+      }
55
+      if (c === 'Common' && fs.existsSync(childFoldPath) && fs.statSync(childFoldPath).isDirectory()) {
56
+        const commonComponentsArr = fs.readdirSync(childFoldPath);
57
+        commonComponentsArr.forEach(commonComponentFold => {
58
+          const commonComponentFoldPath = `${childFoldPath}/${commonComponentFold}`;
59
+          const isCommonComponentDir = fs.statSync(commonComponentFoldPath).isDirectory();
60
+          if (isCommonComponentDir && fs.existsSync(`${commonComponentFoldPath}/index.tsx`)) {
61
+            prev[`${name}-${c}-common-${commonComponentFold}`] = `${commonComponentFoldPath}/index.tsx`;
62
+          }
63
+        });
64
+      }
65
+    }
66
+  });
67
+  console.log('prev: ', prev);
45 68
   return prev;
46 69
 }, {});
47 70
 

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