Ingen beskrivning

index.js 5.2KB

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