@alipay/ams-checkout 0.0.1726046231-dev.6 → 0.0.1726046231-dev.7

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 = 'initial';
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
  });
@@ -561,9 +568,12 @@ export var ElementComponent = /*#__PURE__*/function () {
561
568
  _this6 = this;
562
569
  this.mountOptions[ElementPaymentMethod.AUTH_ELEMENT] = renderOptions;
563
570
  var _selector = sdkSelector.indexOf('#') === 0 ? sdkSelector.slice(1) : sdkSelector;
571
+ var link = renderOptions === null || renderOptions === void 0 || (_renderOptions$debugP = renderOptions.debugProps) === null || _renderOptions$debugP === void 0 ? void 0 : _renderOptions$debugP.localLink;
572
+ var params = window.location.href.split('?')[1];
573
+ var url = link.indexOf('?') === -1 ? "".concat(link, "?").concat(params) : link;
564
574
  this.authBase.mount({
565
575
  selector: _selector,
566
- url: renderOptions === null || renderOptions === void 0 || (_renderOptions$debugP = renderOptions.debugProps) === null || _renderOptions$debugP === void 0 ? void 0 : _renderOptions$debugP.localLink
576
+ url: url
567
577
  }).then(function (result) {
568
578
  if (!result) {
569
579
  var _this6$_options$onEve, _this6$_options;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "0.0.1726046231-dev.6",
3
+ "version": "0.0.1726046231-dev.7",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",