wgl 4 rokov pred
rodič
commit
b3f224eb6d

+ 45 - 0
index/business/index.html

@@ -1,6 +1,12 @@
 <!DOCTYPE html>
 <html lang="zh-cn">
 	<head>
+		<script>
+			//加载开始时间
+			var start_time = (new Date()).getTime();
+			var route_path = window.location.href.split("#")[1].replace(/\?.*/, '')
+		</script>
+
 		<meta charset="utf-8">
 		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
 		<meta http-equiv="X-UA-Compatible" content="IE=edge,IE=IE9">
@@ -22,8 +28,47 @@
 				continue.
 			</strong>
 		</noscript>
+
+		<div id="z-loading-1" style="display: block;position: fixed;left:0px;top:0px;bottom:0px;right:0px;width: 100%;height: 100%;background: rgb(255, 255, 255, 0.9);z-index: 999;">
+			<div style="position: absolute;top: 40%;left: 40%">
+				<img src="xxd_loading.gif" id="loading-gif" />
+			</div>
+			<div class="index-load" id="index-load" style="display:block;position: absolute;bottom: 10px;right: 10px;"></div>
+		</div>
+		<script>
+			var indexSetInval;
+			var indexStartNum = 1;
+			indexSetInval = setInterval(function() {
+				indexStartNum++;
+				var str = '加载中' + ((indexStartNum % 2 == 0) ? '…' : '……');
+				document.getElementById('index-load').innerHTML = str;
+			}, 1000)
+		</script>
+
 		<div id="app"></div>
 
+		<script>
+			window.onload = function() {
+				clearInterval(indexSetInval);
+				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()
+				}
+			}
+
+			function removeLoading() {
+				if (document.getElementById('z-loading-1').style.display != 'none') {
+					var loading = document.getElementById('z-loading-1');
+				}
+				document.body.removeChild(loading);
+			}
+		</script>
 
 		<script type="text/javascript">
 			(function() {

+ 46 - 0
index/pension/index.html

@@ -1,6 +1,12 @@
 <!DOCTYPE html>
 <html lang="zh-cn">
 	<head>
+		<script>
+			//加载开始时间
+			var start_time = (new Date()).getTime();
+			var route_path = window.location.href.split("#")[1].replace(/\?.*/, '')
+		</script>
+
 		<meta charset="utf-8">
 		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
 		<meta http-equiv="X-UA-Compatible" content="IE=edge,IE=IE9">
@@ -22,8 +28,48 @@
 				continue.
 			</strong>
 		</noscript>
+
+		<div id="z-loading-1" style="display: block;position: fixed;left:0px;top:0px;bottom:0px;right:0px;width: 100%;height: 100%;background: rgb(255, 255, 255, 0.9);z-index: 999;">
+			<div style="position: absolute;top: 40%;left: 40%">
+				<img src="xxd_loading.gif" id="loading-gif" />
+			</div>
+			<div class="index-load" id="index-load" style="display:block;position: absolute;bottom: 10px;right: 10px;"></div>
+		</div>
+		<script>
+			var indexSetInval;
+			var indexStartNum = 1;
+			indexSetInval = setInterval(function() {
+				indexStartNum++;
+				var str = '加载中' + ((indexStartNum % 2 == 0) ? '…' : '……');
+				document.getElementById('index-load').innerHTML = str;
+			}, 1000)
+		</script>
+
 		<div id="app"></div>
 
+		<script>
+			window.onload = function() {
+				clearInterval(indexSetInval);
+				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()
+				}
+			}
+
+			function removeLoading() {
+				if (document.getElementById('z-loading-1').style.display != 'none') {
+					var loading = document.getElementById('z-loading-1');
+				}
+				document.body.removeChild(loading);
+			}
+		</script>
+
 
 		<script type="text/javascript">
 			(function() {

BIN
public/xxd_loading.gif


+ 2 - 2
src/projects/pension/views/Master/Home.vue

@@ -83,11 +83,11 @@
 					</div>
 					<div v-if="noticeList.length" class="mui-col-xs-12">
 						<div class="vongi-floor-padded">
-							<router-link :to="{name:'CommonNotice'}" v-for="(item,index) in noticeList" :key="index" class="text-list">
+							<router-link :to="{name:'CommonNotice',query:{type:1}}" v-for="(item,index) in noticeList" :key="index" class="text-list">
 								<h5 class="mui-ellipsis" v-text="item.title"></h5><span v-text="item.date"></span>
 							</router-link>
 						</div>
-						<router-link :to="{name:'CommonNotice'}" class="vongi-link"><span class="mui-icon mui-icon-forward"></span></router-link>
+						<router-link :to="{name:'CommonNotice',query:{type:1}}" class="vongi-link"><span class="mui-icon mui-icon-forward"></span></router-link>
 					</div>
 					<div class="mui-col-xs-12">
 						<div id="slider" class="mui-slider">