@alipay/ams-checkout 0.0.1703483942-dev.5 → 0.0.1703483942-dev.6
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.
@@ -377,14 +377,11 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
377
377
|
return _this5.getDeviceIdAndLog();
|
378
378
|
case 8:
|
379
379
|
envInfo.deviceId = _context2.sent;
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
// WAP_SUB_TYPE: 'WECHAT_MINI_PROGRAM',
|
386
|
-
// };
|
387
|
-
// }
|
380
|
+
if (window.navigator.userAgent.indexOf('miniProgram') > -1) {
|
381
|
+
envInfo.extendInfo = {
|
382
|
+
WAP_SUB_TYPE: 'WECHAT_MINI_PROGRAM'
|
383
|
+
};
|
384
|
+
}
|
388
385
|
case 10:
|
389
386
|
if (!(componentSignEnum.EASY_PAY_WALLET === _this5._componentSign)) {
|
390
387
|
_context2.next = 18;
|
@@ -791,8 +788,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
791
788
|
event: 'appEventCallback',
|
792
789
|
eventCallbackId: eventContext === null || eventContext === void 0 ? void 0 : eventContext.eventCallbackId,
|
793
790
|
data: {
|
794
|
-
|
795
|
-
userAgent: window.navigator.userAgent + window.location.search
|
791
|
+
userAgent: window.navigator.userAgent
|
796
792
|
}
|
797
793
|
}
|
798
794
|
});
|
@@ -1029,7 +1025,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
1029
1025
|
}, {
|
1030
1026
|
key: "handleRedirect",
|
1031
1027
|
value: function handleRedirect(data) {
|
1032
|
-
var _data$
|
1028
|
+
var _data$isPopWindow,
|
1033
1029
|
_this7 = this;
|
1034
1030
|
var _data = typeof data === 'string' ? {
|
1035
1031
|
normalUrl: data
|
@@ -1038,7 +1034,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
1038
1034
|
schemeUrl: (data === null || data === void 0 ? void 0 : data.schemeUrl) || '',
|
1039
1035
|
normalUrl: (data === null || data === void 0 ? void 0 : data.normalUrl) || '',
|
1040
1036
|
target: data === null || data === void 0 ? void 0 : data.target,
|
1041
|
-
|
1037
|
+
isPopWindow: (_data$isPopWindow = data === null || data === void 0 ? void 0 : data.isPopWindow) !== null && _data$isPopWindow !== void 0 ? _data$isPopWindow : true
|
1042
1038
|
});
|
1043
1039
|
this.AMSSDK.logger.logInfo({
|
1044
1040
|
title: 'sdk_event_call_url_start'
|
@@ -1085,7 +1081,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
1085
1081
|
window.location.replace(_data.normalUrl);
|
1086
1082
|
return;
|
1087
1083
|
}
|
1088
|
-
if (_data !== null && _data !== void 0 && _data.
|
1084
|
+
if (_data !== null && _data !== void 0 && _data.isPopWindow) this.cleanContainer();
|
1089
1085
|
this.AMSSDK._redirect({
|
1090
1086
|
applinkUrl: _data === null || _data === void 0 ? void 0 : _data.applinkUrl
|
1091
1087
|
}).then(function () {
|