diff --git a/src/main/ui/static/boot/managerMainApp.js b/src/main/ui/static/boot/managerMainApp.js index c9988febf..5909fa751 100644 --- a/src/main/ui/static/boot/managerMainApp.js +++ b/src/main/ui/static/boot/managerMainApp.js @@ -13,8 +13,11 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo $httpProvider.defaults.headers.get['Cache-Control'] = 'no-cache'; $httpProvider.defaults.headers.get['Pragma'] = 'no-cache'; }]); - app.controller('managerIndexCtrl', ['$scope', '$rootScope', '$http', '$log', '$timeout', '$interval', '$uibModal','$filter', 'myLoginLogView', 'commonDialog', - function ($scope, $rootScope, $http, $log, $timeout, $interval, $uibModal,$filter, myLoginLogView, commonDialog) { + app.controller('managerIndexCtrl', ['$scope', '$rootScope', '$http', '$log', '$timeout', '$interval', '$uibModal', '$filter', 'myLoginLogView', 'commonDialog', + function ($scope, $rootScope, $http, $log, $timeout, $interval, $uibModal, $filter, myLoginLogView, commonDialog) { + $http.get('/sysconfig/base').then(function (resp) { + $rootScope.sysParams = resp.data; + }); var stompClient = null; $scope.loadCurrentUser = function () { $http.get('/global/userstatus/current_manager').then(function (resp) { @@ -31,9 +34,9 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo // $scope.loadPartnerApplyNotice(); // } if ($rootScope.currentUser.wx_openid == null) { - if($filter('withRole')('100')){ + if ($filter('withRole')('100')) { $scope.managerBindWechat('static'); - }else { + } else { $scope.managerBindWechat(true); } @@ -103,7 +106,7 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo $scope.hideSideBar = !$scope.hideSideBar; }; - $scope.showQrCode = function (data,backdrop) { + $scope.showQrCode = function (data, backdrop) { return $uibModal.open({ template: '
{{wx_nickname}}