|
|
@@ -1755,19 +1755,28 @@ define([ 'app/app' ], function(app) {
|
|
|
/**
|
|
|
* 左侧导航栏控制器
|
|
|
*/
|
|
|
- app.controller('leftNavCtrl', ["$scope", "toaster", '$modal', '$rootScope', function($scope, toaster, $modal, $rootScope) {
|
|
|
- //安全设置提醒框
|
|
|
- $scope.openHomeCenterModel = function () {
|
|
|
- var modalInstance = $modal.open({
|
|
|
- animation: true,
|
|
|
- templateUrl: $rootScope.rootPath + '/static/view/usercenter/modal/homeCenter_modal.html',
|
|
|
- controller: 'homeModalCtrl'
|
|
|
- });
|
|
|
- modalInstance.result.then(function () {
|
|
|
- }, function () {
|
|
|
- });
|
|
|
- };
|
|
|
- }]);
|
|
|
+ app.controller('leftNavCtrl', ["$scope", "toaster", '$modal', '$rootScope', function($scope, toaster, $modal, $rootScope){
|
|
|
+ //安全设置提醒框
|
|
|
+
|
|
|
+ $scope.openHomeCenterModel = 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.promptUpdate = function() {
|
|
|
+ if (!$scope.userInfo.pwdEnable || !$scope.userInfo.haveUserQuestion||!$scope.userInfo.emailValidCode || $scope.userInfo.emailValidCode != 2) {
|
|
|
+ $scope.openHomeCenterModel();
|
|
|
+ }
|
|
|
+ /*if (!$scope.userInfo.pwdEnable || !$scope.userInfo.userEmail || !$scope.userInfo.haveUserQuestion) {
|
|
|
+ $scope.openHomeCenterModel();
|
|
|
+ }*/
|
|
|
+ };
|
|
|
+ }]);
|
|
|
|
|
|
function checkNullStr (str) {
|
|
|
const NULL_ARR = ['空', '没', '无', '-', '—', 'null', '#N/A'];
|
|
|
@@ -1782,21 +1791,7 @@ define([ 'app/app' ], function(app) {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- /**
|
|
|
- * 左侧导航栏控制器
|
|
|
- */
|
|
|
- app.controller('leftNavCtrl', ["$scope", "toaster", function($scope, toaster){
|
|
|
- $scope.promptUpdate = function() {
|
|
|
- if (!$scope.userInfo.pwdEnable || !$scope.userInfo.haveUserQuestion||!$scope.userInfo.emailValidCode || $scope.userInfo.emailValidCode != 2) {
|
|
|
- $scope.openHomeCenterModel();
|
|
|
- }
|
|
|
- /*if (!$scope.userInfo.pwdEnable || !$scope.userInfo.userEmail || !$scope.userInfo.haveUserQuestion) {
|
|
|
- $scope.openHomeCenterModel();
|
|
|
- }*/
|
|
|
- };
|
|
|
- }]);
|
|
|
-
|
|
|
- app.controller('homeModalCtrl', ['$rootScope', '$scope', '$modalInstance', 'toaster', '$http', 'ShippingAddress','$state', function($rootScope, $scope, $modalInstance, toaster, $http, ShippingAddress,$state){
|
|
|
+ app.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();
|
|
|
@@ -1831,5 +1826,4 @@ define([ 'app/app' ], function(app) {
|
|
|
}
|
|
|
return arr;
|
|
|
};
|
|
|
-
|
|
|
});
|