@fonixtree/magic-design 0.0.119 → 0.0.120

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.
@@ -11,6 +11,10 @@ require("./index.less");
11
11
 
12
12
  var _components = require("../../../../../meta-comp/components");
13
13
 
14
+ var _constants = require("../../../../../constants");
15
+
16
+ var _commonUtil = require("../../../../../utils/commonUtil");
17
+
14
18
  var _currencyUtil = require("../../../../../utils/currencyUtil");
15
19
 
16
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -238,17 +242,17 @@ function (_super) {
238
242
  case 0:
239
243
  return [4
240
244
  /*yield*/
241
- , commonFetch(window.magicDesign.MBaseUrl + "/h5/mywallet/list", {}, 'GET')];
245
+ , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/mywallet/list", {}, 'GET')];
242
246
 
243
247
  case 1:
244
248
  _a = _d.sent(), userCreditResps = _a.userCreditResps, userCashbackValues = _a.userCashbackValues;
245
249
  this.setState({
246
250
  cashback: userCashbackValues || 0,
247
251
  credit: ((_b = userCreditResps.find(function (item) {
248
- return item.creditId === 2 && [CREDIT_STATE.APPROVED.KEY, CREDIT_STATE.LOCKED.KEY].includes(item.state);
252
+ return item.creditId === 2 && [_constants.CREDIT_STATE.APPROVED.KEY, _constants.CREDIT_STATE.LOCKED.KEY].includes(item.state);
249
253
  })) === null || _b === void 0 ? void 0 : _b.availableAmount) || 0,
250
254
  bnpl: ((_c = userCreditResps.find(function (item) {
251
- return item.creditId === 1 && [CREDIT_STATE.APPROVED.KEY, CREDIT_STATE.LOCKED.KEY].includes(item.state);
255
+ return item.creditId === 1 && [_constants.CREDIT_STATE.APPROVED.KEY, _constants.CREDIT_STATE.LOCKED.KEY].includes(item.state);
252
256
  })) === null || _c === void 0 ? void 0 : _c.availableAmount) || 0
253
257
  });
254
258
  return [2
@@ -11,6 +11,10 @@ require("./index.less");
11
11
 
12
12
  var _components = require("../../../../../meta-comp/components");
13
13
 
14
+ var _constants = require("../../../../../constants");
15
+
16
+ var _commonUtil = require("../../../../../utils/commonUtil");
17
+
14
18
  var _currencyUtil = require("../../../../../utils/currencyUtil");
15
19
 
16
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -238,17 +242,17 @@ function (_super) {
238
242
  case 0:
239
243
  return [4
240
244
  /*yield*/
241
- , commonFetch(window.magicDesign.MBaseUrl + "/h5/mywallet/list", {}, 'GET')];
245
+ , (0, _commonUtil.commonFetch)(window.magicDesign.MBaseUrl + "/h5/mywallet/list", {}, 'GET')];
242
246
 
243
247
  case 1:
244
248
  _a = _d.sent(), userCreditResps = _a.userCreditResps, userCashbackValues = _a.userCashbackValues;
245
249
  this.setState({
246
250
  cashback: userCashbackValues || 0,
247
251
  credit: ((_b = userCreditResps.find(function (item) {
248
- return item.creditId === 2 && [CREDIT_STATE.APPROVED.KEY, CREDIT_STATE.LOCKED.KEY].includes(item.state);
252
+ return item.creditId === 2 && [_constants.CREDIT_STATE.APPROVED.KEY, _constants.CREDIT_STATE.LOCKED.KEY].includes(item.state);
249
253
  })) === null || _b === void 0 ? void 0 : _b.availableAmount) || 0,
250
254
  bnpl: ((_c = userCreditResps.find(function (item) {
251
- return item.creditId === 1 && [CREDIT_STATE.APPROVED.KEY, CREDIT_STATE.LOCKED.KEY].includes(item.state);
255
+ return item.creditId === 1 && [_constants.CREDIT_STATE.APPROVED.KEY, _constants.CREDIT_STATE.LOCKED.KEY].includes(item.state);
252
256
  })) === null || _c === void 0 ? void 0 : _c.availableAmount) || 0
253
257
  });
254
258
  return [2
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "0.0.119",
4
+ "version": "0.0.120",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",