component-shipinlv 0.0.13 → 0.0.16

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.
Files changed (2) hide show
  1. package/dist/lib/Tool.js +6 -6
  2. package/package.json +1 -1
package/dist/lib/Tool.js CHANGED
@@ -2,7 +2,6 @@ import _typeof from "@babel/runtime/helpers/esm/typeof";
2
2
  import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
3
3
  import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
4
4
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
5
- var _window8;
6
5
  // @ts-nocheck
7
6
 
8
7
  import { Modal, message, Tooltip } from 'antd';
@@ -65,7 +64,7 @@ var Tool = _objectSpread(_objectSpread({
65
64
  GData: {
66
65
  userInfo: {}
67
66
  },
68
- //window._GData,
67
+ //win dow._GData,
69
68
  data: function data(key, value) {
70
69
  if (typeof value === 'undefined') {
71
70
  this.GData[key] = value;
@@ -1095,13 +1094,14 @@ var Tool = _objectSpread(_objectSpread({
1095
1094
  var data = JSON.stringify(_objectSpread({
1096
1095
  payBackUrl: document.location.href
1097
1096
  }, query));
1098
- (top || window).document.location.href = 'https://pay.shanren.wang/pay/we-h5?data=' + encodeURIComponent(data);
1097
+ document.location.href = 'https://pay.shanren.wang/pay/we-h5?data=' + encodeURIComponent(data);
1099
1098
  }
1100
1099
  });
1101
- if (window && !((_window8 = window) !== null && _window8 !== void 0 && _window8._GData)) {
1102
- window._GData = {};
1103
- }
1104
1100
  if (window) {
1101
+ var _window8;
1102
+ if (!((_window8 = window) !== null && _window8 !== void 0 && _window8._GData)) {
1103
+ window._GData = {};
1104
+ }
1105
1105
  Tool.GData = window._GData;
1106
1106
  window._Tool = Tool;
1107
1107
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "0.0.13",
3
+ "version": "0.0.16",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",