f9d18df3 by ex

GPS

1 parent 4c1e612c
......@@ -303,10 +303,6 @@ angular.module('myApp')
},1000)
} else {
appClient.getGPS('', function (data, cb) {
layer.open({
content: JSON.stringify(data),
time: 5
})
var latitude = ''
var longitude = ''
......@@ -320,19 +316,10 @@ angular.module('myApp')
latitude = result[0].split(':')[1]
longitude = result[1].split(':')[1]
}
// layer.open({
// content: obj.latitude,
// time: 5
// })
// layer.open({
// content: obj.longitude,
// time: 5
// })
// layer.open({
// content: JSON.stringify(obj),
// time: 5
// })
// onSuccess(JSON.parse(JSON.stringify(obj)))
layer.open({
content: latitude,
time: 5
})
onSuccess({
latitude: latitude,
longitude: longitude
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!