component-shipinlv 0.0.13 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/lib/Tool.js +6 -6
- 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
|
-
//
|
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
|
-
|
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
|
}
|