8b1441f7 by ex

添加提示

1 parent 71c40ae1
...@@ -69,8 +69,7 @@ angular.module('myApp') ...@@ -69,8 +69,7 @@ angular.module('myApp')
69 localStorage.removeItem('ls.user') 69 localStorage.removeItem('ls.user')
70 return 70 return
71 } 71 }
72 if(date.meta.code === 200) { 72 if(data.meta.code === 200) {
73 if(data.data.unfinishedOrder.status == 200) {
74 if(data.data.unfinishedOrder.id) { 73 if(data.data.unfinishedOrder.id) {
75 $rootScope.isRendBike = true; 74 $rootScope.isRendBike = true;
76 $scope.unfinishOrder = data.data.unfinishedOrder; 75 $scope.unfinishOrder = data.data.unfinishedOrder;
...@@ -88,7 +87,6 @@ angular.module('myApp') ...@@ -88,7 +87,6 @@ angular.module('myApp')
88 } 87 }
89 }); 88 });
90 } 89 }
91 }
92 90
93 }).error(function(data , status) { 91 }).error(function(data , status) {
94 console.log(JSON.stringify(data)) 92 console.log(JSON.stringify(data))
......
...@@ -306,9 +306,6 @@ angular.module('myApp') ...@@ -306,9 +306,6 @@ angular.module('myApp')
306 } else { 306 } else {
307 307
308 appClient.getGPS('', function (latitude, longitude, cb) { 308 appClient.getGPS('', function (latitude, longitude, cb) {
309 layer.open({
310 content: latitude + "_" + longitude
311 })
312 onSuccess({ 309 onSuccess({
313 latitude: latitude, 310 latitude: latitude,
314 longitude: longitude 311 longitude: longitude
...@@ -384,12 +381,20 @@ angular.module('myApp') ...@@ -384,12 +381,20 @@ angular.module('myApp')
384 //// navigator.geolocation.getCurrentPosition(onSuccess,onError,options); 381 //// navigator.geolocation.getCurrentPosition(onSuccess,onError,options);
385 // } , 1000 * 60 * 60); 382 // } , 1000 * 60 * 60);
386 } else { 383 } else {
384 try {
387 myMarker.position = point; 385 myMarker.position = point;
388 if(isForce) { 386 if(isForce) {
389 var map = myMarker.getMap(); 387 // var map = myMarker.getMap();
390 map.panTo(point); 388 map.panTo(point);
389 map.setZoom(15)
391 } 390 }
392 refreshNewPoints(point); 391 refreshNewPoints(point);
392 } catch (e) {
393 layer.open({
394 content: e
395 })
396 }
397
393 } 398 }
394 }) 399 })
395 } 400 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!