浏览代码

feat: 滚动问题修复

zhangyuhan 4 年之前
父节点
当前提交
d37793be4e

+ 4 - 0
src/jfw/modules/app/src/web/staticres/jyapp/js/searchindex.js

@@ -893,6 +893,10 @@ var SuperSearch = {
     // 安卓获取高度异常临时处理方式
     // 安卓获取高度异常临时处理方式
     setTimeout(function () {
     setTimeout(function () {
       var isMaxHeight = $(".app-layout-content-b").height()  - $(".selected-export-box").height()
       var isMaxHeight = $(".app-layout-content-b").height()  - $(".selected-export-box").height()
+      var defaultHeight = nowClientHeight - $(".app-layout-header").height()- $(".selected-export-box").height()
+      if (isMaxHeight < defaultHeight) {
+        isMaxHeight = defaultHeight
+      }
       $("#supersearchPage .app-layout-content-b #wrapper").css({height: isMaxHeight, 'overflow-y': 'auto'})
       $("#supersearchPage .app-layout-content-b #wrapper").css({height: isMaxHeight, 'overflow-y': 'auto'})
       $(".loading_").hide();
       $(".loading_").hide();
       $("#supersearchPage #working").addClass("hidden");
       $("#supersearchPage #working").addClass("hidden");

+ 4 - 0
src/web/staticres/js/wxSupersearch.js

@@ -865,6 +865,10 @@ var SuperSearch = {
     // 安卓获取高度异常临时处理方式
     // 安卓获取高度异常临时处理方式
     setTimeout(function () {
     setTimeout(function () {
       var isMaxHeight = $(".app-layout-content-b").height()  - $(".selected-export-box").height()
       var isMaxHeight = $(".app-layout-content-b").height()  - $(".selected-export-box").height()
+      var defaultHeight = nowClientHeight - $(".app-layout-header").height()- $(".selected-export-box").height()
+      if (isMaxHeight < defaultHeight) {
+        isMaxHeight = defaultHeight
+      }
       $("#supersearchPage .app-layout-content-b #wrapper").css({height: isMaxHeight, 'overflow-y': 'auto'})
       $("#supersearchPage .app-layout-content-b #wrapper").css({height: isMaxHeight, 'overflow-y': 'auto'})
       $(".loading_").hide();
       $(".loading_").hide();
       $("#supersearchPage #working").addClass("hidden");
       $("#supersearchPage #working").addClass("hidden");