8c5168a2 by ex

修改代码

1 parent 2c7e4966
...@@ -73,19 +73,20 @@ angular.module('myApp') ...@@ -73,19 +73,20 @@ angular.module('myApp')
73 if(data.data.unfinishedOrder.id) { 73 if(data.data.unfinishedOrder.id) {
74 $rootScope.isRendBike = true; 74 $rootScope.isRendBike = true;
75 $scope.unfinishOrder = data.data.unfinishedOrder; 75 $scope.unfinishOrder = data.data.unfinishedOrder;
76 layer.open({
77 content: '您有未支付的订单,是否前往支付?',
78 btn: ['确认', '取消'],
79 shadeClose: false,
80 yes: function(index){
81 layer.close(index);
82 $state.go('tripDetail' , { orderId : $scope.unfinishOrder.id});
83 return;
84 },no: function(index){
85 layer.close(index);
86 }
87 });
76 } 88 }
77 layer.open({ 89
78 content: '您有未支付的订单,是否前往支付?',
79 btn: ['确认', '取消'],
80 shadeClose: false,
81 yes: function(index){
82 layer.close(index);
83 $state.go('tripDetail' , { orderId : $scope.unfinishOrder.id});
84 return;
85 },no: function(index){
86 layer.close(index);
87 }
88 });
89 } 90 }
90 91
91 }).error(function(data , status) { 92 }).error(function(data , status) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!