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,7 +20,7 @@ $('.current-city').click(function() {
20 20
 		code: $(".current-city span").attr('data-code')
21 21
 	}
22 22
 //	data = JSON.stringify(data);
23
-    CityLocationMessageHandler(data)
23
+    window.webkit.messageHandlers.CityLocationMessageHandler.postMessage(data);
24 24
     window.history.go(-1)
25 25
 })
26 26
 

+ 1 - 1
fund_h5/js/city_picker2.js

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