Keine Beschreibung

index.js 28KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  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 React = require("react");
  7. var React__default = _interopDefault(React);
  8. var styleInject_es = require("../style-inject.es-dcee06b6.js");
  9. var defineProperty = require("../defineProperty-ba7cd53d.js");
  10. require("../_commonjsHelpers-72d386ba.js");
  11. var index = require("../index-44e17595.js");
  12. var utils = require("../utils-b800dc99.js");
  13. var img =
  14. "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAABECAYAAAAGGj65AAAOu0lEQVR42u1dCZgU1REeEEVAjggG1CgqhKhAuNTPfj2zzB7sskk4VNCgmEPjGo05JCoGNeKZmBijnyZKIkSNVxZ2l92FZVmW5WYFQQEF5EYW5GbOvY9OVU/30jPzeub1MbMzQ9f31ccx3W96+v1d9arqr9c2myWWWGKJJZZYYoklllhiiSWWnNNClvsy0lf6Vgwqc/t6FblbbflnhITU+a62fsXulmFLPa7J6/0l0zY2DrVmL5ml1NtvZIV3S8ICLop2LXC15a7xl9vyhfOsyUwyGVzuGzqg1O1PVvApdUyl92jWJqG3NavJIkWuPgA+TyqAT1a+yrsvlrfM6XT2A70KNTst7WrUXIfjknMFMll2+zVOnr85TJ3OAZoHG7HMW5VK4JN1+kb/q7G4+emETBpLuFZQIUh57gMzxs/Nze0KY+138sSl1HSe+4vW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10jZvejOqOG81UjEmgGmUFz1KIZFLBYgWfQDwtu8Az65rAF/msOYgYbWu6gjPNg33IHHRh1fdsddGC/F8mgJbPDHXEHkWbLCTrPIDkj4rukFGHVwNMPrEUEySN14YO1KAFceZQi2uwdxfq02ZIsvKXNFiQMMshMzY5DEl4wuyDhnF6LloSzFWaDtTDA7NhzgN3MBobl0pIYtq8keZPv9HECNQA+usBHPGB5qgDsu8Chy1pAiemUxQrYzWyviN8l6I/T+wU2HDmgaaHs/gAAAABJRU5ErkJggg==";
  25. var css =
  26. ".PayPlatformOptions_flexContainer__b-T24 {\n display: flex;\n justify-content: space-around;\n align-items: center;\n}\n.PayPlatformOptions_label__3uVHv {\n font-size: 14px;\n font-weight: 400;\n color: #616A79;\n}\n.PayPlatformOptions_payChannelBox__3_kPR {\n padding: 20px 10px 10px 10px;\n text-align: center;\n}\n.PayPlatformOptions_payChannelBox__3_kPR .PayPlatformOptions_paymentImage__1Jwya {\n display: inline-block;\n margin: 0;\n width: 60%;\n vertical-align: middle;\n}\n.PayPlatformOptions_payChannelBox__3_kPR .PayPlatformOptions_paymentImage-before__2mPbW {\n display: inline-block;\n height: 100%;\n vertical-align: middle;\n}\n.PayPlatformOptions_payChannelBox__3_kPR .PayPlatformOptions_payChannelBlock__3YbXL {\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_payChannelBox__3_kPR .PayPlatformOptions_payChannelBlock__3YbXL .PayPlatformOptions_platformName__U1hFh {\n text-align: center;\n white-space: nowrap;\n}\n.PayPlatformOptions_payChannelBox__3_kPR .PayPlatformOptions_payChannelBlock__3YbXL.PayPlatformOptions_small__rnqDt {\n width: 88px;\n height: 36px;\n line-height: 36px;\n}\n.PayPlatformOptions_payChannelBox__3_kPR .PayPlatformOptions_payChannelBlock__3YbXL.PayPlatformOptions_small__rnqDt .PayPlatformOptions_paymentImage__1Jwya {\n margin: 0;\n}\n.PayPlatformOptions_payChannelBox__3_kPR .PayPlatformOptions_payChannelBlock__3YbXL.PayPlatformOptions_normal__12jfT {\n width: 132px;\n}\n.PayPlatformOptions_payChannelBox__3_kPR .PayPlatformOptions_payChannelBlock__3YbXL.PayPlatformOptions_large__Q_Mjs {\n width: 162px;\n}\n.PayPlatformOptions_payChannelBox__3_kPR .PayPlatformOptions_payChannelBlock__3YbXL.PayPlatformOptions_active__3wAdi {\n border-radius: 5px;\n border-color: #1790FF;\n box-shadow: 0px 2px 6px 0px rgba(163, 163, 163, 0.3);\n}\n.PayPlatformOptions_payChannelBox__3_kPR .PayPlatformOptions_payChannelBlock__3YbXL.PayPlatformOptions_en__Ns_g7 {\n font-size: 12px;\n}\n.PayPlatformOptions_payChannelBox__3_kPR.PayPlatformOptions_mobile__3Ckag {\n padding: 8px 10px 10px 8px;\n}\n.PayPlatformOptions_payChannelBox__3_kPR.PayPlatformOptions_mobile__3Ckag .PayPlatformOptions_payChannelBlock__3YbXL {\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_payChannelBox__3_kPR.PayPlatformOptions_mobile__3Ckag .PayPlatformOptions_payChannelBlock__3YbXL.PayPlatformOptions_active__3wAdi {\n border-radius: 4px;\n border-color: #1790FF;\n}\n.PayPlatformOptions_payChannelBox__3_kPR.PayPlatformOptions_mobile__3Ckag .PayPlatformOptions_payChannelBlock__3YbXL .PayPlatformOptions_paymentImage__1Jwya {\n display: inline-block;\n width: 34px;\n height: 34px;\n}\n@media (max-width: 768px) {\n .PayPlatformOptions_payChannelBlock__3YbXL {\n cursor: pointer;\n border: 1px solid transparent;\n }\n .PayPlatformOptions_payChannelBlock__3YbXL.PayPlatformOptions_active__3wAdi {\n border-radius: 5px;\n border-color: #1790FF;\n }\n}\n";
  27. var styles = {
  28. flexContainer: "PayPlatformOptions_flexContainer__b-T24",
  29. label: "PayPlatformOptions_label__3uVHv",
  30. payChannelBox: "PayPlatformOptions_payChannelBox__3_kPR",
  31. paymentImage: "PayPlatformOptions_paymentImage__1Jwya",
  32. "paymentImage-before": "PayPlatformOptions_paymentImage-before__2mPbW",
  33. payChannelBlock: "PayPlatformOptions_payChannelBlock__3YbXL",
  34. platformName: "PayPlatformOptions_platformName__U1hFh",
  35. small: "PayPlatformOptions_small__rnqDt",
  36. normal: "PayPlatformOptions_normal__12jfT",
  37. large: "PayPlatformOptions_large__Q_Mjs",
  38. active: "PayPlatformOptions_active__3wAdi",
  39. en: "PayPlatformOptions_en__Ns_g7",
  40. mobile: "PayPlatformOptions_mobile__3Ckag",
  41. paymentImageBefore: "PayPlatformOptions_paymentImage-before__2mPbW"
  42. };
  43. styleInject_es.styleInject(css);
  44. function ownKeys(object, enumerableOnly) {
  45. var keys = Object.keys(object);
  46. if (Object.getOwnPropertySymbols) {
  47. var symbols = Object.getOwnPropertySymbols(object);
  48. if (enumerableOnly)
  49. symbols = symbols.filter(function(sym) {
  50. return Object.getOwnPropertyDescriptor(object, sym).enumerable;
  51. });
  52. keys.push.apply(keys, symbols);
  53. }
  54. return keys;
  55. }
  56. function _objectSpread(target) {
  57. for (var i = 1; i < arguments.length; i++) {
  58. var source = arguments[i] != null ? arguments[i] : {};
  59. if (i % 2) {
  60. ownKeys(Object(source), true).forEach(function(key) {
  61. defineProperty._defineProperty(target, key, source[key]);
  62. });
  63. } else if (Object.getOwnPropertyDescriptors) {
  64. Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
  65. } else {
  66. ownKeys(Object(source)).forEach(function(key) {
  67. Object.defineProperty(
  68. target,
  69. key,
  70. Object.getOwnPropertyDescriptor(source, key)
  71. );
  72. });
  73. }
  74. }
  75. return target;
  76. }
  77. var PAY_CHANNEL = {
  78. PAYPAL: "PAYPAL_PAYPAL",
  79. ALI_WEB: "ALI_WEB",
  80. ALI_WAP: "ALI_WAP",
  81. WX_WAP: "WX_WAP",
  82. WX_NATIVE: "WX_NATIVE"
  83. };
  84. var PAY_CHANNEL_CATEGORY = {
  85. ALI: "Alipay",
  86. WX: "Wechat",
  87. PAYPAL: "Paypal"
  88. };
  89. var PAY_CHANNEL_INSTANCE = [
  90. {
  91. image: {
  92. desktop: img,
  93. mobile: img$3
  94. },
  95. text: {
  96. zh: "支付宝",
  97. en: "Alipay"
  98. },
  99. key: PAY_CHANNEL_CATEGORY.ALI
  100. },
  101. {
  102. image: {
  103. desktop: img$1,
  104. mobile: img$4
  105. },
  106. text: {
  107. zh: "微信",
  108. en: "WeChat"
  109. },
  110. key: PAY_CHANNEL_CATEGORY.WX
  111. },
  112. {
  113. image: {
  114. desktop: img$2,
  115. mobile: img$5
  116. },
  117. text: {
  118. zh: "PayPal",
  119. en: "PayPal"
  120. },
  121. key: PAY_CHANNEL_CATEGORY.PAYPAL
  122. }
  123. ];
  124. var PayPlatformBlock = function PayPlatformBlock(_ref) {
  125. var _ref$isMobile = _ref.isMobile,
  126. isMobile = _ref$isMobile === void 0 ? false : _ref$isMobile,
  127. _ref$isActive = _ref.isActive,
  128. isActive = _ref$isActive === void 0 ? false : _ref$isActive,
  129. _ref$size = _ref.size,
  130. size = _ref$size === void 0 ? "normal" : _ref$size,
  131. onClick = _ref.onClick,
  132. text = _ref.text,
  133. image = _ref.image,
  134. _ref$locale = _ref.locale,
  135. locale = _ref$locale === void 0 ? "zh" : _ref$locale;
  136. var showText = text[locale];
  137. if (isMobile) {
  138. return React__default.createElement(
  139. "div",
  140. {
  141. className: styles.flexItem
  142. },
  143. React__default.createElement(
  144. "div",
  145. {
  146. className: index.classnames(
  147. styles.payChannelBlock,
  148. _objectSpread(
  149. defineProperty._defineProperty({}, styles.active, isActive),
  150. utils.exportStyleSizeClass(styles, size)
  151. ),
  152. styles[locale]
  153. ),
  154. onClick: onClick
  155. },
  156. React__default.createElement("img", {
  157. src: image.mobile,
  158. alt: showText,
  159. className: styles.paymentImage
  160. }),
  161. React__default.createElement(
  162. "div",
  163. {
  164. className: styles.platformName
  165. },
  166. showText
  167. )
  168. )
  169. );
  170. }
  171. return React__default.createElement(
  172. "div",
  173. {
  174. className: styles.flexItem
  175. },
  176. React__default.createElement(
  177. "div",
  178. {
  179. className: index.classnames(
  180. styles.payChannelBlock,
  181. _objectSpread(
  182. defineProperty._defineProperty({}, styles.active, isActive),
  183. utils.exportStyleSizeClass(styles, size)
  184. ),
  185. styles[locale]
  186. ),
  187. onClick: onClick
  188. },
  189. React__default.createElement("span", {
  190. className: styles["payment-method-before"]
  191. }),
  192. React__default.createElement("img", {
  193. src: image.desktop,
  194. alt: showText,
  195. className: styles.paymentImage
  196. })
  197. )
  198. );
  199. };
  200. var PayPlatformOptions = function PayPlatformOptions(_ref2) {
  201. var payChannel = _ref2.payChannel,
  202. onPayChannelChange = _ref2.onPayChannelChange,
  203. _ref2$size = _ref2.size,
  204. size = _ref2$size === void 0 ? "normal" : _ref2$size,
  205. _ref2$isMobile = _ref2.isMobile,
  206. isMobile = _ref2$isMobile === void 0 ? false : _ref2$isMobile,
  207. _ref2$withTitle = _ref2.withTitle,
  208. withTitle = _ref2$withTitle === void 0 ? true : _ref2$withTitle,
  209. titleText = _ref2.titleText,
  210. _ref2$locale = _ref2.locale,
  211. locale = _ref2$locale === void 0 ? "zh" : _ref2$locale;
  212. var titleDOM = null;
  213. var payListDOM = [
  214. {
  215. valueKey: PAY_CHANNEL.ALI_WEB,
  216. categoryKey: PAY_CHANNEL_CATEGORY.ALI
  217. },
  218. {
  219. valueKey: PAY_CHANNEL.WX_NATIVE,
  220. categoryKey: PAY_CHANNEL_CATEGORY.WX
  221. },
  222. {
  223. valueKey: PAY_CHANNEL.PAYPAL,
  224. categoryKey: PAY_CHANNEL_CATEGORY.PAYPAL
  225. }
  226. ].map(function(v) {
  227. var valueKey = v.valueKey,
  228. categoryKey = v.categoryKey;
  229. var targetInstance = PAY_CHANNEL_INSTANCE.find(function(ins) {
  230. return ins.key === categoryKey;
  231. });
  232. if (targetInstance) {
  233. var text = targetInstance.text,
  234. image = targetInstance.image;
  235. return React__default.createElement(
  236. PayPlatformBlock,
  237. Object.assign(
  238. {
  239. key: valueKey
  240. },
  241. {
  242. isMobile: isMobile,
  243. locale: locale,
  244. size: size
  245. },
  246. {
  247. onClick: function onClick() {
  248. return onPayChannelChange(valueKey);
  249. },
  250. isActive: valueKey === payChannel,
  251. text: text,
  252. image: image
  253. }
  254. )
  255. );
  256. }
  257. });
  258. if (withTitle) {
  259. titleDOM = React__default.createElement(
  260. "div",
  261. {
  262. className: styles.label
  263. },
  264. titleText || locale === "zh" ? "支付方式" : "Payment"
  265. );
  266. }
  267. return React__default.createElement(
  268. "div",
  269. null,
  270. titleDOM,
  271. React__default.createElement(
  272. "div",
  273. {
  274. className: index.classnames(
  275. styles.payChannelBox,
  276. defineProperty._defineProperty({}, styles.mobile, isMobile)
  277. )
  278. },
  279. React__default.createElement(
  280. "div",
  281. {
  282. className: styles.flexContainer
  283. },
  284. payListDOM
  285. )
  286. )
  287. );
  288. };
  289. exports.PAY_CHANNEL = PAY_CHANNEL;
  290. exports.PAY_CHANNEL_CATEGORY = PAY_CHANNEL_CATEGORY;
  291. exports.default = PayPlatformOptions;
  292. //# sourceMappingURL=index.js.map