|
|
@@ -582,6 +582,20 @@ define(['app/app'], function(app) {
|
|
|
}, function(){
|
|
|
});
|
|
|
};
|
|
|
+ // 安全级别模态框
|
|
|
+ app.register.controller('homeModalCtrl', ['$rootScope', '$scope', '$modalInstance', 'toaster', '$http', 'ShippingAddress','$state', function($rootScope, $scope, $modalInstance, toaster, $http, ShippingAddress,$state){
|
|
|
+ $rootScope.$on('$stateChangeStart',
|
|
|
+ function(event, toState, toParams, fromState, fromParams){
|
|
|
+ $modalInstance.dismiss();
|
|
|
+ })
|
|
|
+ $scope.goLink = function(op){
|
|
|
+ $state.go('account_manager',{op:op});
|
|
|
+ $modalInstance.dismiss('cancel');
|
|
|
+ }
|
|
|
+ $scope.cancel = function () {
|
|
|
+ $modalInstance.dismiss('cancel');
|
|
|
+ }
|
|
|
+ }]);
|
|
|
|
|
|
//确认付款
|
|
|
$scope.imperfect = false;//暂不完善
|
|
|
@@ -1288,19 +1302,4 @@ define(['app/app'], function(app) {
|
|
|
}
|
|
|
|
|
|
}]);
|
|
|
- // 安全级别模态框
|
|
|
- app.register.controller('homeModalCtrl', ['$rootScope', '$scope', '$modalInstance', 'toaster', '$http', 'ShippingAddress','$state', function($rootScope, $scope, $modalInstance, toaster, $http, ShippingAddress,$state){
|
|
|
- $rootScope.$on('$stateChangeStart',
|
|
|
- function(event, toState, toParams, fromState, fromParams){
|
|
|
- $modalInstance.dismiss();
|
|
|
- })
|
|
|
- $scope.goLink = function(op) {
|
|
|
- $state.go('vendor_account_management',{op:op});
|
|
|
- $modalInstance.dismiss('cancel');
|
|
|
- }
|
|
|
-
|
|
|
- $scope.cancel = function () {
|
|
|
- $modalInstance.dismiss('cancel');
|
|
|
- }
|
|
|
- }]);
|
|
|
});
|