component-sanzhizhou 1.1.7 → 1.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/pay/qr.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import './qr.less';
3
3
  interface Props {
4
+ apiUrl?: string;
4
5
  productKind: Pay.ProductKind;
5
6
  vipId: number;
6
7
  idKey?: string;
package/dist/pay/qr.js CHANGED
@@ -20,7 +20,8 @@ import PayChannelList from "./payChannelList";
20
20
  // };
21
21
 
22
22
  var UserVipOrderPayQr = function UserVipOrderPayQr(_ref) {
23
- var payChannel = _ref.payChannel,
23
+ var apiUrl = _ref.apiUrl,
24
+ payChannel = _ref.payChannel,
24
25
  moneyAmount = _ref.moneyAmount,
25
26
  productCount = _ref.productCount,
26
27
  vipId = _ref.vipId,
@@ -92,6 +93,7 @@ var UserVipOrderPayQr = function UserVipOrderPayQr(_ref) {
92
93
  couponCode: couponCode,
93
94
  userToken: getLocalUserInfo().sid || ''
94
95
  }, {
96
+ apiUrl: apiUrl,
95
97
  env: env
96
98
  });
97
99
  }, {
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  interface Props {
3
+ apiUrl?: string;
3
4
  appId: string;
4
5
  nickName: React.ReactNode;
5
6
  allowPayChannelList: Pay.PayChannel[];
@@ -23,6 +23,7 @@ var BaseDict = {
23
23
  var PayRecharge = function PayRecharge(_ref) {
24
24
  var _PayChannelList$filte;
25
25
  var appId = _ref.appId,
26
+ apiUrl = _ref.apiUrl,
26
27
  nickName = _ref.nickName,
27
28
  _ref$minPrice = _ref.minPrice,
28
29
  minPrice = _ref$minPrice === void 0 ? 1 : _ref$minPrice,
@@ -180,9 +181,10 @@ var PayRecharge = function PayRecharge(_ref) {
180
181
  onList: function onList(list) {
181
182
  return setRechargeRuleList(_toConsumableArray(list));
182
183
  }
183
- })), step === 'qr-show' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PayQr
184
- // appId={ appId }
185
- , {
184
+ })), step === 'qr-show' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PayQr, {
185
+ apiUrl: apiUrl
186
+ // appId={ appId }
187
+ ,
186
188
  moneyAmount: formData.moneyAmount,
187
189
  productCount: formData.moneyAmount
188
190
  // productName={ BaseDict.productKind[ productKind ] || '' }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-sanzhizhou",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",