From bbfe8b987680b34ef21233d14aca49b906833ff0 Mon Sep 17 00:00:00 2001
From: hdw <hdw@192.168.7.127>
Date: 星期五, 18 一月 2019 15:14:05 +0800
Subject: [PATCH] 显示返回顶部

---
 gx_tieta/WebRoot/mobil/homeList.html |   34 ++++++++++++++++++++++++----------
 1 files changed, 24 insertions(+), 10 deletions(-)

diff --git a/gx_tieta/WebRoot/mobil/homeList.html b/gx_tieta/WebRoot/mobil/homeList.html
index 320ac9d..5516dd1 100644
--- a/gx_tieta/WebRoot/mobil/homeList.html
+++ b/gx_tieta/WebRoot/mobil/homeList.html
@@ -15,12 +15,12 @@
 	<body>
 		<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>
+				<a href="javascript:window.history.go(-1)"  target="_top" style="padding-top:0.7em;padding-bottom:0.7em;">杩斿洖</a>
 				<h1>鏈烘埧鍒楄〃</h1>
 			</div>
 			<div data-role="content">
 				<div class="home-search-input-container">
-					<input type="text" data-type="search" name="search" id="searchInput" placeholder="鎼滅储鍐呭...">
+					<input type="text" data-type="search" name="search" id="searchInput" placeholder="璇疯緭鍏ユ満鎴垮悕绉板叧閿瓧..." autofocus="autofocus">
 				</div>
 				<div id="battList"></div>
 			</div>
@@ -35,19 +35,25 @@
 	<script type="text/javascript" src="src/layui.all.js"></script>
 	 <script src="app/js/common.js"></script>
 	<script type="text/javascript">
-		var stationlist = new Array();
-		
-		// 鍒濆鍖栭〉闈㈠唴瀹�
-		$(document).ready(function(){
-			setCookie("station",null);
-			setCookie("batt",null);
-		});
-		
 		// 椤甸潰鍒濆鍖栧畬鎴�
 		$(document).on('pageinit', function(event) {
 			setTimeout(function() {
 				findHome();		// 鏌ヨ鎵�鏈夌殑鏈烘埧
 			}, 10);
+			
+			//鍥哄畾鍧�
+			layui.util.fixbar({
+			    css: {right: 10, bottom: 10}
+			    ,showHeight: 100
+			    ,bgcolor: '#393D49'
+			    ,click: function(type){
+			      if(type === 'bar1'){
+			        layer.msg('icon鏄彲浠ラ殢渚挎崲鐨�')
+			      } else if(type === 'bar2') {
+			        layer.msg('涓や釜bar閮藉彲浠ヨ瀹氭槸鍚﹀紑鍚�')
+			      }
+			    }
+			  });
 		});
 		
 		// 鐐瑰嚮鏈烘埧浜嬩欢
@@ -81,11 +87,17 @@
 					StationName2: homeData.city,
 					StationName5: homeData.county,
 					StationName: homeData.home,
+					StationName3: homeData.home3,
 					StationId: homeData.homeid
 				};
 				
 				
 				var json=window.JSON.stringify(temp);
+				
+				//璁剧疆蹇呰鐨刢ookie
+				setCookie('StationName1', json);
+				setCookie('city', json);
+				setCookie('county', json);
 				setCookie("battselect",json);
 				window.location.href="battM.html";
 			});
@@ -105,6 +117,7 @@
 				if(rs.code==1){
 					homeSource = [];
 					var data = rs.data;
+					console.log(data);
 					for(var i=0; i<data.length; i++) {
 						var _data = data[i];
 						var tmp = {
@@ -112,6 +125,7 @@
 							province: _data.StationName1,
 							city: _data.StationName2,
 							county: _data.StationName5,
+							home3: _data.StationName3,
 							home: _data.StationName,
 							homeid: _data.StationId
 						};

--
Gitblit v1.9.1