From 5fe2efb71f6ad809a1cfc59beab18bbea99fff5e Mon Sep 17 00:00:00 2001
From: 81041 <81041@DESKTOP-025NVD9>
Date: 星期五, 18 一月 2019 09:01:41 +0800
Subject: [PATCH] Merge branch 'dev_lxw' of https://gitlab.com/whyclxw1/gx_tieta.git into dev_lxw
---
gx_tieta/WebRoot/mobil/testdata.html | 61 ++++++++++++++++++++++++++++++
1 files changed, 60 insertions(+), 1 deletions(-)
diff --git a/gx_tieta/WebRoot/mobil/testdata.html b/gx_tieta/WebRoot/mobil/testdata.html
index 3d4fb43..068db47 100644
--- a/gx_tieta/WebRoot/mobil/testdata.html
+++ b/gx_tieta/WebRoot/mobil/testdata.html
@@ -52,12 +52,14 @@
<a href="battinfors.html" target="_top" data-ajax="false">鐢垫睜缁勪俊鎭�</a>
</li>
<li>
- <a href="base-station-info.html" target="_top" data-ajax="false">鍩虹珯淇℃伅</a>
+ <a href="" id="jizhandata" target="_top" data-ajax="false">鍩虹珯淇℃伅</a>
</li>
</ul>
</div>
+ <div id="homeInfoIframe"></div>
<script type="text/javascript" src="js/battNav.js"></script>
+ <script type="text/javascript" src="src/layui.all.js"></script>
<script type="text/javascript">
$(function() {
//console.warn(111133);
@@ -73,6 +75,63 @@
console.info(data);
addBreadCrumb($('.breadcrumb').eq(0), data);
});
+
+ $("#jizhandata").off('click').on('click.cjj1123',function(){
+ var temp = getCookie("batt");
+ temp = JSON.parse(temp);
+ console.info(temp);
+ var data = temp;
+ var lng = 0; // 鑾峰彇缁忓害
+ var lat = 0; // 鑾峰彇绾害
+ var addr = ""; // 鑾峰彇鍦板潃
+ var homeId = data.StationId; // 鏈烘埧Id
+ var homeName = data.StationName; // 鏈烘埧鍚嶇О
+ var _temp = {
+ homeId: homeId
+ ,homeName: homeName
+ ,addr: addr
+ ,lng: lng
+ ,lat: lat
+ }
+ console.info(_temp);
+ // 鏄剧ず鏆傛棤鍙绔欑偣
+ if(homeId == 0) {
+ alert(homeName);
+ return;
+ }
+ $('#homeInfoIframe').data('homeInfo', _temp);
+ iframePopup = layer.open({
+ type: 2
+ ,closeBtn: 0
+ ,title: false
+ ,area: ['100%', '100%']
+ ,full: true
+ ,anim: 4
+ ,content: 'iframe/seenhomeinfo.html'
+ ,success: function() {
+ $('div[data-role=page]').hide();
+ }
+ ,end: function() {
+ $('div[data-role=page]').show();
+ }
+ });
+ iframePopup = layer.open({
+ type: 2
+ ,closeBtn: 0
+ ,title: false
+ ,area: ['100%', '100%']
+ ,full: true
+ ,anim: 4
+ ,content: 'iframe/seenhomeinfo.html'
+ ,success: function() {
+ $('div[data-role=page]').hide();
+ }
+ ,end: function() {
+ $('div[data-role=page]').show();
+ }
+ });
+ layer.full(iframePopup);
+ })
</script>
</div>
</body>
--
Gitblit v1.9.1