8b1441f7 by ex

添加提示

1 parent 71c40ae1
...@@ -69,25 +69,23 @@ angular.module('myApp') ...@@ -69,25 +69,23 @@ 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) { 73 if(data.data.unfinishedOrder.id) {
74 if(data.data.unfinishedOrder.id) { 74 $rootScope.isRendBike = true;
75 $rootScope.isRendBike = true; 75 $scope.unfinishOrder = data.data.unfinishedOrder;
76 $scope.unfinishOrder = data.data.unfinishedOrder; 76 }
77 } 77 layer.open({
78 layer.open({ 78 content: '您有未支付的订单,是否前往支付?',
79 content: '您有未支付的订单,是否前往支付?', 79 btn: ['确认', '取消'],
80 btn: ['确认', '取消'], 80 shadeClose: false,
81 shadeClose: false, 81 yes: function(index){
82 yes: function(index){ 82 layer.close(index);
83 layer.close(index); 83 $state.go('tripDetail' , { orderId : $scope.unfinishOrder.id});
84 $state.go('tripDetail' , { orderId : $scope.unfinishOrder.id}); 84 return;
85 return; 85 },no: function(index){
86 },no: function(index){ 86 layer.close(index);
87 layer.close(index); 87 }
88 } 88 });
89 });
90 }
91 } 89 }
92 90
93 }).error(function(data , status) { 91 }).error(function(data , status) {
......
...@@ -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 {
387 myMarker.position = point; 384 try {
388 if(isForce) { 385 myMarker.position = point;
389 var map = myMarker.getMap(); 386 if(isForce) {
390 map.panTo(point); 387 // var map = myMarker.getMap();
391 } 388 map.panTo(point);
392 refreshNewPoints(point); 389 map.setZoom(15)
390 }
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!