From 2fe250ece8de95b3f70172fe5b45793ab6a3084a Mon Sep 17 00:00:00 2001 From: D:/workspace/chenjingjing/git/gx_tieta/gx_tieta/.gitignore <chenjingjing@LAPTOP-E51P2139> Date: 星期五, 18 一月 2019 17:30:50 +0800 Subject: [PATCH] 未审批可更改 --- gx_tieta/WebRoot/mobil/homeList.html | 48 +++++++++++++++++++++++++++++++++--------------- 1 files changed, 33 insertions(+), 15 deletions(-) diff --git a/gx_tieta/WebRoot/mobil/homeList.html b/gx_tieta/WebRoot/mobil/homeList.html index 320ac9d..147c3cc 100644 --- a/gx_tieta/WebRoot/mobil/homeList.html +++ b/gx_tieta/WebRoot/mobil/homeList.html @@ -8,21 +8,25 @@ <link rel="stylesheet" href="css/breadcrumb.css"> <link rel="stylesheet" type="text/css" href="css/defined.popup.css"/> <link rel="stylesheet" type="text/css" href="src/css/layui.css"> +<link rel="stylesheet" type="text/css" href="app/css/common.css"> +<link rel="stylesheet" type="text/css" href="font-awesome-4.7.0/css/font-awesome.css"> <style type="text/css"> - + #battList li a{ + font-size: 12px !important; + } </style> </head> <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 id="battList" class="mrt28"></div> </div> </div> <!-- 瀛樺偍鏈烘埧淇℃伅鍒楄〃 --> @@ -35,19 +39,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 +91,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 +121,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 +129,7 @@ province: _data.StationName1, city: _data.StationName2, county: _data.StationName5, + home3: _data.StationName3, home: _data.StationName, homeid: _data.StationId }; @@ -140,13 +158,13 @@ ulCon.find('ul').remove(); // 鍒涘缓ul - var _ul = $('<ul data-role="listview" data-inset="true"></ul>'); + var _ul = $('<ul data-role="listview" data-inset="false"></ul>'); // 閬嶅巻dataList鐢熸垚li鍜宎 for (var i = 0; i < dataList.length; i++){ - var _li = $('<li></li'); + var _li = $('<li data-icon="false"></li'); var _dataList = dataList[i]; - var _a = $('<a href="javascript:;" value="" data-transition="slide">'+_dataList.home+'</a>'); + var _a = $('<a href="javascript:;" value=""><i class="fa fa-home mrr4"></i>'+_dataList.home+'</a>'); _a.data('homedata', _dataList); // 缁欒繛鎺ユ坊鍔犱俊鎭� // 灏哶a娣诲姞鍒癬li锛屽皢_li娣诲姞鍒癬ul涓� _li.append(_a); -- Gitblit v1.9.1