| | |
| | | var PassWord = $("#LAY-user-login-password").val(); |
| | | layer.load(3); |
| | | $.ajax({ |
| | | type: "get", |
| | | type: "get", |
| | | url: GetWEBURL() + "/Web/GetUser", |
| | | //async: false, |
| | | data: { "UserName": UserName, "PassWord": PassWord, "HOrgName": $("#Organization").val() }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说明验证成功了, |
| | |
| | | //sessionStorage["IP"] = System.Configuration.ConfigurationSettings.AppSettings("name"); |
| | | if (!judgeMorPCflag) {//移动端 |
| | | window.location.href = '../../views/index_Mobile.html' |
| | | } else {//PC端 |
| | | window.location.href = '../../views/index.html' |
| | | } else {//PC端 |
| | | //判断是否有展开菜单栏权限 |
| | | $.ajax({ |
| | | type: "get", |
| | | url: GetWEBURL() + "/Web/MenuBar", |
| | | //async: false, |
| | | data: { "UserName": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说明验证成功了, |
| | | //有权限 |
| | | window.location.href = '../../views/index_Office.html' |
| | | |
| | | } else { |
| | | //无权限 |
| | | window.location.href = '../../views/index.html' |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | } |
| | | get_WriteConfigFile(); |
| | | } |