From 22fb3fad9b5902c8e995f833ab79462aeb3cdec1 Mon Sep 17 00:00:00 2001 From: hdw <hdw@192.168.7.127> Date: 星期五, 18 一月 2019 15:01:47 +0800 Subject: [PATCH] 更新首页无法后退 --- gx_tieta/WebRoot/mobil/homeList.html | 2 +- gx_tieta/WebRoot/mobil/machineroomM.html | 2 +- gx_tieta/WebRoot/mobil/index.html | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gx_tieta/WebRoot/mobil/homeList.html b/gx_tieta/WebRoot/mobil/homeList.html index 60e0f00..ad77d04 100644 --- a/gx_tieta/WebRoot/mobil/homeList.html +++ b/gx_tieta/WebRoot/mobil/homeList.html @@ -20,7 +20,7 @@ </div> <div data-role="content"> <div class="home-search-input-container"> - <input type="text" data-type="search" name="search" id="searchInput" placeholder="鎼滅储鍐呭..." autofocus="autofocus"> + <input type="text" data-type="search" name="search" id="searchInput" placeholder="鎼滅储鏈烘埧鍚嶇О鍏抽敭瀛�..." autofocus="autofocus"> </div> <div id="battList"></div> </div> diff --git a/gx_tieta/WebRoot/mobil/index.html b/gx_tieta/WebRoot/mobil/index.html index dcee04e..ce165df 100644 --- a/gx_tieta/WebRoot/mobil/index.html +++ b/gx_tieta/WebRoot/mobil/index.html @@ -96,6 +96,13 @@ $(document.body).css( "visibility", "visible") ; }); + //鎷︽埅瀹夊崜鍥為��鎸夐挳 + history.pushState(null, null, location.href); + window.addEventListener('popstate', function(event) { + history.pushState(null, null, location.href ); + //姝ゅ鍔犲叆鍥為��鏃朵綘瑕佹墽琛岀殑浠g爜 + }); + //瀹夊叏閫�鍑� function exitUser(){ $.post("../LoginAction!exitUser",null,function(data){ @@ -122,6 +129,7 @@ } }); } + //鏍规嵁鏉冮檺鍚嶅垽鏂槸鍚﹀叿鏈夋煇涓潈闄� function isHasPermit(_permitName,_permitList) { diff --git a/gx_tieta/WebRoot/mobil/machineroomM.html b/gx_tieta/WebRoot/mobil/machineroomM.html index ba2a943..feea558 100644 --- a/gx_tieta/WebRoot/mobil/machineroomM.html +++ b/gx_tieta/WebRoot/mobil/machineroomM.html @@ -21,7 +21,7 @@ <div data-role="content"> <ul class="breadcrumb"></ul> <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="鎼滅储鏈烘埧鍚嶇О鍏抽敭瀛�..."> </div> <div id="battList"></div> </div> -- Gitblit v1.9.1