0a434cf0 by ex

‘getVal’

1 parent cd5cca68
......@@ -71,8 +71,11 @@ AppClient.prototype.getGPS = function (callbackName, callback, jsonStr) {
} else {
this.appObj.callHandler("getGPS", iOSData, callback);
this.appObj.registerHandler('postGPS', function(data, responseCallback) {
var res = JSON.parse(data)
var key = res.testKey
layer.open({
content: JSON.stringify(data),
content: JSON.stringify(key),
time: 10
});
// log('ObjC called testJavascriptHandler with', data)
......
......@@ -298,11 +298,11 @@ angular.module('myApp')
// }
// });
if(appClient){
appClient.getERCode('postGPS', function (res) {
layer.open({
content: JSON.stringify(res) + 'cb',
time: 10
});
appClient.getGPS('getGPS', function (res) {
// layer.open({
// content: JSON.stringify(res) + 'cb',
// time: 10
// });
onSuccess({
latitude:30.2741500000,
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!