|
|
@@ -74,9 +74,9 @@ define([ 'toaster', 'ngTable', 'common/services', 'ui.router', 'ui.bootstrap', '
|
|
|
});
|
|
|
};
|
|
|
}]);
|
|
|
- app.controller('IndexCtrl', function($scope){
|
|
|
+ app.controller('IndexCtrl', ['$scope', function($scope){
|
|
|
|
|
|
- });
|
|
|
+ }]);
|
|
|
app.controller('ContactCtrl', ['$scope', 'toaster', function($scope, toaster){
|
|
|
$scope.connect = function(type) {
|
|
|
toaster.pop('warning', '连接失败', '高峰期建议选择自助服务或问题反馈');
|
|
|
@@ -87,7 +87,7 @@ define([ 'toaster', 'ngTable', 'common/services', 'ui.router', 'ui.bootstrap', '
|
|
|
$scope.slides = data;
|
|
|
});
|
|
|
}]);
|
|
|
- app.controller('ForgetPwd1Ctrl', function($scope, toaster, Password){
|
|
|
+ app.controller('ForgetPwd1Ctrl', ['$scope', 'toaster', 'Password', function($scope, toaster, Password){
|
|
|
$scope.loading = false;
|
|
|
$scope.getUserInfo = function(){
|
|
|
$scope.loading = true;
|
|
|
@@ -124,8 +124,8 @@ define([ 'toaster', 'ngTable', 'common/services', 'ui.router', 'ui.bootstrap', '
|
|
|
});
|
|
|
};
|
|
|
|
|
|
- });
|
|
|
- app.controller('ForgetPwd2Ctrl', function($scope, toaster, $stateParams, Password){
|
|
|
+ }]);
|
|
|
+ app.controller('ForgetPwd2Ctrl', ['$scope', 'toaster', '$stateParams', 'Password', function($scope, toaster, $stateParams, Password){
|
|
|
$scope.uu = $stateParams.uu;
|
|
|
$scope.checkcode = $stateParams.checkcode;
|
|
|
$scope.checking = true;
|
|
|
@@ -161,7 +161,7 @@ define([ 'toaster', 'ngTable', 'common/services', 'ui.router', 'ui.bootstrap', '
|
|
|
});
|
|
|
};
|
|
|
|
|
|
- });
|
|
|
+ }]);
|
|
|
/**
|
|
|
* 搜索框,回车触发
|
|
|
*/
|