liyan 6 年之前
父節點
當前提交
62a2844c72
共有 2 個文件被更改,包括 2 次插入2 次删除
  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;