You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
109 lines
3.4 KiB
109 lines
3.4 KiB
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
|
<title></title>
|
|
<link rel="stylesheet" href="css/mui.min.css">
|
|
<link rel="stylesheet" href="css/wangns.css">
|
|
<script src="js/mui.min.js" type="text/javascript"></script>
|
|
<script src="js/jquery-1.js"></script>
|
|
<style>
|
|
body {
|
|
background-color: #FFFFFF;
|
|
}
|
|
|
|
.mui-input-group:before {
|
|
background-color: transparent !important;
|
|
}
|
|
|
|
.mui-input-group:after {
|
|
background-color: transparent !important;
|
|
}
|
|
|
|
.mui-input-row input {
|
|
float: left;
|
|
width: 90%;
|
|
}
|
|
|
|
.mui-input-row span {
|
|
float: left;
|
|
margin-top: 5px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div style="width: 250px;height:250px;margin: 60px auto;background: url(img/logo.png);background-size: 100%;">
|
|
</div>
|
|
|
|
<div style="border: 0px; width: 90%;margin: 0 auto;">
|
|
<form class="mui-input-group" style="background-color: transparent;">
|
|
<div class="mui-input-row" ">
|
|
<span class="mui-icon mui-icon-person"></span>
|
|
<input id="loginName" type="text" class="mui-input-clear" placeholder="请输入用户名">
|
|
</div>
|
|
<div class="mui-input-row">
|
|
<span class="mui-icon mui-icon-locked"></span>
|
|
<input id="password" type="password" class="mui-input-password" placeholder="请输入密码">
|
|
</div>
|
|
<div class="mui-button-row">
|
|
<button id="sub" type="button" class="mui-btn mui-btn-primary" style="width: 90%;margin: 0 auto;background-color: #0080FF !important; border: 0px; padding: 10px;margin-top: 50px;">登录授权</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<script>
|
|
$("#sub").click(function () {
|
|
$.ajax({
|
|
url: "http://xjcamp.xfzn365.com/ashx/LoginHandler.ashx",
|
|
type: "post",
|
|
data: {
|
|
Action: "APPLoginAction",
|
|
strUser: jQuery("#loginName").val(),
|
|
strPwd: jQuery("#password").val()
|
|
},
|
|
success: function (data) {
|
|
if (data.code == 1) {
|
|
//账号密码验证成功
|
|
//验证数据
|
|
let _data = data.data;
|
|
//if(_data.OrgID == "" || _data.OrgID == null){
|
|
// mui.toast("账号信息有误,请联系平台管理员。")
|
|
// return false;
|
|
//}
|
|
if (_data.EmpSex == "" || _data.EmpSex == null) {
|
|
mui.toast("账号信息有误:未维护性别。请联系平台管理员。")
|
|
return false;
|
|
}
|
|
if (_data.Birthday == "" || _data.Birthday == null) {
|
|
mui.toast("账号信息有误:未维护生日。请联系平台管理员。")
|
|
return false;
|
|
}
|
|
if (_data.USERS_NAME == "" || _data.USERS_NAME == null) {
|
|
mui.toast("账号信息有误:未维护姓名。请联系平台管理员。")
|
|
return false;
|
|
}
|
|
let _sex = 1;
|
|
if (_data.EmpSex == "男") {
|
|
_sex = 0;
|
|
}
|
|
//组织数据userInfo
|
|
let userInfo = new Object();
|
|
userInfo.userAccount = _data.UserCode;
|
|
userInfo.userSex = _sex;
|
|
userInfo.orgId = _data.OrgID;
|
|
userInfo.deptId = _data.DeptID;
|
|
userInfo.userName = _data.USERS_NAME;
|
|
userInfo.birthday = _data.Birthday;
|
|
//跳转授权
|
|
window.location.href = "http://47.93.253.225:9090/health-kit/huawei/account/login/" + JSON.stringify(userInfo);
|
|
|
|
} else {
|
|
mui.toast("账号密码错误,请重新输入。")
|
|
return false;
|
|
}
|
|
}
|
|
})
|
|
})
|
|
</script>
|
|
</body>
|
|
</html>
|