|
|
|
@ -49,7 +49,6 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
$scope.loadCurrentUser();
|
|
|
|
|
|
|
|
|
|
$scope.getManagerTodoNotices = function () {
|
|
|
|
|
$http.get('/global/userstatus/manager_todo_notices').then(function (resp) {
|
|
|
|
|
if (resp.data.length) {
|
|
|
|
@ -201,7 +200,17 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
|
|
|
|
|
window.open('/service_client.html?key='+resp.data.appkey+'&p='+resp.data.password+'&uid='+resp.data.user_id,'_blank');
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
$scope.loadWechatBind = function () {
|
|
|
|
|
if (window.currentUser.wx_openid == null) {
|
|
|
|
|
if ((window.currentUser.role & 4) > 0) {
|
|
|
|
|
$scope.managerBindWechat('static');
|
|
|
|
|
} else {
|
|
|
|
|
$scope.managerBindWechat(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
$scope.loadWechatBind();
|
|
|
|
|
function hasRole() {
|
|
|
|
|
var rolenum;
|
|
|
|
|
switch (sessionStorage.getItem('role')) {
|
|
|
|
|