8c5168a2 by ex

修改代码

1 parent 2c7e4966
......@@ -73,19 +73,20 @@ angular.module('myApp')
if(data.data.unfinishedOrder.id) {
$rootScope.isRendBike = true;
$scope.unfinishOrder = data.data.unfinishedOrder;
layer.open({
content: '您有未支付的订单,是否前往支付?',
btn: ['确认', '取消'],
shadeClose: false,
yes: function(index){
layer.close(index);
$state.go('tripDetail' , { orderId : $scope.unfinishOrder.id});
return;
},no: function(index){
layer.close(index);
}
});
}
layer.open({
content: '您有未支付的订单,是否前往支付?',
btn: ['确认', '取消'],
shadeClose: false,
yes: function(index){
layer.close(index);
$state.go('tripDetail' , { orderId : $scope.unfinishOrder.id});
return;
},no: function(index){
layer.close(index);
}
});
}
}).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!