From 891f1af1546328d3853ce5bfadcbdce36f7cea9c Mon Sep 17 00:00:00 2001
From: CJJ <Administrator@192.168.10.26>
Date: 星期三, 21 十一月 2018 10:07:20 +0800
Subject: [PATCH] 手机修复导航

---
 gx_tieta/WebRoot/mobil/battM.html        |   29 ++++++++------
 gx_tieta/WebRoot/mobil/machineroomM.html |    4 +-
 gx_tieta/WebRoot/mobil/selectbatt.html   |   31 ++++++++-------
 3 files changed, 35 insertions(+), 29 deletions(-)

diff --git a/gx_tieta/WebRoot/mobil/battM.html b/gx_tieta/WebRoot/mobil/battM.html
index 2112e4d..f5adaf4 100644
--- a/gx_tieta/WebRoot/mobil/battM.html
+++ b/gx_tieta/WebRoot/mobil/battM.html
@@ -31,34 +31,37 @@
 	<script type="text/javascript">
 		
 		var battinlist = new Array();			//鎵�鏈夌數姹犵粍鐨勬暟缁�
-		
+		var temp = getCookie("battselect");
 		$(document).ready(function(){
-			setCookie('batt', '');
-			//init();
-			searchkBattByStationid();
+		setCookie('batt', '');
+		//temp = JSON.parse(temp);
+		//console.info(temp);
+			init();
+			//searchkBattByStationid();
 		});
 		
-	/*	function init(){
-			var temp = getCookie("county");
+		function init(){
+			//var temp = getCookie("county");
 			if(temp != '' || temp != undefined) {
-				temp = eval('('+temp+')');
+				temp = JSON.parse(temp);
 				
 				var data = [
 					{url: 'javascript:JumpHomePage();', txt: '棣栭〉'},
-					{url: 'machineroomM.html', txt: temp.StationName5 },
+					{url: 'javascript:JumpFirstPage();', txt: '鐪�'},
+					{url: 'javascript:JumpcityPage();', txt: '甯�'},
+					{url: 'machineroomM.html', txt: '鍖�/鍘�' },
+					{url: 'selectbatt.html', txt: '鏈烘埧'},
 					{url: 'javascript:;', txt: '钃勭數姹犵粍'}
 				];
 				addBreadCrumb($('.breadcrumb').eq(0),data);
 							
-				searchkBattByStationid(temp.StationId);
+				searchkBattByStationid();
 			}else {
 				window.location.href="machineroomM.html";
 			}
-		}*/
+		}
 		
-		var temp = getCookie("battselect");
-		temp = JSON.parse(temp);
-		console.info(temp);
+		
 		//鏍规嵁鏈烘埧id鏌ヨ鐢垫睜缁�
 		function searchkBattByStationid(){
 			loadshow();
diff --git a/gx_tieta/WebRoot/mobil/machineroomM.html b/gx_tieta/WebRoot/mobil/machineroomM.html
index d32aa37..8bac758 100644
--- a/gx_tieta/WebRoot/mobil/machineroomM.html
+++ b/gx_tieta/WebRoot/mobil/machineroomM.html
@@ -15,7 +15,7 @@
 		<div data-role="page"  tabindex="0" id="page0">
 			<div data-role="header" data-position="fixed">
 				<a href="index.html"  target="_top" style="padding-top:0.7em;padding-bottom:0.7em;">杩斿洖</a>
-				<h1>鏈烘埧</h1>
+				<h1>鐪�</h1>
 			</div>
 		
 			<div data-role="content">
@@ -74,7 +74,7 @@
 		$(function(){
 			var data = [
 				{url: 'javascript:JumpHomePage();', txt: '棣栭〉'},
-				{url: 'javascript:;', txt: '鏈烘埧'}
+				{url: 'javascript:;', txt: '鐪�'}
 			];
 			addBreadCrumb($('.breadcrumb').eq(0),data);
 		});
diff --git a/gx_tieta/WebRoot/mobil/selectbatt.html b/gx_tieta/WebRoot/mobil/selectbatt.html
index 87fc9cb..44911ef 100644
--- a/gx_tieta/WebRoot/mobil/selectbatt.html
+++ b/gx_tieta/WebRoot/mobil/selectbatt.html
@@ -31,34 +31,37 @@
 	<script type="text/javascript">
 		
 		var battinlist = new Array();			//鎵�鏈夌數姹犵粍鐨勬暟缁�
-		
+		var temp = getCookie("county");
 		$(document).ready(function(){
 			setCookie('batt', '');
-			//init();
-			searchkBattByStationid();
+			init();			
+			//searchkBattByStationid();
 		});
 		
-	/*	function init(){
-			var temp = getCookie("county");
+		function init(){
+			//var temp = getCookie("county");
+			
+			console.info(temp);
 			if(temp != '' || temp != undefined) {
-				temp = eval('('+temp+')');
+				temp = JSON.parse(temp);
+				//temp = eval('('+temp+')');
 				
 				var data = [
 					{url: 'javascript:JumpHomePage();', txt: '棣栭〉'},
-					{url: 'machineroomM.html', txt: temp.StationName5 },
-					{url: 'javascript:;', txt: '钃勭數姹犵粍'}
+					{url: 'javascript:JumpFirstPage();', txt: '鐪�'},
+					{url: 'javascript:JumpcityPage();', txt: '甯�'},
+					{url: 'machineroomM.html', txt: '鍖�/鍘�' },
+					{url: 'javascript:;', txt: '鏈烘埧'}
 				];
 				addBreadCrumb($('.breadcrumb').eq(0),data);
-							
-				searchkBattByStationid(temp.StationId);
+						
+				searchkBattByStationid();
 			}else {
 				window.location.href="machineroomM.html";
 			}
-		}*/
+		}
 		
-		var temp = getCookie("county");
-		temp = JSON.parse(temp);
-		console.info(temp);
+		
 		//鏍规嵁鏈烘埧id鏌ヨ鐢垫睜缁�
 		function searchkBattByStationid(){
 			loadshow();

--
Gitblit v1.9.1