Browse Source

优化首页悬浮窗

liting2017 6 years ago
parent
commit
a8880f0051
1 changed files with 5 additions and 3 deletions
  1. 5 3
      src/js/newMenu/index.js

+ 5 - 3
src/js/newMenu/index.js

@@ -78,8 +78,10 @@ import 'js/public.js';
 			$(this).parents('.initModel').removeClass('active');
 			sessionStorage['initVal']=true;
 		})
-		// setTimeout(()=>{
-		// 	$('.initModel .glyphicon-remove').trigger('click');
-		// },2000)
+		if($('.initModel').hasClass('active')){
+			setTimeout(()=>{
+				$('.initModel .glyphicon-remove').trigger('click');
+			},5000)
+		}
 	}
 }())