@alipay/ams-checkout 0.0.1733711101-dev.7 → 0.0.1733711101-dev.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.
@@ -302,7 +302,6 @@ export var AntomSDKCore = /*#__PURE__*/function () {
|
|
302
302
|
var platform = this.paymentContext.displayInfo.platform;
|
303
303
|
var payload = this.bizFlowStartBehavior.payload;
|
304
304
|
var closeBtnCallbackForPopup = function closeBtnCallbackForPopup() {
|
305
|
-
var isOnCloseEvent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
306
305
|
if (displayType === DisplayTypeEnum.inline) {
|
307
306
|
return;
|
308
307
|
}
|
@@ -310,13 +309,13 @@ export var AntomSDKCore = /*#__PURE__*/function () {
|
|
310
309
|
showRetentionPopup();
|
311
310
|
return;
|
312
311
|
} else {
|
313
|
-
_this2.handleClose(
|
312
|
+
_this2.handleClose();
|
314
313
|
}
|
315
314
|
};
|
316
315
|
|
317
316
|
// TODO 感觉有死循环
|
318
317
|
eventCenter.listen(EVENT.close.name, function () {
|
319
|
-
closeBtnCallbackForPopup(
|
318
|
+
closeBtnCallbackForPopup();
|
320
319
|
});
|
321
320
|
eventCenter.listen(EVENT.setAllowRetention.name, function (data) {
|
322
321
|
if (data === undefined || typeof data !== 'boolean') {
|
@@ -352,10 +351,9 @@ export var AntomSDKCore = /*#__PURE__*/function () {
|
|
352
351
|
}, {
|
353
352
|
key: "handleClose",
|
354
353
|
value: function handleClose() {
|
355
|
-
var isOnCloseEvent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
356
354
|
var eventCenter = ServiceProvider.getInstance(this.instanceId).getService('EventCenter');
|
357
355
|
eventCenter.emit(EVENT.closeCallback.name, {});
|
358
|
-
if (this.enablePopWindowEventCallback
|
356
|
+
if (this.enablePopWindowEventCallback) {
|
359
357
|
eventCenter.emit(EVENT.eventCallback.name, {
|
360
358
|
code: eventCodeEnum.SDK_PAYMENT_CANCEL,
|
361
359
|
result: {
|
@@ -144,11 +144,11 @@ export var EventCenter = /*#__PURE__*/function () {
|
|
144
144
|
*/
|
145
145
|
}, {
|
146
146
|
key: "_handleAppMessage",
|
147
|
-
value: function _handleAppMessage(
|
148
|
-
var context =
|
147
|
+
value: function _handleAppMessage(eventPayload) {
|
148
|
+
var context = eventPayload.context;
|
149
149
|
var event = context.event,
|
150
150
|
data = context.data;
|
151
|
-
this.emit(event, data,
|
151
|
+
this.emit(event, data, eventPayload);
|
152
152
|
}
|
153
153
|
|
154
154
|
/**
|