ui-process-h5 1.6.34 → 1.6.35

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.
@@ -3475,7 +3475,7 @@ const EA = {
3475
3475
  watch: {
3476
3476
  visible: {
3477
3477
  handler(e, s) {
3478
- e ? (this.show = e, this.top = window.scrollY, document.body.style.position = "fixed", document.body.style.top = -this.top + "px") : (document.body.style.position = "", document.body.style.top = "", window.scrollTo(0, this.top), this.show = e, this.$emit("update:visible", !1));
3478
+ e ? (this.show = e, this.top = window.scrollY, document.body.style.position = "fixed", document.body.style.top = `${-top}px`, document.body.style.overflow = "hidden") : (document.body.style.position = "", document.body.style.top = "", document.body.style.overflow = "visible", window.scrollTo(0, this.top), this.show = e, this.$emit("update:visible", !1));
3479
3479
  },
3480
3480
  immediate: !0
3481
3481
  }
@@ -3500,13 +3500,8 @@ const EA = {
3500
3500
  },
3501
3501
  mounted() {
3502
3502
  this.$nextTick(() => {
3503
- document.body.style.overflow = "hidden";
3504
3503
  const e = document.getElementsByClassName("process-warp")[0] ? document.getElementsByClassName("process-warp")[0] : document.getElementsByClassName("sumbmitPopup-index-sumbit")[0].getElementsByClassName("top-popup")[0];
3505
- e.append ? e.append(this.$el) : e.appendChild(this.$el);
3506
- const s = document.documentElement.scrollTop || document.body.scrollTop;
3507
- this.isIOS() && document.body.addEventListener("focusin", () => {
3508
- document.body.style.position = "fixed", document.body.style.left = "0", document.body.style.top = `${-s}px`;
3509
- });
3504
+ e.append ? e.append(this.$el) : e.appendChild(this.$el), document.documentElement.scrollTop || document.body.scrollTop;
3510
3505
  });
3511
3506
  }
3512
3507
  };