4101815a by unknown

提示运行环境

1 parent 86046fad
...@@ -15,6 +15,7 @@ function isJson(str) { ...@@ -15,6 +15,7 @@ function isJson(str) {
15 return true; 15 return true;
16 } 16 }
17 // var str = '{latitude:30.2741500000,longitude:120.1551500000}' 17 // var str = '{latitude:30.2741500000,longitude:120.1551500000}'
18 // console.log(toJson(str))
18 function toJson(str) { 19 function toJson(str) {
19 try { 20 try {
20 if(str.length > 2){ 21 if(str.length > 2){
......
...@@ -303,9 +303,10 @@ angular.module('myApp') ...@@ -303,9 +303,10 @@ angular.module('myApp')
303 },1000) 303 },1000)
304 } else { 304 } else {
305 appClient.getGPS('', function (data, cb) { 305 appClient.getGPS('', function (data, cb) {
306
306 var obj = toJson(data) 307 var obj = toJson(data)
307 layer.open({ 308 layer.open({
308 content: obj, 309 content: obj.latitude,
309 time: 2 310 time: 2
310 }) 311 })
311 onSuccess(obj) 312 onSuccess(obj)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!