绑定微信只显示一次

master
yangkai 6 years ago
parent 7a44fa30c4
commit e4bc549a60

@ -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')) {

@ -311,6 +311,18 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
});
}
$scope.loadWechatBind = function () {
if (window.currentUser.wx_openid == null) {
if ((window.currentUser.role & 4) > 0) {
$scope.managerBindWechat('static');
} else {
$scope.managerBindWechat(true);
}
}
};
$scope.loadWechatBind();
}]);
app.controller('changePwdCtrl', ['$scope', '$http', function ($scope, $http) {
$scope.formData = {};

Loading…
Cancel
Save