Procházet zdrojové kódy

非首页不强制加载2秒

wgl před 4 roky
rodič
revize
7a586717c3
2 změnil soubory, kde provedl 2 přidání a 14 odebrání
  1. 1 7
      index/business/index.html
  2. 1 7
      index/pension/index.html

+ 1 - 7
index/business/index.html

@@ -53,13 +53,7 @@
 				var end_time = (new Date()).getTime();
 				var loading_time = end_time - start_time;
 				console.log(((loading_time) / 1000).toString() + '秒');
-				if (loading_time < 2000) {
-					setTimeout(function() {
-						removeLoading();
-					}, 2000 - (loading_time));
-				} else {
-					removeLoading()
-				}
+				removeLoading();
 			}
 
 			function removeLoading() {

+ 1 - 7
index/pension/index.html

@@ -53,13 +53,7 @@
 				var end_time = (new Date()).getTime();
 				var loading_time = end_time - start_time;
 				console.log(((loading_time) / 1000).toString() + '秒');
-				if (loading_time < 2000) {
-					setTimeout(function() {
-						removeLoading();
-					}, 2000 - (loading_time));
-				} else {
-					removeLoading()
-				}
+				removeLoading();
 			}
 
 			function removeLoading() {