@alipay/ams-checkout 0.0.1726046231-dev.6 → 0.0.1726046231-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.
@@ -47,7 +47,7 @@ export var ElementAddressComponent = /*#__PURE__*/function () {
|
|
47
47
|
key: "update",
|
48
48
|
value: function update() {
|
49
49
|
if (this.elementContainer) {
|
50
|
-
this.elementContainer.style.display = '
|
50
|
+
this.elementContainer.style.display = '';
|
51
51
|
}
|
52
52
|
// 下发数据
|
53
53
|
}
|
@@ -390,6 +390,13 @@ export var ElementComponent = /*#__PURE__*/function () {
|
|
390
390
|
// TODO dev环境接口超时
|
391
391
|
'Operation-Type': 'com.ipay.iexpcashier.sdkAction.query'
|
392
392
|
}).then(function (result) {
|
393
|
+
if (!result.success) {
|
394
|
+
var _this3$_options$onEve, _this3$_options;
|
395
|
+
(_this3$_options$onEve = (_this3$_options = _this3._options).onEventCallback) === null || _this3$_options$onEve === void 0 || _this3$_options$onEve.call(_this3$_options, {
|
396
|
+
code: EventCallbackCode.Failed,
|
397
|
+
message: 'sdkAction.query Request Error'
|
398
|
+
});
|
399
|
+
}
|
393
400
|
resolve(result);
|
394
401
|
});
|
395
402
|
});
|
@@ -517,7 +524,8 @@ export var ElementComponent = /*#__PURE__*/function () {
|
|
517
524
|
configParams: _objectSpread({
|
518
525
|
needEditBackBtn: true,
|
519
526
|
autoSaveAsDefaultAddress: true,
|
520
|
-
editingNeedShippingQuery: true
|
527
|
+
editingNeedShippingQuery: true,
|
528
|
+
showTitle: true
|
521
529
|
}, (_this$mountOptions3 = this.mountOptions) === null || _this$mountOptions3 === void 0 ? void 0 : _this$mountOptions3[ElementPaymentMethod.ADDRESS_ELEMENT])
|
522
530
|
}, baseData)
|
523
531
|
}
|
@@ -561,9 +569,12 @@ export var ElementComponent = /*#__PURE__*/function () {
|
|
561
569
|
_this6 = this;
|
562
570
|
this.mountOptions[ElementPaymentMethod.AUTH_ELEMENT] = renderOptions;
|
563
571
|
var _selector = sdkSelector.indexOf('#') === 0 ? sdkSelector.slice(1) : sdkSelector;
|
572
|
+
var link = renderOptions === null || renderOptions === void 0 || (_renderOptions$debugP = renderOptions.debugProps) === null || _renderOptions$debugP === void 0 ? void 0 : _renderOptions$debugP.localLink;
|
573
|
+
var params = window.location.href.split('?')[1];
|
574
|
+
var url = link.indexOf('?') === -1 ? "".concat(link, "?").concat(params) : link;
|
564
575
|
this.authBase.mount({
|
565
576
|
selector: _selector,
|
566
|
-
url:
|
577
|
+
url: url
|
567
578
|
}).then(function (result) {
|
568
579
|
if (!result) {
|
569
580
|
var _this6$_options$onEve, _this6$_options;
|