liyan 6 years ago
parent
commit
62a2844c72
2 changed files with 2 additions and 2 deletions
  1. 1 1
      fund_h5/js/choose_city2.js
  2. 1 1
      fund_h5/js/city_picker2.js

+ 1 - 1
fund_h5/js/choose_city2.js

20
 		code: $(".current-city span").attr('data-code')
20
 		code: $(".current-city span").attr('data-code')
21
 	}
21
 	}
22
 //	data = JSON.stringify(data);
22
 //	data = JSON.stringify(data);
23
-    CityLocationMessageHandler(data)
23
+    window.webkit.messageHandlers.CityLocationMessageHandler.postMessage(data);
24
     window.history.go(-1)
24
     window.history.go(-1)
25
 })
25
 })
26
 
26
 

+ 1 - 1
fund_h5/js/city_picker2.js

58
 					name: that.city,
58
 					name: that.city,
59
 					code: that.code
59
 					code: that.code
60
 				}
60
 				}
61
-			    CityLocationMessageHandler(data)
61
+    			    window.webkit.messageHandlers.CityLocationMessageHandler.postMessage(data);
62
 			    window.history.go(-1)
62
 			    window.history.go(-1)
63
 //              if (document.referrer.indexOf('&name=') === -1) {
63
 //              if (document.referrer.indexOf('&name=') === -1) {
64
 //                  window.location.href = './fund_h5_api.html?token=' + token + '&name=' + that.city + '&code=' + that.code;
64
 //                  window.location.href = './fund_h5_api.html?token=' + token + '&name=' + that.city + '&code=' + that.code;