GPS
Showing
1 changed file
with
4 additions
and
17 deletions
| ... | @@ -303,10 +303,6 @@ angular.module('myApp') | ... | @@ -303,10 +303,6 @@ angular.module('myApp') |
| 303 | },1000) | 303 | },1000) |
| 304 | } else { | 304 | } else { |
| 305 | appClient.getGPS('', function (data, cb) { | 305 | appClient.getGPS('', function (data, cb) { |
| 306 | layer.open({ | ||
| 307 | content: JSON.stringify(data), | ||
| 308 | time: 5 | ||
| 309 | }) | ||
| 310 | var latitude = '' | 306 | var latitude = '' |
| 311 | var longitude = '' | 307 | var longitude = '' |
| 312 | 308 | ||
| ... | @@ -320,19 +316,10 @@ angular.module('myApp') | ... | @@ -320,19 +316,10 @@ angular.module('myApp') |
| 320 | latitude = result[0].split(':')[1] | 316 | latitude = result[0].split(':')[1] |
| 321 | longitude = result[1].split(':')[1] | 317 | longitude = result[1].split(':')[1] |
| 322 | } | 318 | } |
| 323 | // layer.open({ | 319 | layer.open({ |
| 324 | // content: obj.latitude, | 320 | content: latitude, |
| 325 | // time: 5 | 321 | time: 5 |
| 326 | // }) | 322 | }) |
| 327 | // layer.open({ | ||
| 328 | // content: obj.longitude, | ||
| 329 | // time: 5 | ||
| 330 | // }) | ||
| 331 | // layer.open({ | ||
| 332 | // content: JSON.stringify(obj), | ||
| 333 | // time: 5 | ||
| 334 | // }) | ||
| 335 | // onSuccess(JSON.parse(JSON.stringify(obj))) | ||
| 336 | onSuccess({ | 323 | onSuccess({ |
| 337 | latitude: latitude, | 324 | latitude: latitude, |
| 338 | longitude: longitude | 325 | longitude: longitude | ... | ... |
-
Please register or sign in to post a comment