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
     height: 0.44rem;
12
     height: 0.44rem;
13
     width: 100%;
13
     width: 100%;
14
     background-color: #5d7dff;
14
     background-color: #5d7dff;
15
-    padding-top:0.2rem ;
16
 }
15
 }
17
 
16
 
18
 nav i {
17
 nav i {

+ 6 - 3
fund_h5/js/fund_h5_api.js

84
 				if(item.region == cityInfo.region){
84
 				if(item.region == cityInfo.region){
85
 					if(item.URL.password){
85
 					if(item.URL.password){
86
 						retrievePwd = item.URL.password;
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
 					}else{
90
 					}else{
89
 						retrievePwd = item.URL.web;
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
     $('#back').click(function() {
185
     $('#back').click(function() {
183
 //      redirectToFailedReturnUrl(tid, 'failed', 1020, '退出公积金查询页');
186
 //      redirectToFailedReturnUrl(tid, 'failed', 1020, '退出公积金查询页');
184
 //		window.history.go(-1)
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
 //nav返回上一页
30
 //nav返回上一页
31
 function goBack () {
31
 function goBack () {
32
 	$("nav i").click(function () {
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
 		if(item.region == city_name){
40
 		if(item.region == city_name){
42
 			if(item.URL.register){
41
 			if(item.URL.register){
43
 				goUrl=item.URL.register;
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
 			}else{
46
 			}else{
46
 				goUrl=item.URL.web;
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
 	})