|
@@ -14,12 +14,24 @@ define(['app/app', 'calendar'], function(app) {
|
|
|
};
|
|
};
|
|
|
getRecommendComps(null, null, {page: 0, size: 12});
|
|
getRecommendComps(null, null, {page: 0, size: 12});
|
|
|
|
|
|
|
|
|
|
+ //安全设置提醒框
|
|
|
|
|
+ $scope.openModel = function() {
|
|
|
|
|
+ var modalInstance = $modal.open({
|
|
|
|
|
+ animation: true,
|
|
|
|
|
+ templateUrl: $rootScope.rootPath + '/static/view/usercenter/modal/homeCenter_modal.html',
|
|
|
|
|
+ controller:'homeModalCtrl'
|
|
|
|
|
+ });
|
|
|
|
|
+ modalInstance.result.then(function(){
|
|
|
|
|
+ }, function(){
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
//安全级别
|
|
//安全级别
|
|
|
$scope.secSuccess = false;
|
|
$scope.secSuccess = false;
|
|
|
if($scope.userInfo.pwdEnable && ($scope.userInfo.haveUserQuestion || $scope.userInfo.userEmail==null?false:true)){//通过验证
|
|
if($scope.userInfo.pwdEnable && ($scope.userInfo.haveUserQuestion || $scope.userInfo.userEmail==null?false:true)){//通过验证
|
|
|
$scope.secSuccess = true;
|
|
$scope.secSuccess = true;
|
|
|
}else{
|
|
}else{
|
|
|
- //location.href="#/accountManager";
|
|
|
|
|
|
|
+ $scope.openModel();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -207,6 +219,19 @@ define(['app/app', 'calendar'], function(app) {
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
}]);
|
|
}]);
|
|
|
|
|
+ app.register.controller('homeModalCtrl', ['$scope', '$modalInstance', 'toaster', '$http', 'ShippingAddress','$state', function($scope, addr, $modalInstance, toaster, $http, ShippingAddress,$state){
|
|
|
|
|
+ $scope.goLink = function(op){
|
|
|
|
|
+ //location.href="user#/accountManager";
|
|
|
|
|
+ //$state.go('account_manager');
|
|
|
|
|
+ // $.state.go('account_manager',{op:op});
|
|
|
|
|
+ // $modalInstance.close();
|
|
|
|
|
+ close();
|
|
|
|
|
+ }
|
|
|
|
|
+ // 关闭模态窗
|
|
|
|
|
+ $scope.close = function() {
|
|
|
|
|
+ $modalInstance.close();
|
|
|
|
|
+ };
|
|
|
|
|
+ }]);
|
|
|
|
|
|
|
|
//地址编辑模态框
|
|
//地址编辑模态框
|
|
|
app.register.controller('editAddrHomeCtrl', ['$scope', 'isSetTop', 'isModify', 'addr', '$modalInstance', 'toaster', '$http', 'ShippingAddress', function($scope, isSetTop, isModify, addr, $modalInstance, toaster, $http, ShippingAddress){
|
|
app.register.controller('editAddrHomeCtrl', ['$scope', 'isSetTop', 'isModify', 'addr', '$modalInstance', 'toaster', '$http', 'ShippingAddress', function($scope, isSetTop, isModify, addr, $modalInstance, toaster, $http, ShippingAddress){
|