8b1441f7 by ex

添加提示

1 parent 71c40ae1
......@@ -69,8 +69,7 @@ angular.module('myApp')
localStorage.removeItem('ls.user')
return
}
if(date.meta.code === 200) {
if(data.data.unfinishedOrder.status == 200) {
if(data.meta.code === 200) {
if(data.data.unfinishedOrder.id) {
$rootScope.isRendBike = true;
$scope.unfinishOrder = data.data.unfinishedOrder;
......@@ -88,7 +87,6 @@ angular.module('myApp')
}
});
}
}
}).error(function(data , status) {
console.log(JSON.stringify(data))
......
......@@ -306,9 +306,6 @@ angular.module('myApp')
} else {
appClient.getGPS('', function (latitude, longitude, cb) {
layer.open({
content: latitude + "_" + longitude
})
onSuccess({
latitude: latitude,
longitude: longitude
......@@ -384,12 +381,20 @@ angular.module('myApp')
//// navigator.geolocation.getCurrentPosition(onSuccess,onError,options);
// } , 1000 * 60 * 60);
} else {
try {
myMarker.position = point;
if(isForce) {
var map = myMarker.getMap();
// var map = myMarker.getMap();
map.panTo(point);
map.setZoom(15)
}
refreshNewPoints(point);
} catch (e) {
layer.open({
content: e
})
}
}
})
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!