[Y] 新建账户弹窗 & 提示修改密码弹窗

master
taylor.dang 6 years ago
parent 0fc05d2c58
commit f84a0a1777

@ -18,28 +18,31 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
var stompClient = null; var stompClient = null;
var newPartnerGuide_counts = 0; var newPartnerGuide_counts = 0;
var pwdcount = 0;
$scope.loadCurrentUser = function () { $scope.loadCurrentUser = function () {
$http.get('/global/userstatus/current_partner').then(function (resp) { $http.get('/global/userstatus/current_partner').then(function (resp) {
$rootScope.currentUser = resp.data; $rootScope.currentUser = resp.data;
/* if ((resp.data.client.approve_result == 2 || resp.data.client.approve_result == 3) && resp.data.client.source == 4) { /* if ((resp.data.client.approve_result == 2 || resp.data.client.approve_result == 3) && resp.data.client.source == 4) {
if (resp.data.wechat_openid == null) { if (resp.data.wechat_openid == null) {
$scope.newPartnerGuide(resp.data); $scope.newPartnerGuide(resp.data);
} else { } else {
$http.get('/client/partner_info/orderscount').then(function (resp) { $http.get('/client/partner_info/orderscount').then(function (resp) {
if (resp.data == 0 && newPartnerGuide_counts == 0) { if (resp.data == 0 && newPartnerGuide_counts == 0) {
$scope.newPartnerGuide(resp.data); $scope.newPartnerGuide(resp.data);
} }
}); });
} }
}*/
if ($rootScope.currentUser.is_password_expired && pwdcount == 0) {
}*/
if ($rootScope.currentUser.is_password_expired) {
commonDialog.confirm({ commonDialog.confirm({
title: 'Change Password!', title: 'Change Password!',
content: 'Your password has been expired,click OK to set a new password' content: 'Your password has been expired,click OK to set a new password'
}).then(function () { }).then(function () {
$scope.changePwd(); $scope.changePwd();
}) })
pwdcount++;
} }
connectWebSocket(); connectWebSocket();
if ($scope.currentUser.role == 1 || $scope.currentUser.role == 2) { if ($scope.currentUser.role == 1 || $scope.currentUser.role == 2) {
@ -119,9 +122,9 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
ag: ag ag: ag
}, },
size: 'lg', size: 'lg',
type:'info', type: 'info',
backdrop:'static', backdrop: 'static',
keyboard:false keyboard: false
}).result.then(function () { }).result.then(function () {
// $scope.loadPartnerNotice(); // $scope.loadPartnerNotice();
}) })
@ -129,7 +132,7 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
$scope.getAgStatus = function () { $scope.getAgStatus = function () {
$http.get('/client/partner_info/checkContract').then(function (resp) { $http.get('/client/partner_info/checkContract').then(function (resp) {
if (resp.data){ if (resp.data) {
$scope.showAG(resp.data) $scope.showAG(resp.data)
} }
@ -139,9 +142,9 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
$scope.refundNotice = {counts: 0}; $scope.refundNotice = {counts: 0};
$scope.openRefundNotice = false; $scope.openRefundNotice = false;
$scope.showRefundNotice = function () { $scope.showRefundNotice = function () {
$http.get('/api/payment/v1.0/refund/json/auditions').then(function (resp) { $http.get('/api/payment/v1.0/refund/json/auditions').then(function (resp) {
$scope.refundNotice.counts = resp.data.counts; $scope.refundNotice.counts = resp.data.counts;
}); });
}; };
$scope.showRefundNotice(); $scope.showRefundNotice();
$scope.toggleOpenRefundNotice = function () { $scope.toggleOpenRefundNotice = function () {
@ -305,7 +308,7 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
} }
}]); }]);
app.controller('agreementDetailCtrl', ['$scope', '$http', 'commonDialog','$sce', 'ag', function ($scope, $http,commonDialog, $sce, ag) { app.controller('agreementDetailCtrl', ['$scope', '$http', 'commonDialog', '$sce', 'ag', function ($scope, $http, commonDialog, $sce, ag) {
$scope.ag = angular.copy(ag); $scope.ag = angular.copy(ag);
$scope.agreeCheck = false; $scope.agreeCheck = false;
$scope.agree = function () { $scope.agree = function () {
@ -560,7 +563,7 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
return function (module) { return function (module) {
var result = false; var result = false;
angular.forEach($rootScope.currentUser.available_module_ids, function (item) { angular.forEach($rootScope.currentUser.available_module_ids, function (item) {
if((item+'') == (module+'')){ if ((item + '') == (module + '')) {
result = true; result = true;
return result; return result;
} }

@ -66,6 +66,7 @@ define(['angular', 'uiRouter', 'uiBootstrap'], function (angular) {
}; };
$scope.newManager = function () { $scope.newManager = function () {
$uibModal.open({ $uibModal.open({
backdrop: 'static', keyboard: false,
templateUrl: '/static/config/managers/templates/new_manager.html', templateUrl: '/static/config/managers/templates/new_manager.html',
controller: 'newManagerDialogCtrl' controller: 'newManagerDialogCtrl'
}).result.then(function () { }).result.then(function () {

Loading…
Cancel
Save