Açıklama Yok

index.js 5.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. function _interopDefault(ex) {
  4. return ex && typeof ex === "object" && "default" in ex ? ex["default"] : ex;
  5. }
  6. var inherits = require("../inherits-c86d64c1.js");
  7. var React = require("react");
  8. var React__default = _interopDefault(React);
  9. var styleInject_es = require("../style-inject.es-dcee06b6.js");
  10. require("../_commonjsHelpers-72d386ba.js");
  11. var index = require("../index-44e17595.js");
  12. var css =
  13. ".WaitPayInfoView_waitingContainer__3pU2F {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n}\n";
  14. var styles = {
  15. waitingContainer: "WaitPayInfoView_waitingContainer__3pU2F"
  16. };
  17. styleInject_es.styleInject(css);
  18. var img =
  19. "data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg width='48px' height='43px' viewBox='0 0 48 43' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3c!-- Generator: Sketch 50.2 (55047) - http://www.bohemiancoding.com/sketch --%3e %3ctitle%3ekcxq_popovers_icon_tanhao%3c/title%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e%3c/defs%3e %3cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e %3cg id='%e5%8f%a6%e5%ae%a2%e7%bd%91_%e7%9b%b4%e6%92%ad%e8%af%be_%e8%af%be%e7%a8%8b%e4%bb%8b%e7%bb%8d%e8%af%a6%e6%83%85_%e8%b4%ad%e4%b9%b0%e6%8f%90%e7%a4%ba%e5%bc%b9%e7%aa%97' transform='translate(-936.000000%2c -190.000000)' fill-rule='nonzero'%3e %3cg id='Group-22' transform='translate(690.000000%2c 110.000000)'%3e %3cg id='kcxq_popovers_icon_tanhao' transform='translate(246.000000%2c 80.000000)'%3e %3cpath d='M48%2c21.5 C48%2c33.3736626 38.3645756%2c43 26.4797048%2c43 C21.1306273%2c43 17.0391144%2c42.1506173 13.2841328%2c38.9300412 C11.8140221%2c37.6736626 1.700369%2c43.2123457 0.177121771%2c39.2839506 C-1.06273063%2c36.0987654 5.95129151%2c29.2506173 5.31365314%2c27.0740741 C4.76457565%2c25.1806584 4.95940959%2c23.5703704 4.95940959%2c21.5 C4.95940959%2c9.62633745 14.5948339%2c0 26.4797048%2c0 C38.3645756%2c0 48%2c9.62633745 48%2c21.5 Z' id='Shape' fill='%231790FF'%3e%3c/path%3e %3cg id='Group' transform='translate(23.848708%2c 8.193416)' fill='white'%3e %3cpath d='M2.5%2c27.4971098 C1.13235294%2c27.4971098 0%2c26.3794628 0%2c24.9971098 C0%2c23.6147569 1.13235294%2c22.4971098 2.5%2c22.4971098 C3.86764706%2c22.4971098 5%2c23.6147569 5%2c24.9971098 C5%2c26.3794628 3.86764706%2c27.4971098 2.5%2c27.4971098 Z M2.5%2c19.4219653 C1.13235294%2c19.4219653 0%2c18.1919075 0%2c16.6705202 L0%2c2.75144509 C0%2c1.24624277 1.13235294%2c0 2.5%2c0 C3.86764706%2c0 5%2c1.2300578 5%2c2.75144509 L5%2c16.6705202 C5%2c18.1919075 3.86764706%2c19.4219653 2.5%2c19.4219653 Z' id='Shape'%3e%3c/path%3e %3c/g%3e %3c/g%3e %3c/g%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
  20. var Button = function Button() {
  21. for (
  22. var _len = arguments.length, props = new Array(_len), _key = 0;
  23. _key < _len;
  24. _key++
  25. ) {
  26. props[_key] = arguments[_key];
  27. }
  28. return React__default.createElement(
  29. "button",
  30. Object.assign({}, props),
  31. "button"
  32. );
  33. };
  34. var WaitPayInfoView =
  35. /*#__PURE__*/
  36. (function(_Component) {
  37. inherits._inherits(WaitPayInfoView, _Component);
  38. function WaitPayInfoView() {
  39. inherits._classCallCheck(this, WaitPayInfoView);
  40. return inherits._possibleConstructorReturn(
  41. this,
  42. inherits._getPrototypeOf(WaitPayInfoView).apply(this, arguments)
  43. );
  44. }
  45. inherits._createClass(WaitPayInfoView, [
  46. {
  47. key: "render",
  48. value: function render() {
  49. var _this$props = this.props,
  50. onClickPayed = _this$props.onClickPayed,
  51. onClickProblem = _this$props.onClickProblem;
  52. return React__default.createElement(
  53. "div",
  54. {
  55. className: styles.waitingContainer
  56. },
  57. React__default.createElement(
  58. "div",
  59. {
  60. className: styles.infoIconImgContainer
  61. },
  62. React__default.createElement("img", {
  63. src: img,
  64. alt: "info label icon"
  65. })
  66. ),
  67. React__default.createElement(
  68. "div",
  69. null,
  70. React__default.createElement(
  71. "div",
  72. {
  73. className: styles.pay_text
  74. },
  75. "live.course_info.pay.notification"
  76. ),
  77. React__default.createElement(
  78. "div",
  79. {
  80. className: styles.btn_row
  81. },
  82. React__default.createElement(
  83. Button,
  84. {
  85. className: index.classnames(
  86. styles.pay_btn,
  87. styles.btn_default
  88. ),
  89. size: "small",
  90. onClick: function onClick() {
  91. onClickPayed && onClickPayed();
  92. }
  93. },
  94. "live.course_info.pay.payed"
  95. ),
  96. React__default.createElement(
  97. Button,
  98. {
  99. className: styles.btn_default,
  100. size: "small",
  101. style: {
  102. marginLeft: "16px"
  103. },
  104. onClick: function onClick() {
  105. onClickProblem && onClickProblem();
  106. }
  107. },
  108. "live.course_info.pay.help"
  109. )
  110. )
  111. )
  112. );
  113. }
  114. }
  115. ]);
  116. return WaitPayInfoView;
  117. })(React.Component);
  118. WaitPayInfoView.defaultProps = {
  119. onClickPayed: function onClickPayed() {
  120. console.log("onClickPayed");
  121. },
  122. onClickProblem: function onClickProblem() {
  123. console.log("onClickProblem");
  124. }
  125. };
  126. exports.WaitPayInfoView = WaitPayInfoView;
  127. exports.default = WaitPayInfoView;
  128. //# sourceMappingURL=index.js.map