0a434cf0 by ex

‘getVal’

1 parent cd5cca68
...@@ -71,8 +71,11 @@ AppClient.prototype.getGPS = function (callbackName, callback, jsonStr) { ...@@ -71,8 +71,11 @@ AppClient.prototype.getGPS = function (callbackName, callback, jsonStr) {
71 } else { 71 } else {
72 this.appObj.callHandler("getGPS", iOSData, callback); 72 this.appObj.callHandler("getGPS", iOSData, callback);
73 this.appObj.registerHandler('postGPS', function(data, responseCallback) { 73 this.appObj.registerHandler('postGPS', function(data, responseCallback) {
74
75 var res = JSON.parse(data)
76 var key = res.testKey
74 layer.open({ 77 layer.open({
75 content: JSON.stringify(data), 78 content: JSON.stringify(key),
76 time: 10 79 time: 10
77 }); 80 });
78 // log('ObjC called testJavascriptHandler with', data) 81 // log('ObjC called testJavascriptHandler with', data)
......
...@@ -298,11 +298,11 @@ angular.module('myApp') ...@@ -298,11 +298,11 @@ angular.module('myApp')
298 // } 298 // }
299 // }); 299 // });
300 if(appClient){ 300 if(appClient){
301 appClient.getERCode('postGPS', function (res) { 301 appClient.getGPS('getGPS', function (res) {
302 layer.open({ 302 // layer.open({
303 content: JSON.stringify(res) + 'cb', 303 // content: JSON.stringify(res) + 'cb',
304 time: 10 304 // time: 10
305 }); 305 // });
306 onSuccess({ 306 onSuccess({
307 latitude:30.2741500000, 307 latitude:30.2741500000,
308 longitude:120.1551500000 308 longitude:120.1551500000
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!