zhouna 4 years ago
parent
commit
591942f03f
2 changed files with 5 additions and 3 deletions
  1. 3 2
      src/js/cdssHorizontal.js
  2. 2 1
      src/js/promise.js

+ 3 - 2
src/js/cdssHorizontal.js

@@ -651,8 +651,9 @@ function getLongTop(type){
 }
 function addScrollEvent(){
   $(`.leftWrapper`).off("scroll").scroll(throttle(function(){
-    if($(".leftWrapper .longStrBox").css("display") === "block"){
-      $(".leftWrapper .longStrBox").css("top",Number(getLongTop("left"))+5+"px")
+
+    if($(".leftWrapper .longStrBox:visible").length){
+        $(".leftWrapper .longStrBox:visible").css("top",Number(getLongTop("left"))+5+"px")
     }
   }, 100));
   $(`.rightWrapper`).off("scroll").scroll(throttle(function(){

+ 2 - 1
src/js/promise.js

@@ -252,7 +252,8 @@ const titleConfigH = {
   scalePush:{
     background: "#EEF5FD",
     icon: iconScalePush,
-    name:"推荐量表"
+    name:"推荐量表",
+    location:"left"
   },
   lisPush:{
     background: "#ECF4FC",