xiuli.gao 6 years ago
parent
commit
099a9f6a79
3 changed files with 12 additions and 8 deletions
  1. 0 1
      fund_h5/css/typeChoice.css
  2. 6 3
      fund_h5/js/fund_h5_api.js
  3. 6 4
      fund_h5/js/queryHelp.js

+ 0 - 1
fund_h5/css/typeChoice.css

@@ -12,7 +12,6 @@ nav {
12 12
     height: 0.44rem;
13 13
     width: 100%;
14 14
     background-color: #5d7dff;
15
-    padding-top:0.2rem ;
16 15
 }
17 16
 
18 17
 nav i {

+ 6 - 3
fund_h5/js/fund_h5_api.js

@@ -84,10 +84,13 @@ function showDialog(type) {
84 84
 				if(item.region == cityInfo.region){
85 85
 					if(item.URL.password){
86 86
 						retrievePwd = item.URL.password;
87
-						window.location.href=retrievePwd;
87
+//						window.location.href=retrievePwd;
88
+    					window.webkit.messageHandlers.OutPushMessageHandler.postMessage({'name':qs.name,'url':retrievePwd});
89
+						
88 90
 					}else{
89 91
 						retrievePwd = item.URL.web;
90
-						window.location.href=retrievePwd;
92
+//						window.location.href=retrievePwd;
93
+    					window.webkit.messageHandlers.OutPushMessageHandler.postMessage({'name':qs.name,'url':retrievePwd});
91 94
 					}
92 95
 				}
93 96
 			})
@@ -182,7 +185,7 @@ function initEvent() {
182 185
     $('#back').click(function() {
183 186
 //      redirectToFailedReturnUrl(tid, 'failed', 1020, '退出公积金查询页');
184 187
 //		window.history.go(-1)
185
-    window.webkit.messageHandlers.PopRootMessageHandler.postMessage();
188
+    	window.webkit.messageHandlers.PopRootMessageHandler.postMessage({name:"1"});
186 189
     })
187 190
 }
188 191
 

+ 6 - 4
fund_h5/js/queryHelp.js

@@ -30,8 +30,7 @@ $().ready(function() {
30 30
 //nav返回上一页
31 31
 function goBack () {
32 32
 	$("nav i").click(function () {
33
-   		window.history.go(-1)
34
-//		window.location.href = httpStr + "&name=" + city_name + "&code=" + code + "&token=" + token;
33
+		window.location.href = httpStr + "&name=" + city_name + "&code=" + code + "&token=" + token;
35 34
 	})
36 35
 }
37 36
 
@@ -41,10 +40,13 @@ function goZhuce () {
41 40
 		if(item.region == city_name){
42 41
 			if(item.URL.register){
43 42
 				goUrl=item.URL.register;
44
-				window.location.href = goUrl;
43
+//				window.location.href = goUrl;
44
+    			window.webkit.messageHandlers.OutPushMessageHandler.postMessage({'name':city_name,'url':goUrl});
45
+				
45 46
 			}else{
46 47
 				goUrl=item.URL.web;
47
-				window.location.href = goUrl;
48
+//				window.location.href = goUrl;
49
+    			window.webkit.messageHandlers.OutPushMessageHandler.postMessage({'name':city_name,'url':goUrl});
48 50
 			}
49 51
 		}
50 52
 	})