No Description

index-8e31d90e.js 54KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502
  1. import { _ as _defineProperty, s as styleInject, b as _inherits, d as _createClass, e as _classCallCheck, f as _possibleConstructorReturn, h as _getPrototypeOf, i as classnames, j as _objectSpread2, k as _slicedToArray } from './style-inject.es-7ed2769c.js';
  2. import React, { Component, PureComponent, useState } from 'react';
  3. import 'antd/es/input/style';
  4. import _Input from 'antd/es/input';
  5. import 'antd/es/button/style';
  6. import _Button from 'antd/es/button';
  7. var IMAGE_PROCESS = '?x-oss-process=image/resize,h_350';
  8. var IMAGE_PROCESS_SMALL = '?x-oss-process=image/resize,h_100';
  9. var IMAGE_PROCESS_LARGE = '?x-oss-process=image/resize,h_500';
  10. function addImageProcess(url) {
  11. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
  12. width: '36px',
  13. height: '36px'
  14. };
  15. // 防止重复添加导致的url不正确
  16. if (url && url.indexOf('x-oss-process') > -1) {
  17. return url;
  18. }
  19. if (options.small) {
  20. return url + IMAGE_PROCESS_SMALL;
  21. }
  22. if (options.large) {
  23. return url + IMAGE_PROCESS_LARGE;
  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. return url + IMAGE_PROCESS;
  29. }
  30. function formatMoney(input) {
  31. var fuzz = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
  32. if (isNaN(+input)) {
  33. return input;
  34. }
  35. return (+input).toFixed(fuzz);
  36. }
  37. function exportStyleSizeClass(styles, size) {
  38. return _defineProperty({}, styles[size], true);
  39. }
  40. 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=';
  41. var css = ".ConsumeListView_wrapper__la1cB {\n display: flex;\n justify-content: center;\n}\n.ConsumeListView_wrapper__la1cB .ConsumeListView_consumelist__sAA2b {\n padding: 0;\n margin: 0;\n display: flex;\n flex-wrap: wrap;\n padding-top: 10px;\n}\n.ConsumeListView_wrapper__la1cB .ConsumeListView_consumelist__sAA2b li {\n list-style: none;\n}\n.ConsumeListView_wrapper__la1cB .ConsumeListView_consumelist__sAA2b .ConsumeListView_consumeItem__2M0dc {\n margin: 0 6px 10px;\n text-align: center;\n position: relative;\n}\n.ConsumeListView_wrapper__la1cB .ConsumeListView_consumelist__sAA2b .ConsumeListView_consumeItem__2M0dc .ConsumeListView_kingdomIcon__YPzT9 {\n position: absolute;\n width: 24px;\n height: 22px;\n left: -6px;\n top: -12px;\n}\n.ConsumeListView_wrapper__la1cB .ConsumeListView_consumelist__sAA2b .ConsumeListView_consumeItem__2M0dc .ConsumeListView_avatar__AXZJE {\n margin: 0 auto 4px;\n width: 36px;\n height: 36px;\n background-size: cover;\n border-radius: 50%;\n}\n.ConsumeListView_wrapper__la1cB .ConsumeListView_consumelist__sAA2b .ConsumeListView_consumeItem__2M0dc .ConsumeListView_gray__3h-Ue {\n color: #9b9b9b;\n font-size: 12px;\n}\n.ConsumeListView_wrapper__la1cB .ConsumeListView_consumelist__sAA2b .ConsumeListView_toggle__31sUD {\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__la1cB .ConsumeListView_consumelist__sAA2b .ConsumeListView_toggle__31sUD.ConsumeListView_expand__XSb0z {\n transform: rotate(180deg);\n}\n";
  42. var styles = {"wrapper":"ConsumeListView_wrapper__la1cB","consumelist":"ConsumeListView_consumelist__sAA2b","consumeItem":"ConsumeListView_consumeItem__2M0dc","kingdomIcon":"ConsumeListView_kingdomIcon__YPzT9","avatar":"ConsumeListView_avatar__AXZJE","gray":"ConsumeListView_gray__3h-Ue","toggle":"ConsumeListView_toggle__31sUD","expand":"ConsumeListView_expand__XSb0z"};
  43. styleInject(css);
  44. var DEFAULT_AVATAR = '//links-comment.oss-cn-beijing.aliyuncs.com/comment/20180820/Kgka4_oU1.jpeg';
  45. var ConsumeListView =
  46. /*#__PURE__*/
  47. function (_Component) {
  48. _inherits(ConsumeListView, _Component);
  49. function ConsumeListView() {
  50. _classCallCheck(this, ConsumeListView);
  51. return _possibleConstructorReturn(this, _getPrototypeOf(ConsumeListView).apply(this, arguments));
  52. }
  53. _createClass(ConsumeListView, [{
  54. key: "renderConsumeItem",
  55. value: function renderConsumeItem() {
  56. var _this$props = this.props,
  57. dataSource = _this$props.dataSource,
  58. isToggle = _this$props.isToggle,
  59. showLength = _this$props.showLength,
  60. listLength = _this$props.listLength,
  61. options = _this$props.options;
  62. var kingdomWidth = options.kingdomWidth,
  63. kingdomHeight = options.kingdomHeight,
  64. kingdomPosition = options.kingdomPosition,
  65. avatarSize = options.avatarSize,
  66. avatarMarginLeftAndRight = options.avatarMarginLeftAndRight;
  67. var renderData = dataSource;
  68. if (!isToggle && listLength > showLength) {
  69. renderData = dataSource.slice(0, showLength - 1);
  70. }
  71. return renderData.map(function (v, i) {
  72. var kingdom = null;
  73. if (i === 0) {
  74. kingdom = React.createElement("img", {
  75. className: styles.kingdomIcon,
  76. src: img,
  77. alt: "reward top user",
  78. style: {
  79. width: "".concat(kingdomWidth, "px"),
  80. height: "".concat(kingdomHeight, "px"),
  81. left: "".concat(kingdomPosition[0], "px"),
  82. top: "".concat(kingdomPosition[1], "px")
  83. }
  84. });
  85. }
  86. return React.createElement("li", {
  87. key: v.id,
  88. className: styles.consumeItem,
  89. style: {
  90. margin: "0 ".concat(avatarMarginLeftAndRight, "px 10px")
  91. }
  92. }, kingdom, React.createElement("div", {
  93. className: styles.avatar,
  94. style: {
  95. backgroundImage: "url(".concat(addImageProcess(v.user_avatar || DEFAULT_AVATAR, {
  96. small: true
  97. }), ")"),
  98. width: "".concat(avatarSize, "px"),
  99. height: "".concat(avatarSize, "px")
  100. }
  101. }), React.createElement("span", {
  102. className: styles.gray
  103. }));
  104. });
  105. }
  106. }, {
  107. key: "renderToggleButton",
  108. value: function renderToggleButton() {
  109. var _this$props2 = this.props,
  110. isToggle = _this$props2.isToggle,
  111. onToggleChange = _this$props2.onToggleChange,
  112. listLength = _this$props2.listLength,
  113. showLength = _this$props2.showLength,
  114. options = _this$props2.options;
  115. var avatarSize = options.avatarSize,
  116. avatarMarginLeftAndRight = options.avatarMarginLeftAndRight;
  117. if (listLength <= showLength) {
  118. return null;
  119. }
  120. return React.createElement("li", {
  121. onClick: function onClick() {
  122. return onToggleChange();
  123. },
  124. className: classnames(styles.toggle, _defineProperty({}, styles.expand, isToggle)),
  125. style: {
  126. width: "".concat(avatarSize, "px"),
  127. height: "".concat(avatarSize, "px"),
  128. lineHeight: "".concat(avatarSize, "px"),
  129. margin: "0 ".concat(avatarMarginLeftAndRight, "px 10px")
  130. }
  131. });
  132. }
  133. }, {
  134. key: "render",
  135. value: function render() {
  136. var _this$props3 = this.props,
  137. showLength = _this$props3.showLength,
  138. options = _this$props3.options;
  139. var avatarSize = options.avatarSize,
  140. avatarMarginLeftAndRight = options.avatarMarginLeftAndRight;
  141. return React.createElement("div", {
  142. className: styles.wrapper
  143. }, React.createElement("ul", {
  144. className: styles.consumelist,
  145. style: {
  146. width: "calc(".concat(avatarMarginLeftAndRight * 2 + avatarSize, "px * ").concat(showLength, ")")
  147. }
  148. }, this.renderConsumeItem(), this.renderToggleButton()));
  149. }
  150. }]);
  151. return ConsumeListView;
  152. }(Component);
  153. _defineProperty(ConsumeListView, "defaultProps", {
  154. isToggle: false,
  155. onToggleChange: function onToggleChange() {},
  156. dataSource: [],
  157. listLength: 0,
  158. showLength: 6,
  159. options: {
  160. avatarSize: 36,
  161. avatarMarginLeftAndRight: 6,
  162. kingdomWidth: 24,
  163. kingdomHeight: 22,
  164. kingdomPosition: [-6, -12]
  165. }
  166. });
  167. const img$1 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAABECAYAAAAGGj65AAAXgklEQVR4Xu1deXwc1ZH+qufSjbFlbHwbX4C57QDTPZJakg8MxECICQSShUCcDfAjLOQAFoiBEEgWNtmwAcIZJwQI5ohtgk9p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SOoYRO4YAnuMROoUAoOUNUpwEh88Ja7QAnuQAnuQROYQAneIXLHAUM3sVL3USNn8NWqEIdLsRRYwEh8yuGf8EAAAAG3RSTlMAVQvuy+eo5PkXKW/Rr4goeETDiZ43us7AS166//BKAAAB4UlEQVRYw6WW25qCMAyEEVoOAitycBdboYrv/4yru4oS0pDK3P9f0gkZ4nmjNmWEK8vK+ivd+55dG7WkLE1scKQYqnF8q1gKNhi8V0ylCJxyYYXUrtlwsJ3BJRtW+QwO+LCCpRMHVtWfmn1X9LHZSN9fTjCYVr4GjlbAvloBz9bCdKiMMXPD4DJ3J7v6TiWk2SdSfVwldrMNDSutZfOCM37XN5211nE7wsoJvtxgLROL2T39ZP2n0LIWNDz8w3GCrwWj65sKNIMMp+ux79LFr/MTFmgGdazCWqIZ1LMKP2AXs40GsIPZ/fUFC2wtDGNM9zmHjmvxevA454hr9oTVLZZBNr/6y4TVO4e1UNcpK9AMwkcEyj6fvJxB/TBDH10jZvejOqOG81UjEmgGmUFz1KIZFLBYgWfQDwtu8Az65rAF/msOYgYbWu6gjPNg33IHHRh1fdsddGC/F8mgJbPDHXEHkWbLCTrPIDkj4rukFGHVwNMPrEUEySN14YO1KAFceZQi2uwdxfq02ZIsvKXNFiQMMshMzY5DEl4wuyDhnF6LloSzFWaDtTDA7NhzgN3MBobl0pIYtq8keZPv9HECNQA+usBHPGB5qgDsu8Chy1pAiemUxQrYzWyviN8l6I/T+wU2HDmgaaHs/gAAAABJRU5ErkJggg==';
  173. var css$1 = ".PayPlatformOptions_flexContainer__1-MCg {\n display: flex;\n justify-content: space-around;\n align-items: center;\n}\n.PayPlatformOptions_label__1E4pz {\n font-size: 14px;\n font-weight: 400;\n color: #616A79;\n}\n.PayPlatformOptions_payment-method-box__Iiao- {\n padding: 20px 10px 10px 10px;\n text-align: center;\n}\n.PayPlatformOptions_payment-method-box__Iiao- .PayPlatformOptions_payment-method__3fVWP {\n display: inline-block;\n margin: 0;\n width: 60%;\n vertical-align: middle;\n}\n.PayPlatformOptions_payment-method-box__Iiao- .PayPlatformOptions_payment-method-before__2Lu24 {\n display: inline-block;\n height: 100%;\n vertical-align: middle;\n}\n.PayPlatformOptions_payment-method-box__Iiao- .PayPlatformOptions_payitem__2o3qS {\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n border: 1px solid transparent;\n height: 66px;\n line-height: 66px;\n}\n.PayPlatformOptions_payment-method-box__Iiao- .PayPlatformOptions_payitem__2o3qS .PayPlatformOptions_platformName__2VrlA {\n text-align: center;\n white-space: nowrap;\n}\n.PayPlatformOptions_payment-method-box__Iiao- .PayPlatformOptions_payitem__2o3qS.PayPlatformOptions_small__kkYKV {\n width: 88px;\n height: 36px;\n line-height: 36px;\n}\n.PayPlatformOptions_payment-method-box__Iiao- .PayPlatformOptions_payitem__2o3qS.PayPlatformOptions_small__kkYKV .PayPlatformOptions_payment-method__3fVWP {\n margin: 0;\n}\n.PayPlatformOptions_payment-method-box__Iiao- .PayPlatformOptions_payitem__2o3qS.PayPlatformOptions_normal__1LPcR {\n width: 132px;\n}\n.PayPlatformOptions_payment-method-box__Iiao- .PayPlatformOptions_payitem__2o3qS.PayPlatformOptions_large__3Tz_u {\n width: 162px;\n}\n.PayPlatformOptions_payment-method-box__Iiao- .PayPlatformOptions_payitem__2o3qS.PayPlatformOptions_active__3uZ7L {\n border-radius: 5px;\n border-color: #1790FF;\n box-shadow: 0px 2px 6px 0px rgba(163, 163, 163, 0.3);\n}\n.PayPlatformOptions_payment-method-box__Iiao- .PayPlatformOptions_payitem__2o3qS.PayPlatformOptions_en__2udua {\n font-size: 12px;\n}\n.PayPlatformOptions_payment-method-box__Iiao-.PayPlatformOptions_mobile__XZq_G {\n padding: 8px 10px 10px 8px;\n}\n.PayPlatformOptions_payment-method-box__Iiao-.PayPlatformOptions_mobile__XZq_G .PayPlatformOptions_payitem__2o3qS {\n display: inline-flex;\n flex-direction: column;\n justify-content: space-around;\n width: 78px;\n height: 80px;\n line-height: initial;\n border: 1px solid transparent;\n}\n.PayPlatformOptions_payment-method-box__Iiao-.PayPlatformOptions_mobile__XZq_G .PayPlatformOptions_payitem__2o3qS.PayPlatformOptions_active__3uZ7L {\n border-radius: 4px;\n border-color: #1790FF;\n}\n.PayPlatformOptions_payment-method-box__Iiao-.PayPlatformOptions_mobile__XZq_G .PayPlatformOptions_payitem__2o3qS .PayPlatformOptions_payment-method__3fVWP {\n display: inline-block;\n width: 34px;\n height: 34px;\n}\n@media (max-width: 768px) {\n .PayPlatformOptions_payitem__2o3qS {\n cursor: pointer;\n border: 1px solid transparent;\n }\n .PayPlatformOptions_payitem__2o3qS.PayPlatformOptions_active__3uZ7L {\n border-radius: 5px;\n border-color: #1790FF;\n }\n}\n";
  174. var styles$1 = {"flexContainer":"PayPlatformOptions_flexContainer__1-MCg","label":"PayPlatformOptions_label__1E4pz","payment-method-box":"PayPlatformOptions_payment-method-box__Iiao-","payment-method":"PayPlatformOptions_payment-method__3fVWP","payment-method-before":"PayPlatformOptions_payment-method-before__2Lu24","payitem":"PayPlatformOptions_payitem__2o3qS","platformName":"PayPlatformOptions_platformName__2VrlA","small":"PayPlatformOptions_small__kkYKV","normal":"PayPlatformOptions_normal__1LPcR","large":"PayPlatformOptions_large__3Tz_u","active":"PayPlatformOptions_active__3uZ7L","en":"PayPlatformOptions_en__2udua","mobile":"PayPlatformOptions_mobile__XZq_G","paymentMethodBox":"PayPlatformOptions_payment-method-box__Iiao-","paymentMethod":"PayPlatformOptions_payment-method__3fVWP","paymentMethodBefore":"PayPlatformOptions_payment-method-before__2Lu24"};
  175. styleInject(css$1);
  176. var PAY_CHANNEL = {
  177. PAYPAL: "PAYPAL_PAYPAL",
  178. // PAYPAL_LIVE
  179. ALI_WEB: "ALI_WEB",
  180. ALI_WAP: "ALI_WAP",
  181. WX_WAP: "WX_WAP",
  182. WX_NATIVE: "WX_NATIVE"
  183. };
  184. var PayPlatformOptions =
  185. /*#__PURE__*/
  186. function (_PureComponent) {
  187. _inherits(PayPlatformOptions, _PureComponent);
  188. function PayPlatformOptions() {
  189. _classCallCheck(this, PayPlatformOptions);
  190. return _possibleConstructorReturn(this, _getPrototypeOf(PayPlatformOptions).apply(this, arguments));
  191. }
  192. _createClass(PayPlatformOptions, [{
  193. key: "render",
  194. value: function render() {
  195. var _objectSpread5, _objectSpread6, _objectSpread7;
  196. var _this$props = this.props,
  197. payitem = _this$props.payitem,
  198. onPayItemChange = _this$props.onPayItemChange,
  199. _this$props$isMobile = _this$props.isMobile,
  200. isMobile = _this$props$isMobile === void 0 ? false : _this$props$isMobile,
  201. _this$props$size = _this$props.size,
  202. size = _this$props$size === void 0 ? "normal" : _this$props$size,
  203. _this$props$withTitle = _this$props.withTitle,
  204. withTitle = _this$props$withTitle === void 0 ? true : _this$props$withTitle,
  205. titleTxt = _this$props.titleTxt,
  206. _this$props$locale = _this$props.locale,
  207. locale = _this$props$locale === void 0 ? "zh" : _this$props$locale;
  208. var titleDOM = null;
  209. if (withTitle) {
  210. var titleResult = titleTxt || locale === 'zh' ? '支付方式' : 'Payment';
  211. titleDOM = React.createElement("div", {
  212. className: styles$1.label
  213. }, titleResult);
  214. }
  215. if (isMobile) {
  216. var _objectSpread2$1, _objectSpread3, _objectSpread4;
  217. return React.createElement("div", null, titleDOM, React.createElement("div", {
  218. className: classnames(styles$1["payment-method-box"], _defineProperty({}, styles$1.mobile, isMobile))
  219. }, React.createElement("div", {
  220. className: styles$1.flexContainer
  221. }, React.createElement("div", {
  222. className: styles$1.flexItem
  223. }, React.createElement("div", {
  224. className: classnames(_objectSpread2((_objectSpread2$1 = {}, _defineProperty(_objectSpread2$1, styles$1.payitem, true), _defineProperty(_objectSpread2$1, styles$1.active, payitem === PAY_CHANNEL.ALI_WEB), _objectSpread2$1), exportStyleSizeClass(styles$1, size)), styles$1[locale]),
  225. onClick: function onClick() {
  226. onPayItemChange(PAY_CHANNEL.ALI_WEB);
  227. }
  228. }, React.createElement("img", {
  229. src: img$4,
  230. alt: "alipay",
  231. className: styles$1["payment-method"]
  232. }), React.createElement("div", {
  233. className: styles$1.platformName
  234. }, "\u652F\u4ED8\u5B9D"))), React.createElement("div", {
  235. className: styles$1.flexItem
  236. }, React.createElement("div", {
  237. className: classnames(_objectSpread2((_objectSpread3 = {}, _defineProperty(_objectSpread3, styles$1.payitem, true), _defineProperty(_objectSpread3, styles$1.active, payitem === PAY_CHANNEL.WX_NATIVE), _objectSpread3), exportStyleSizeClass(styles$1, size)), styles$1[locale]),
  238. onClick: function onClick() {
  239. onPayItemChange(PAY_CHANNEL.WX_NATIVE);
  240. }
  241. }, React.createElement("img", {
  242. src: img$5,
  243. alt: "wechatpay",
  244. className: styles$1["payment-method"]
  245. }), React.createElement("div", {
  246. className: styles$1.platformName
  247. }, "\u5FAE\u4FE1"))), React.createElement("div", {
  248. className: styles$1.flexItem
  249. }, React.createElement("div", {
  250. className: classnames(_objectSpread2((_objectSpread4 = {}, _defineProperty(_objectSpread4, styles$1.payitem, true), _defineProperty(_objectSpread4, styles$1.active, payitem === PAY_CHANNEL.PAYPAL), _objectSpread4), exportStyleSizeClass(styles$1, size)), styles$1[locale]),
  251. onClick: function onClick() {
  252. onPayItemChange(PAY_CHANNEL.PAYPAL);
  253. }
  254. }, React.createElement("img", {
  255. src: img$6,
  256. alt: "paypal",
  257. className: styles$1["payment-method"]
  258. }), React.createElement("div", {
  259. className: styles$1.platformName
  260. }, "Paypal"))))));
  261. }
  262. return React.createElement("div", null, titleDOM, React.createElement("div", {
  263. className: styles$1["payment-method-box"]
  264. }, React.createElement("div", {
  265. className: styles$1.flexContainer
  266. }, React.createElement("div", {
  267. className: styles$1.flexItem
  268. }, React.createElement("div", {
  269. className: classnames(_objectSpread2((_objectSpread5 = {}, _defineProperty(_objectSpread5, styles$1.payitem, true), _defineProperty(_objectSpread5, styles$1.active, payitem === PAY_CHANNEL.ALI_WEB), _objectSpread5), exportStyleSizeClass(styles$1, size)), styles$1[locale]),
  270. onClick: function onClick() {
  271. onPayItemChange(PAY_CHANNEL.ALI_WEB);
  272. }
  273. }, React.createElement("span", {
  274. className: styles$1["payment-method-before"]
  275. }), React.createElement("img", {
  276. src: img$1,
  277. alt: "alipay",
  278. className: styles$1["payment-method"]
  279. }))), React.createElement("div", {
  280. className: styles$1.flexItem
  281. }, React.createElement("div", {
  282. className: classnames(_objectSpread2((_objectSpread6 = {}, _defineProperty(_objectSpread6, styles$1.payitem, true), _defineProperty(_objectSpread6, styles$1.active, payitem === PAY_CHANNEL.WX_NATIVE), _objectSpread6), exportStyleSizeClass(styles$1, size)), styles$1[locale]),
  283. onClick: function onClick() {
  284. onPayItemChange(PAY_CHANNEL.WX_NATIVE);
  285. }
  286. }, React.createElement("span", {
  287. className: styles$1["payment-method-before"]
  288. }), React.createElement("img", {
  289. src: img$2,
  290. alt: "wechatpay",
  291. className: styles$1["payment-method"]
  292. }))), React.createElement("div", {
  293. className: styles$1.flexItem
  294. }, React.createElement("div", {
  295. className: classnames(_objectSpread2((_objectSpread7 = {}, _defineProperty(_objectSpread7, styles$1.payitem, true), _defineProperty(_objectSpread7, styles$1.active, payitem === PAY_CHANNEL.PAYPAL), _objectSpread7), exportStyleSizeClass(styles$1, size)), styles$1[locale]),
  296. onClick: function onClick() {
  297. onPayItemChange(PAY_CHANNEL.PAYPAL);
  298. }
  299. }, React.createElement("span", {
  300. className: styles$1["payment-method-before"]
  301. }), React.createElement("img", {
  302. src: img$3,
  303. alt: "paypal",
  304. className: styles$1["payment-method"]
  305. }))))));
  306. }
  307. }]);
  308. return PayPlatformOptions;
  309. }(PureComponent);
  310. var css$2 = ".PriceOptions_options__iSN_S {\n padding: 20px 50px;\n border-bottom: 1px dashed #00000017;\n}\n.PriceOptions_options__iSN_S p {\n font-size: 14px;\n font-weight: 400;\n color: #616a79;\n margin-bottom: 20px;\n}\n.PriceOptions_options__iSN_S .PriceOptions_infoItem__p5iwD {\n padding-right: 0;\n}\n.PriceOptions_options__iSN_S .PriceOptions_infoItem__p5iwD .PriceOptions_priceItem__3ahwJ {\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__iSN_S .PriceOptions_infoItem__p5iwD .PriceOptions_priceItem__3ahwJ.PriceOptions_active__3cl1G {\n background: rgba(255, 50, 102, 0.1);\n border-radius: 4px;\n border: 1px solid #ff3266;\n color: #616a79;\n}\n.PriceOptions_options__iSN_S .PriceOptions_infoItem__p5iwD .PriceOptions_priceInput__2GSDh {\n display: inline-block;\n min-width: 70px;\n width: auto;\n margin: 6px;\n text-align: center;\n}\n.PriceOptions_options__iSN_S .PriceOptions_infoItem__p5iwD 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__iSN_S .PriceOptions_infoItem__p5iwD .PriceOptions_rate__FJSKL {\n margin-left: 10px;\n}\n.PriceOptions_options__iSN_S .PriceOptions_infoItem__p5iwD .PriceOptions_rate__FJSKL i {\n margin-right: 5px;\n color: #1790FF;\n}\n.PriceOptions_options__iSN_S.PriceOptions_small__3O05i {\n padding: 0 0 12px 0;\n border-bottom: none;\n}\n.PriceOptions_options__iSN_S.PriceOptions_small__3O05i p {\n margin-bottom: 8px;\n}\n.PriceOptions_options__iSN_S.PriceOptions_small__3O05i .PriceOptions_infoItem__p5iwD {\n text-align: center;\n}\n.PriceOptions_options__iSN_S.PriceOptions_small__3O05i .PriceOptions_infoItem__p5iwD .PriceOptions_priceItem__3ahwJ {\n border-radius: 6px;\n height: 32px;\n width: 72px;\n margin: 0 0 12px 19px;\n}\n.PriceOptions_options__iSN_S.PriceOptions_small__3O05i .PriceOptions_infoItem__p5iwD .PriceOptions_priceItem__3ahwJ:first-child {\n margin: 0 0 12px 0px;\n}\n.PriceOptions_options__iSN_S.PriceOptions_small__3O05i .PriceOptions_infoItem__p5iwD .PriceOptions_priceInput__2GSDh {\n display: block;\n width: 254px;\n border-radius: 6px;\n height: 32px;\n}\n@media (max-width: 768px) {\n .PriceOptions_options__iSN_S {\n padding: 20px 20px;\n }\n .PriceOptions_options__iSN_S p {\n font-size: 14px;\n font-weight: 400;\n color: #616a79;\n }\n .PriceOptions_options__iSN_S .PriceOptions_infoItem__p5iwD {\n padding-right: 0;\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n .PriceOptions_options__iSN_S .PriceOptions_infoItem__p5iwD .PriceOptions_priceBtn__2vdWf {\n display: flex;\n justify-content: space-between;\n }\n .PriceOptions_options__iSN_S .PriceOptions_infoItem__p5iwD .PriceOptions_priceItem__3ahwJ {\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__iSN_S .PriceOptions_infoItem__p5iwD .PriceOptions_priceItem__3ahwJ.PriceOptions_active__3cl1G {\n background-color: #fff;\n color: #FF3266FF;\n border-radius: 4px;\n border: 1px solid #ff3266;\n }\n .PriceOptions_options__iSN_S .PriceOptions_infoItem__p5iwD .PriceOptions_priceInput__2GSDh {\n border-radius: 6px;\n height: 36px;\n width: auto;\n }\n}\n";
  311. var styles$2 = {"options":"PriceOptions_options__iSN_S","infoItem":"PriceOptions_infoItem__p5iwD","priceItem":"PriceOptions_priceItem__3ahwJ","active":"PriceOptions_active__3cl1G","priceInput":"PriceOptions_priceInput__2GSDh","rate":"PriceOptions_rate__FJSKL","small":"PriceOptions_small__3O05i","priceBtn":"PriceOptions_priceBtn__2vdWf"};
  312. styleInject(css$2);
  313. var FormattedMessage = function FormattedMessage(_ref) {
  314. var id = _ref.id;
  315. return id;
  316. };
  317. var PriceOptions = function PriceOptions(_ref2) {
  318. var price = _ref2.price,
  319. onPriceChange = _ref2.onPriceChange,
  320. _ref2$size = _ref2.size,
  321. _ref2$focusScroll = _ref2.focusScroll,
  322. focusScroll = _ref2$focusScroll === void 0 ? true : _ref2$focusScroll,
  323. _ref2$withTitle = _ref2.withTitle,
  324. withTitle = _ref2$withTitle === void 0 ? true : _ref2$withTitle,
  325. inputRef = _ref2.inputRef;
  326. var defaultOptions = [100, 600, 800]; // 控制是否为其他金额输入情况
  327. var _useState = useState(false),
  328. _useState2 = _slicedToArray(_useState, 2),
  329. inputStatus = _useState2[0],
  330. setInputStatus = _useState2[1];
  331. return React.createElement("div", {
  332. className: classnames(styles$2.options)
  333. }, withTitle ? React.createElement("p", null, React.createElement(FormattedMessage, {
  334. id: "pay.price.select.text"
  335. })) : null, React.createElement("div", {
  336. className: styles$2.infoItem,
  337. style: {
  338. marginBottom: "-12px"
  339. }
  340. }, React.createElement("span", {
  341. className: styles$2.priceBtn
  342. }, defaultOptions.map(function (item) {
  343. var _classnames;
  344. return React.createElement("span", {
  345. className: classnames((_classnames = {}, _defineProperty(_classnames, styles$2.priceItem, true), _defineProperty(_classnames, styles$2.active, price === item && !inputStatus), _classnames)),
  346. key: item,
  347. onClick: function onClick() {
  348. onPriceChange(item);
  349. setInputStatus(false);
  350. }
  351. }, React.createElement(FormattedMessage, {
  352. id: "".concat(formatMoney(item / 100, 0), "\xA5")
  353. }));
  354. })), React.createElement(_Input, {
  355. ref: inputRef,
  356. onMouseEnter: function onMouseEnter() {
  357. if (inputStatus && inputRef && inputRef.current) {
  358. inputRef.current.focus();
  359. inputRef.current.select();
  360. }
  361. },
  362. suffix: "\xA5",
  363. className: styles$2.priceInput,
  364. value: inputStatus ? price / 100 || "" : "",
  365. placeholder: "Others",
  366. onChange: function onChange(e) {
  367. var n = +e.target.value;
  368. if (Number.isNaN(n)) {
  369. return;
  370. } // 测试暂时改成1分
  371. onPriceChange(n * 100);
  372. },
  373. onClick: function onClick(e) {
  374. onPriceChange(0);
  375. setInputStatus(true);
  376. },
  377. onFocus: function onFocus(e) {
  378. if (focusScroll) {
  379. e.target.scrollIntoView();
  380. }
  381. }
  382. })));
  383. };
  384. var css$3 = ".WaitPayInfoView_waitingContainer__3wZ0a {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n}\n";
  385. var styles$3 = {"waitingContainer":"WaitPayInfoView_waitingContainer__3wZ0a"};
  386. styleInject(css$3);
  387. const img$7 = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNDhweCIgaGVpZ2h0PSI0M3B4IiB2aWV3Qm94PSIwIDAgNDggNDMiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUwLjIgKDU1MDQ3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5rY3hxX3BvcG92ZXJzX2ljb25fdGFuaGFvPC90aXRsZT4KICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPgogICAgPGRlZnM+PC9kZWZzPgogICAgPGcgaWQ9IlBhZ2UtMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IuWPpuWuoue9kV/nm7Tmkq3or75f6K++56iL5LuL57uN6K+m5oOFX+i0reS5sOaPkOekuuW8ueeqlyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTkzNi4wMDAwMDAsIC0xOTAuMDAwMDAwKSIgZmlsbC1ydWxlPSJub256ZXJvIj4KICAgICAgICAgICAgPGcgaWQ9Ikdyb3VwLTIyIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg2OTAuMDAwMDAwLCAxMTAuMDAwMDAwKSI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g2NzY0NzA2LDIyLjQ5NzEwOTggNSwyMy42MTQ3NTY5IDUsMjQuOTk3MTA5OCBDNSwyNi4zNzk0NjI4IDMuODY3NjQ3MDYsMjcuNDk3MTA5OCAyLjUsMjcuNDk3MTA5OCBaIE0yLjUsMTkuNDIxOTY1MyBDMS4xMzIzNTI5NCwxOS40MjE5NjUzIDAsMTguMTkxOTA3NSAwLDE2LjY3MDUyMDIgTDAsMi43NTE0NDUwOSBDMCwxLjI0NjI0Mjc3IDEuMTMyMzUyOTQsMCAyLjUsMCBDMy44Njc2NDcwNiwwIDUsMS4yMzAwNTc4IDUsMi43NTE0NDUwOSBMNSwxNi42NzA1MjAyIEM1LDE4LjE5MTkwNzUgMy44Njc2NDcwNiwxOS40MjE5NjUzIDIuNSwxOS40MjE5NjUzIFoiIGlkPSJTaGFwZSI+PC9wYXRoPgogICAgICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+';
  388. var WaitPayInfoView =
  389. /*#__PURE__*/
  390. function (_Component) {
  391. _inherits(WaitPayInfoView, _Component);
  392. function WaitPayInfoView() {
  393. _classCallCheck(this, WaitPayInfoView);
  394. return _possibleConstructorReturn(this, _getPrototypeOf(WaitPayInfoView).apply(this, arguments));
  395. }
  396. _createClass(WaitPayInfoView, [{
  397. key: "render",
  398. value: function render() {
  399. var _this$props = this.props,
  400. onClickPayed = _this$props.onClickPayed,
  401. onClickProblem = _this$props.onClickProblem;
  402. return React.createElement("div", {
  403. className: styles$3.waitingContainer
  404. }, React.createElement("div", {
  405. className: styles$3.infoIconImgContainer
  406. }, React.createElement("img", {
  407. src: img$7,
  408. alt: "info label icon"
  409. })), React.createElement("div", null, React.createElement("div", {
  410. className: styles$3.pay_text
  411. }, "live.course_info.pay.notification"), React.createElement("div", {
  412. className: styles$3.btn_row
  413. }, React.createElement(_Button, {
  414. className: classnames(styles$3.pay_btn, styles$3.btn_default),
  415. size: "small",
  416. onClick: function onClick() {
  417. onClickPayed && onClickPayed();
  418. }
  419. }, "live.course_info.pay.payed"), React.createElement(_Button, {
  420. className: styles$3.btn_default,
  421. size: "small",
  422. style: {
  423. marginLeft: '16px'
  424. },
  425. onClick: function onClick() {
  426. onClickProblem && onClickProblem();
  427. }
  428. }, "live.course_info.pay.help"))));
  429. }
  430. }]);
  431. return WaitPayInfoView;
  432. }(Component);
  433. _defineProperty(WaitPayInfoView, "defaultProps", {
  434. onClickPayed: function onClickPayed() {
  435. console.log("onClickPayed");
  436. },
  437. onClickProblem: function onClickProblem() {
  438. console.log("onClickProblem");
  439. }
  440. });
  441. export { ConsumeListView as C, PayPlatformOptions as P, WaitPayInfoView as W, PriceOptions as a };
  442. //# sourceMappingURL=index-8e31d90e.js.map