From ce08163685752abf1588eb5a18e0eb19be9ecb6d Mon Sep 17 00:00:00 2001
From: LiJun <LiJun@192.168.10.20>
Date: 星期一, 26 十一月 2018 15:25:03 +0800
Subject: [PATCH] 获取服务器时间

---
 gx_tieta/WebRoot/Top.jsp |   30 ++++++++++++++++++++++++++++--
 1 files changed, 28 insertions(+), 2 deletions(-)

diff --git a/gx_tieta/WebRoot/Top.jsp b/gx_tieta/WebRoot/Top.jsp
index ed8a59f..458dcfe 100644
--- a/gx_tieta/WebRoot/Top.jsp
+++ b/gx_tieta/WebRoot/Top.jsp
@@ -132,6 +132,9 @@
 				</div>	 
 				<div class="cell-list control">
 					<img src="image/webStatus/control_normal.gif" alt="绾跨▼鐩戞帶绋嬪簭" title="绾跨▼鐩戞帶绋嬪簭杩愯锛氭甯�">
+				</div>
+				<div class="cell-list server-time">					
+					2018-11-26 00:00:00
 				</div>			
 			</div>
 			<div class="international">
@@ -334,8 +337,6 @@
 	}
 	
 	
-	
-	
 	$(function(){
 		$.ajax({ 	
 	        type: "post", 				
@@ -528,6 +529,31 @@
 		warnAlarmData = temp;
 	}
 	
+	seachServerTime();
+	//鑾峰彇鏈嶅姟鍣ㄤ笂鐨勬椂闂�
+	function seachServerTime(){	
+		$.ajax({ 	
+	        type:"post", 				
+	        url: "User_infAction!searchServerTime",				
+	        async:true,				
+	        dataType:'text',
+	        data:null,		
+	        success: function(data){ 
+				data = eval('('+data+')');
+				var model = eval('('+data.result+')');
+				if(model.code == 1){
+					$('.server-time').text(model.msg);
+				}else{
+	
+				}
+				setTimeout(seachServerTime, 1000);				
+	    	},
+	    	error:function() {
+	    		setTimeout(seachServerTime, 2000);
+	    	} 				
+		});
+	}
+	
 	// 鐩戞祴褰撳墠鐨勫憡璀︿俊鎭槸鍚︿负鏈�鏂扮殑鍛婅
 	function checkWarnDataIsNew(warnData) {
 		var rs = 0;

--
Gitblit v1.9.1