HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/html; charset=utf-8
Server: Microsoft-IIS/8.5
X-AspNetMvc-Version: 5.2
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
X-Frame-Options: SAMEORIGIN
Strict-Transport-Security: max-age=31536000
Content-Security-Policy: connect-src *;object-src 'self';media-src 'self';font-src 'self' data: ;script-src 'self' 'unsafe-inline' 'unsafe-eval' https://api.map.baidu.com
X-Content-Type-Options: nosniff
X-XSS-Protection: 1;mode=block
Referrer-Policy: origin
X-Permitted-Cross-Domain-Policies: none
X-Download-Options: noopen
Date: Thu, 07 Nov 2024 05:29:54 GMT
Connection: close
Content-Length: 59410
<!DOCTYPE html>
<html>
<head>
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>易思无人值守智能物流系统</title>
<link href="/Content/styles/eframe-login2.css" rel="stylesheet" />
<link href="/Content/styles/font-awesome.min.css" rel="stylesheet" />
<script src="/Content/scripts/jquery/jquery-3.6.0.min.js"></script>
<script src="/Content/scripts/plugins/jquery.md5.js"></script>
<script src="/Content/scripts/plugins/cookie/jquery.cookie.js"></script>
<script src="/Content/scripts/plugins/dialog/dialog.js"></script>
<script src="/Content/scripts/plugins/validator/validator.js"></script>
<script src="/Content/scripts/plugins/tipso.min.js"></script>
<script src="/Content/Ticket/app-script.js"></script>
<script src="/Content/Ticket/authorization.js"></script>
<script src="/Content/scripts/bootstrap/bootstrap.min.js"></script>
<script src="/Content/scripts/iconfont.js"></script>
<script src="/Content/Ticket/login.js"></script>
<script src="/Content/Ticket/store.legacy.min.js"></script>
<script src="/Content/scripts/utils/eframe-ui.js"></script>
<script src="/Content/scripts/plugins/datepicker/WdatePicker.js"></script>
<script src="/scripts/crypto-js.min.js"></script>
<script src="/scripts/aesEncrypt.js"></script>
<link href="/Content/scripts/plugins/datepicker/skin/WdatePicker.css" rel="stylesheet" />
<link href="/Content/scripts/bootstrap/bootstrap.min.css" rel="stylesheet" />
<link href="/Content/styles/iconfont.css" rel="stylesheet" />
<link href="/Content/styles/loginindex.css" rel="stylesheet" />
<link href="/Content/styles/eframe-ui.css" rel="stylesheet" />
<style type="text/css">
input[type=text]::-ms-clear {
display: none;
}
input[type=password]::-ms-reveal {
display: none;
}
</style>
<script>
var contentPath = '/'.substr(0, '/'.length - 1);
var isIE = !!window.ActiveXObject;
var isIE6 = isIE && !window.XMLHttpRequest;
if (isIE6) {
window.location.href = contentPath + "/Error/ErrorBrowser";
}
sessionStorage.clear();
localStorage.clear();
//老项目会有cookie记录这里清掉
top.$.cookie('currentmoduleId', "", { path: "/" });
top.$.cookie('prevcurrentmoduleId', "", { path: "/" });
//回车键
document.onkeydown = function (e) {
if (!e) e = window.event;
if ((e.keyCode || e.which) == 13) {
var btlogin = document.getElementById("btnlogin");
btnlogin.click();
}
}
$(function () {
initialPage();
$(window).resize(function (e) {
window.setTimeout(initialPage, 200);
e.stopPropagation();
});
initialControl();
$(".input-item input").focus(function () {
$(this).parents(".input-item").addClass("input-focus");
}).blur(function () {
$(this).parents(".input-item").removeClass("input-focus");
});
// GetSob();
$("#account").ComboBox({
url: "/APi/SingleLogin/GetSobList",
id: "SOBNO",
text: "SOBNAME",
description: "",
height: "285px",
// width:width, //"200px",
});
//$("#account").find("input").trigger("keyup").css("border-bottom", "0px");
$("#account").ComboBoxSetIndex(0);
$("#account").find("input").css("border-bottom", "0px");
// $("#account").find("input").css("border-bottom", "0px");
});
function initialPage() {
var wHeight = $(window).height();
var wWidth = $(window).width();
var topHeight = (wHeight - 524) / 2;
var leftWidth = (wWidth - 1024) / 2;
// $(".lr-login-top").css("margin-top", (topHeight - 56) + "px");
$(".menu").css("top", (topHeight + 50) + "px");
$(".lr-bg-left").width(leftWidth);
$(".lr-bg-right").width(leftWidth);
}
function initialControl() {
//错误提示
if (top.$.cookie('eosine_login_error') != null) {
switch (top.$.cookie('eosine_login_error')) {
case "Overdue":
formMessage('登录已超时,请重新登录');
break;
case "OnLine":
formMessage('您的帐号已在其它地方登录,请重新登录');
break;
case "noCache":
formMessage('缓存过期,请重新登录');
break;
case "-1":
formMessage('未知错误,请重新登录');
break;
default:
break;
}
top.$.cookie('eosine_login_error', '', { path: "/", expires: -1 });
}
//是否自动登录
if (top.$.cookie('eosine_autologin') == 1) {
$("#autologin").attr("checked", 'true');
$("#username").val(top.$.cookie('eosine_username'));
$("#password").val(top.$.cookie('eosine_password'));
CheckLogin(1);
}
//设置下次自动登录
$("#autologin").click(function () {
if (!$(this).attr('checked')) {
$(this).attr("checked", 'true');
top.$.cookie('eosine_autologin', 1, { path: "/", expires: 7 });
} else {
$(this).removeAttr("checked");
top.$.cookie('eosine_autologin', '', { path: "/", expires: -1 });
top.$.cookie('eosine_username', '', { path: "/", expires: -1 });
top.$.cookie('eosine_password', '', { path: "/", expires: -1 });
}
});
//主题风格
var eosine_UItheme = top.$.cookie('eosine_UItheme');
if (eosine_UItheme) {
console.log(eosine_UItheme);
$("#UItheme").val(eosine_UItheme);
}
//登录按钮事件
$("#btnlogin").click(function () {
formMessageRemove();
var logintype = $(".handleBox .cus-l.active:visible").attr("login-type");
if (logintype == "pc") {
var hasverify = false; //验证码是否显示,默认不显示
var $username = $("#username");
var $password = $("#password");
var $verifycode = "";
if ($("#verifycode").is(':visible')) {
hasverify = true;
$verifycode = $("#verifycode");
}
var $account = $("#account");
if ($username.val() == "") {
$username.focus();
formMessage('请输入登录账户名.');
return false;
} else if ($password.val() == "") {
$password.focus();
formMessage('请输入密码.');
return false;
}
else if ($account.attr("data-value") == "") {
$account.focus();
formMessage('请输入账套名称。');
return false;
}
else if (hasverify == true && $verifycode.val() == "") {
$verifycode.focus();
formMessage('请输入验证码.');
return false;
}
else {
//CheckLogin(0);
ValidateResKey();
}
} else if (logintype == "phone") {
var $phoneaccount = $("#username");
var $phoneVerify = $("#phoneVerifyCode");
if ($phoneaccount.val() == "") {
$phoneaccount.focus();
formMessage('请输入账号/手机号.');
return false;
} else if ($phoneVerify.val() == "") {
$phoneVerify.focus();
formMessage('请输入验证码.');
return false;
}
else {
//CheckLogin(0);
ValidateResKey();
}
}
});
//点击切换验证码
$("#login_verifycode").click(function () {
$("#verifycode").val('');
$("#login_verifycode").attr("src", contentPath + "/Login/VerifyCode?time=" + Math.random());
});
//切换注册表单
$("#a_register").click(function () {
$("#lr-login-form").hide();
$("#lr-register-form").show();
$("#register_verifycode").attr("src", contentPath + "/Login/VerifyCode?time=" + Math.random());
});
//切换登录表单
$("#a_login").click(function () {
$("#lr-login-form").show();
$("#lr-register-form").hide();
$("#login_verifycode").attr("src", contentPath + "/Login/VerifyCode?time=" + Math.random());
});
}
//获取操作系统
function browserRedirect() {
var sUserAgent = navigator.userAgent;
var isWin = (navigator.platform == "Win32") || (navigator.platform == "Windows");
var isMac = (navigator.platform == "Mac68K") || (navigator.platform == "MacPPC") || (navigator.platform == "Macintosh") || (navigator.platform == "MacIntel");
if (isMac) return "Mac";
var isUnix = (navigator.platform == "X11") && !isWin && !isMac;
if (isUnix) return "Unix";
var isLinux = (String(navigator.platform).indexOf("Linux") > -1);
if (isLinux) return "Linux";
if (isWin) {
var isWin2K = sUserAgent.indexOf("Windows NT 5.0") > -1 || sUserAgent.indexOf("Windows 2000") > -1;
if (isWin2K) return "Windows2000";
var isWinXP = sUserAgent.indexOf("Windows NT 5.1") > -1 || sUserAgent.indexOf("Windows XP") > -1;
if (isWinXP) return "WindowsXP";
var isWin2003 = sUserAgent.indexOf("Windows NT 5.2") > -1 || sUserAgent.indexOf("Windows 2003") > -1;
if (isWin2003) return "Windows2003";
var isWinVista = sUserAgent.indexOf("Windows NT 6.0") > -1 || sUserAgent.indexOf("Windows Vista") > -1;
if (isWinVista) return "WindowsVista";
var isWin7 = sUserAgent.indexOf("Windows NT 6.1") > -1 || sUserAgent.indexOf("Windows 7") > -1;
if (isWin7) return "Windows7";
var isWin10 = sUserAgent.indexOf("Windows NT 10") > -1 || sUserAgent.indexOf("Windows 10") > -1;
if (isWin10) return "Windows10";
}
return "other";
}
//登录验证
function CheckLogin(autologin) {
var isverify = false; //默认不验证 验证码
var phoneVerify;
var $account = $.trim($("#username").val());
var logintype = $(".handleBox .cus-l.active:visible").attr("login-type");
if (logintype == "pc") {
if ($("#verifycode").is(':visible')) {
isverify = true;
}
devicetype = 2;
phoneVerify = "";
} else if (logintype == "phone") {
//$account = $.trim($("#phoneNumber").val());
//if (!(/^1[3|4|5|6|7|8|9]\d{9}$/.test($account))) {
// formMessage("手机号码有误,请重填");
// return false;
//}
devicetype = 10;
phoneVerify = $.trim($("#phoneVerifyCode").val())
}
var password = $.trim($("#password").val());
var $dbkey = $("#account").attr("data-value");
var sobText = $("#account").attr("data-Text");//.val();
sessionStorage.setItem("setAccountText", sobText);
var verifycode = $.trim($("#verifycode").val());
if (top.$.cookie('eosine_password') == "" || top.$.cookie('eosine_password') == null) {
password = $.md5(password);
} else {
password = $.md5(password);// top.$.cookie('learn_password');
}
var tempStr = password;
var explorer = getExplorerInfo();
var explorertype = "";
if (explorer != undefined) {
explorertype = explorer.type;
}
var usertype = $(".cus-l.active:visible").attr("usertype-value");
var equipmentcomputer = browserRedirect();
var message = aesJmEncrypt($.trim($("#password").val()));
//var shwmessage = sha1Encrypt($.trim($("#password").val()));
//加密
var postData = {
LoginUserType: usertype,
DeviceType: devicetype,
Account: $account,
Password: tempStr,
BrowserType: explorertype,
Verifycode: verifycode,
IMEI: "",
isverify: isverify,
SetOfBooks: $dbkey,
Espassword: message,
SMSCode: phoneVerify,
EquipmentComputer: equipmentcomputer,
};
$("#btnlogin").addClass('active').attr('disabled', 'disabled');
$("#btnlogin").find('span').hide();
// getToken(postData);
$.ajax({
type: "POST",
url: uri + "/api/SingleLogin/login",
dataType: "json",
Cache: false,
data: postData,
contentType: "application/x-www-form-urlencoded; charset=utf-8",
success: function (result) {
if (result.IsSuccess) {
sessionStorage.setItem("ticket", result.UserModel.Ticket);
sessionStorage.setItem("tokenLifeTime", result.UserModel.LogTime);
sessionStorage.setItem("setAccount", result.UserModel.SetOfBooks);
sessionStorage.setItem("billdate", $("#logindate").val());
sessionStorage.setItem("category", result.UserModel.Category);
sessionStorage.setItem("usertype", "1");
sessionStorage.setItem("CompanyId", result.UserModel.CompanyId);
sessionStorage.setItem("CompanyName", result.UserModel.CompanyName)
{
"@category" : "datascan",
"@timestamp" : "2024-11-07T05:29:57.000Z",
"app" : {
"extract" : {
"domain" : [
"baidu.com"
],
"hostname" : [
"api.map.baidu.com"
],
"url" : [
"https://api.map.baidu.com"
]
},
"http" : {
"bodymd5" : "297b026b73bae84a8fc935e5e6d9ce2e",
"bodymmh3" : 1338287728,
"component" : [
{
"productversion" : "3.6.0",
"productvendor" : "jQuery",
"product" : "jQuery"
},
{
"productvendor" : "Bootstrap",
"product" : "Bootstrap"
},
{
"productvendor" : "Microsoft",
"productversion" : "4.0.30319",
"product" : "ASP.NET"
}
],
"headermd5" : "6b8bbae22830edac3c6b1b52cbf27856",
"headermmh3" : 56119915,
"title" : "\u6613\u601d\u65e0\u4eba\u503c\u5b88\u667a\u80fd\u7269\u6d41\u7cfb\u7edf"
},
"length" : 16384
},
"asn" : "AS9808",
"country" : "CN",
"cpe" : "<enterprise field>: cpe",
"cpecount" : "<enterprise field>: cpecount",
"data" : "HTTP/1.1 200 OK\r\nCache-Control: private\r\nContent-Type: text/html; charset=utf-8\r\nServer: Microsoft-IIS/8.5\r\nX-AspNetMvc-Version: 5.2\r\nX-AspNet-Version: 4.0.30319\r\nX-Powered-By: ASP.NET\r\nX-Frame-Options: SAMEORIGIN\r\nStrict-Transport-Security: max-age=31536000\r\nContent-Security-Policy: connect-src *;object-src 'self';media-src 'self';font-src 'self' data: ;script-src 'self' 'unsafe-inline' 'unsafe-eval' https://api.map.baidu.com \r\nX-Content-Type-Options: nosniff\r\nX-XSS-Protection: 1;mode=block\r\nReferrer-Policy: origin\r\nX-Permitted-Cross-Domain-Policies: none\r\nX-Download-Options: noopen\r\nDate: Thu, 07 Nov 2024 05:29:54 GMT\r\nConnection: close\r\nContent-Length: 59410\r\n\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n <meta name=\"renderer\" content=\"webkit\">\r\n <meta name=\"viewport\" content=\"width=device-width\" />\r\n <meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">\r\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\r\n <title>\u6613\u601d\u65e0\u4eba\u503c\u5b88\u667a\u80fd\u7269\u6d41\u7cfb\u7edf</title>\r\n <link href=\"/Content/styles/eframe-login2.css\" rel=\"stylesheet\" />\r\n <link href=\"/Content/styles/font-awesome.min.css\" rel=\"stylesheet\" />\r\n \r\n <script src=\"/Content/scripts/jquery/jquery-3.6.0.min.js\"></script>\r\n <script src=\"/Content/scripts/plugins/jquery.md5.js\"></script>\r\n <script src=\"/Content/scripts/plugins/cookie/jquery.cookie.js\"></script>\r\n <script src=\"/Content/scripts/plugins/dialog/dialog.js\"></script>\r\n <script src=\"/Content/scripts/plugins/validator/validator.js\"></script>\r\n <script src=\"/Content/scripts/plugins/tipso.min.js\"></script>\r\n <script src=\"/Content/Ticket/app-script.js\"></script>\r\n <script src=\"/Content/Ticket/authorization.js\"></script>\r\n <script src=\"/Content/scripts/bootstrap/bootstrap.min.js\"></script>\r\n <script src=\"/Content/scripts/iconfont.js\"></script>\r\n <script src=\"/Content/Ticket/login.js\"></script>\r\n <script src=\"/Content/Ticket/store.legacy.min.js\"></script>\r\n <script src=\"/Content/scripts/utils/eframe-ui.js\"></script>\r\n <script src=\"/Content/scripts/plugins/datepicker/WdatePicker.js\"></script>\r\n <script src=\"/scripts/crypto-js.min.js\"></script>\r\n <script src=\"/scripts/aesEncrypt.js\"></script>\r\n <link href=\"/Content/scripts/plugins/datepicker/skin/WdatePicker.css\" rel=\"stylesheet\" />\r\n <link href=\"/Content/scripts/bootstrap/bootstrap.min.css\" rel=\"stylesheet\" />\r\n <link href=\"/Content/styles/iconfont.css\" rel=\"stylesheet\" />\r\n <link href=\"/Content/styles/loginindex.css\" rel=\"stylesheet\" />\r\n <link href=\"/Content/styles/eframe-ui.css\" rel=\"stylesheet\" />\r\n <style type=\"text/css\">\r\n input[type=text]::-ms-clear {\r\n display: none;\r\n }\r\n\r\n input[type=password]::-ms-reveal {\r\n display: none;\r\n }\r\n </style>\r\n <script>\r\n var contentPath = '/'.substr(0, '/'.length - 1);\r\n var isIE = !!window.ActiveXObject;\r\n var isIE6 = isIE && !window.XMLHttpRequest;\r\n if (isIE6) {\r\n window.location.href = contentPath + \"/Error/ErrorBrowser\";\r\n }\r\n sessionStorage.clear();\r\n localStorage.clear();\r\n //\u8001\u9879\u76ee\u4f1a\u6709cookie\u8bb0\u5f55\u8fd9\u91cc\u6e05\u6389\r\n top.$.cookie('currentmoduleId', \"\", { path: \"/\" });\r\n top.$.cookie('prevcurrentmoduleId', \"\", { path: \"/\" });\r\n //\u56de\u8f66\u952e\r\n document.onkeydown = function (e) {\r\n if (!e) e = window.event;\r\n if ((e.keyCode || e.which) == 13) {\r\n var btlogin = document.getElementById(\"btnlogin\");\r\n btnlogin.click();\r\n }\r\n }\r\n $(function () {\r\n initialPage();\r\n $(window).resize(function (e) {\r\n window.setTimeout(initialPage, 200);\r\n e.stopPropagation();\r\n });\r\n initialControl();\r\n\r\n $(\".input-item input\").focus(function () {\r\n $(this).parents(\".input-item\").addClass(\"input-focus\");\r\n }).blur(function () {\r\n $(this).parents(\".input-item\").removeClass(\"input-focus\");\r\n });\r\n // GetSob();\r\n $(\"#account\").ComboBox({\r\n url: \"/APi/SingleLogin/GetSobList\",\r\n id: \"SOBNO\",\r\n text: \"SOBNAME\",\r\n description: \"\",\r\n height: \"285px\",\r\n // width:width, //\"200px\",\r\n });\r\n //$(\"#account\").find(\"input\").trigger(\"keyup\").css(\"border-bottom\", \"0px\");\r\n\r\n $(\"#account\").ComboBoxSetIndex(0);\r\n $(\"#account\").find(\"input\").css(\"border-bottom\", \"0px\");\r\n // $(\"#account\").find(\"input\").css(\"border-bottom\", \"0px\");\r\n });\r\n\r\n\r\n\r\n function initialPage() {\r\n var wHeight = $(window).height();\r\n var wWidth = $(window).width();\r\n var topHeight = (wHeight - 524) / 2;\r\n var leftWidth = (wWidth - 1024) / 2;\r\n // $(\".lr-login-top\").css(\"margin-top\", (topHeight - 56) + \"px\");\r\n $(\".menu\").css(\"top\", (topHeight + 50) + \"px\");\r\n $(\".lr-bg-left\").width(leftWidth);\r\n $(\".lr-bg-right\").width(leftWidth);\r\n }\r\n\r\n function initialControl() {\r\n //\u9519\u8bef\u63d0\u793a\r\n if (top.$.cookie('eosine_login_error') != null) {\r\n switch (top.$.cookie('eosine_login_error')) {\r\n case \"Overdue\":\r\n formMessage('\u767b\u5f55\u5df2\u8d85\u65f6,\u8bf7\u91cd\u65b0\u767b\u5f55');\r\n break;\r\n case \"OnLine\":\r\n formMessage('\u60a8\u7684\u5e10\u53f7\u5df2\u5728\u5176\u5b83\u5730\u65b9\u767b\u5f55,\u8bf7\u91cd\u65b0\u767b\u5f55');\r\n break;\r\n case \"noCache\":\r\n formMessage('\u7f13\u5b58\u8fc7\u671f,\u8bf7\u91cd\u65b0\u767b\u5f55');\r\n break;\r\n case \"-1\":\r\n formMessage('\u672a\u77e5\u9519\u8bef,\u8bf7\u91cd\u65b0\u767b\u5f55');\r\n break;\r\n default:\r\n break;\r\n }\r\n top.$.cookie('eosine_login_error', '', { path: \"/\", expires: -1 });\r\n }\r\n //\u662f\u5426\u81ea\u52a8\u767b\u5f55\r\n if (top.$.cookie('eosine_autologin') == 1) {\r\n $(\"#autologin\").attr(\"checked\", 'true');\r\n $(\"#username\").val(top.$.cookie('eosine_username'));\r\n $(\"#password\").val(top.$.cookie('eosine_password'));\r\n CheckLogin(1);\r\n }\r\n //\u8bbe\u7f6e\u4e0b\u6b21\u81ea\u52a8\u767b\u5f55\r\n $(\"#autologin\").click(function () {\r\n if (!$(this).attr('checked')) {\r\n $(this).attr(\"checked\", 'true');\r\n top.$.cookie('eosine_autologin', 1, { path: \"/\", expires: 7 });\r\n } else {\r\n $(this).removeAttr(\"checked\");\r\n top.$.cookie('eosine_autologin', '', { path: \"/\", expires: -1 });\r\n top.$.cookie('eosine_username', '', { path: \"/\", expires: -1 });\r\n top.$.cookie('eosine_password', '', { path: \"/\", expires: -1 });\r\n }\r\n });\r\n //\u4e3b\u9898\u98ce\u683c\r\n var eosine_UItheme = top.$.cookie('eosine_UItheme');\r\n if (eosine_UItheme) {\r\n console.log(eosine_UItheme);\r\n $(\"#UItheme\").val(eosine_UItheme);\r\n }\r\n //\u767b\u5f55\u6309\u94ae\u4e8b\u4ef6\r\n $(\"#btnlogin\").click(function () {\r\n formMessageRemove();\r\n var logintype = $(\".handleBox .cus-l.active:visible\").attr(\"login-type\");\r\n if (logintype == \"pc\") {\r\n var hasverify = false; //\u9a8c\u8bc1\u7801\u662f\u5426\u663e\u793a\uff0c\u9ed8\u8ba4\u4e0d\u663e\u793a\r\n var $username = $(\"#username\");\r\n var $password = $(\"#password\");\r\n var $verifycode = \"\";\r\n if ($(\"#verifycode\").is(':visible')) {\r\n hasverify = true;\r\n $verifycode = $(\"#verifycode\");\r\n }\r\n var $account = $(\"#account\");\r\n if ($username.val() == \"\") {\r\n $username.focus();\r\n formMessage('\u8bf7\u8f93\u5165\u767b\u5f55\u8d26\u6237\u540d.');\r\n return false;\r\n } else if ($password.val() == \"\") {\r\n $password.focus();\r\n formMessage('\u8bf7\u8f93\u5165\u5bc6\u7801.');\r\n return false;\r\n }\r\n else if ($account.attr(\"data-value\") == \"\") {\r\n $account.focus();\r\n formMessage('\u8bf7\u8f93\u5165\u8d26\u5957\u540d\u79f0\u3002');\r\n return false;\r\n }\r\n else if (hasverify == true && $verifycode.val() == \"\") {\r\n $verifycode.focus();\r\n formMessage('\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801.');\r\n return false;\r\n }\r\n else {\r\n \r\n //CheckLogin(0);\r\n ValidateResKey();\r\n }\r\n } else if (logintype == \"phone\") {\r\n var $phoneaccount = $(\"#username\");\r\n var $phoneVerify = $(\"#phoneVerifyCode\");\r\n if ($phoneaccount.val() == \"\") {\r\n $phoneaccount.focus();\r\n formMessage('\u8bf7\u8f93\u5165\u8d26\u53f7/\u624b\u673a\u53f7.');\r\n return false;\r\n } else if ($phoneVerify.val() == \"\") {\r\n $phoneVerify.focus();\r\n formMessage('\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801.');\r\n return false;\r\n }\r\n else {\r\n //CheckLogin(0);\r\n ValidateResKey();\r\n }\r\n }\r\n\r\n });\r\n //\u70b9\u51fb\u5207\u6362\u9a8c\u8bc1\u7801\r\n $(\"#login_verifycode\").click(function () {\r\n $(\"#verifycode\").val('');\r\n $(\"#login_verifycode\").attr(\"src\", contentPath + \"/Login/VerifyCode?time=\" + Math.random());\r\n });\r\n //\u5207\u6362\u6ce8\u518c\u8868\u5355\r\n $(\"#a_register\").click(function () {\r\n $(\"#lr-login-form\").hide();\r\n $(\"#lr-register-form\").show();\r\n $(\"#register_verifycode\").attr(\"src\", contentPath + \"/Login/VerifyCode?time=\" + Math.random());\r\n });\r\n //\u5207\u6362\u767b\u5f55\u8868\u5355\r\n $(\"#a_login\").click(function () {\r\n $(\"#lr-login-form\").show();\r\n $(\"#lr-register-form\").hide();\r\n $(\"#login_verifycode\").attr(\"src\", contentPath + \"/Login/VerifyCode?time=\" + Math.random());\r\n });\r\n }\r\n\r\n //\u83b7\u53d6\u64cd\u4f5c\u7cfb\u7edf\r\n function browserRedirect() {\r\n var sUserAgent = navigator.userAgent;\r\n var isWin = (navigator.platform == \"Win32\") || (navigator.platform == \"Windows\");\r\n var isMac = (navigator.platform == \"Mac68K\") || (navigator.platform == \"MacPPC\") || (navigator.platform == \"Macintosh\") || (navigator.platform == \"MacIntel\");\r\n if (isMac) return \"Mac\";\r\n var isUnix = (navigator.platform == \"X11\") && !isWin && !isMac;\r\n if (isUnix) return \"Unix\";\r\n var isLinux = (String(navigator.platform).indexOf(\"Linux\") > -1);\r\n if (isLinux) return \"Linux\";\r\n if (isWin) {\r\n var isWin2K = sUserAgent.indexOf(\"Windows NT 5.0\") > -1 || sUserAgent.indexOf(\"Windows 2000\") > -1;\r\n if (isWin2K) return \"Windows2000\";\r\n var isWinXP = sUserAgent.indexOf(\"Windows NT 5.1\") > -1 || sUserAgent.indexOf(\"Windows XP\") > -1;\r\n if (isWinXP) return \"WindowsXP\";\r\n var isWin2003 = sUserAgent.indexOf(\"Windows NT 5.2\") > -1 || sUserAgent.indexOf(\"Windows 2003\") > -1;\r\n if (isWin2003) return \"Windows2003\";\r\n var isWinVista = sUserAgent.indexOf(\"Windows NT 6.0\") > -1 || sUserAgent.indexOf(\"Windows Vista\") > -1;\r\n if (isWinVista) return \"WindowsVista\";\r\n var isWin7 = sUserAgent.indexOf(\"Windows NT 6.1\") > -1 || sUserAgent.indexOf(\"Windows 7\") > -1;\r\n if (isWin7) return \"Windows7\";\r\n var isWin10 = sUserAgent.indexOf(\"Windows NT 10\") > -1 || sUserAgent.indexOf(\"Windows 10\") > -1;\r\n if (isWin10) return \"Windows10\";\r\n }\r\n return \"other\";\r\n }\r\n\r\n //\u767b\u5f55\u9a8c\u8bc1\r\n function CheckLogin(autologin) {\r\n var isverify = false; //\u9ed8\u8ba4\u4e0d\u9a8c\u8bc1 \u9a8c\u8bc1\u7801\r\n var phoneVerify;\r\n var $account = $.trim($(\"#username\").val());\r\n var logintype = $(\".handleBox .cus-l.active:visible\").attr(\"login-type\");\r\n if (logintype == \"pc\") {\r\n if ($(\"#verifycode\").is(':visible')) {\r\n isverify = true;\r\n }\r\n\r\n devicetype = 2;\r\n phoneVerify = \"\";\r\n } else if (logintype == \"phone\") {\r\n //$account = $.trim($(\"#phoneNumber\").val());\r\n //if (!(/^1[3|4|5|6|7|8|9]\\d{9}$/.test($account))) {\r\n // formMessage(\"\u624b\u673a\u53f7\u7801\u6709\u8bef\uff0c\u8bf7\u91cd\u586b\");\r\n // return false;\r\n //}\r\n devicetype = 10;\r\n phoneVerify = $.trim($(\"#phoneVerifyCode\").val())\r\n }\r\n\r\n var password = $.trim($(\"#password\").val());\r\n var $dbkey = $(\"#account\").attr(\"data-value\");\r\n var sobText = $(\"#account\").attr(\"data-Text\");//.val();\r\n sessionStorage.setItem(\"setAccountText\", sobText);\r\n var verifycode = $.trim($(\"#verifycode\").val());\r\n if (top.$.cookie('eosine_password') == \"\" || top.$.cookie('eosine_password') == null) {\r\n password = $.md5(password);\r\n } else {\r\n password = $.md5(password);// top.$.cookie('learn_password');\r\n }\r\n var tempStr = password;\r\n var explorer = getExplorerInfo();\r\n var explorertype = \"\";\r\n if (explorer != undefined) {\r\n explorertype = explorer.type;\r\n }\r\n var usertype = $(\".cus-l.active:visible\").attr(\"usertype-value\");\r\n var equipmentcomputer = browserRedirect();\r\n var message = aesJmEncrypt($.trim($(\"#password\").val()));\r\n //var shwmessage = sha1Encrypt($.trim($(\"#password\").val()));\r\n //\u52a0\u5bc6\r\n\r\n var postData = {\r\n LoginUserType: usertype,\r\n DeviceType: devicetype,\r\n Account: $account,\r\n Password: tempStr,\r\n BrowserType: explorertype,\r\n Verifycode: verifycode,\r\n IMEI: \"\",\r\n isverify: isverify,\r\n SetOfBooks: $dbkey,\r\n Espassword: message,\r\n SMSCode: phoneVerify,\r\n EquipmentComputer: equipmentcomputer,\r\n };\r\n\r\n $(\"#btnlogin\").addClass('active').attr('disabled', 'disabled');\r\n $(\"#btnlogin\").find('span').hide();\r\n\r\n // getToken(postData);\r\n\r\n $.ajax({\r\n type: \"POST\",\r\n url: uri + \"/api/SingleLogin/login\",\r\n dataType: \"json\",\r\n Cache: false,\r\n data: postData,\r\n contentType: \"application/x-www-form-urlencoded; charset=utf-8\",\r\n success: function (result) {\r\n if (result.IsSuccess) {\r\n sessionStorage.setItem(\"ticket\", result.UserModel.Ticket);\r\n sessionStorage.setItem(\"tokenLifeTime\", result.UserModel.LogTime);\r\n sessionStorage.setItem(\"setAccount\", result.UserModel.SetOfBooks);\r\n sessionStorage.setItem(\"billdate\", $(\"#logindate\").val());\r\n sessionStorage.setItem(\"category\", result.UserModel.Category);\r\n sessionStorage.setItem(\"usertype\", \"1\");\r\n\r\n sessionStorage.setItem(\"CompanyId\", result.UserModel.CompanyId);\r\n sessionStorage.setItem(\"CompanyName\", result.UserModel.CompanyName)",
"datamd5" : "9aab36b6561da3ebef9d653ac25a5e95",
"datammh3" : 1322014875,
"device" : {
"class" : "<enterprise field>: device.class"
},
"geolocus" : {
"asn" : "AS9808",
"continent" : "AS",
"continentname" : "Asia",
"country" : "CN",
"countryname" : "China",
"domain" : [
"chinamobile.com"
],
"isineu" : "false",
"latitude" : "35.86166",
"location" : "35.86166,104.195397",
"longitude" : "104.195397",
"netname" : "CMNET",
"organization" : "China Mobile",
"subnet" : "111.21.0.0/16"
},
"ip" : "111.21.201.30",
"ipv6" : "false",
"latitude" : "34.7732",
"location" : "34.7732,113.7220",
"longitude" : "113.7220",
"node" : {
"country" : "<enterprise field>: node.country",
"groupid" : "<enterprise field>: node.groupid",
"id" : "<enterprise field>: node.id",
"physicalcountry" : "<enterprise field>: node.physicalcountry"
},
"organization" : "China Mobile Communications Group Co., Ltd.",
"os" : "Linux",
"osdistribution" : "sUse",
"osvendor" : "Linux",
"osversion" : [
"Server 2012",
"8.1"
],
"port" : 8082,
"product" : "IIS",
"productvendor" : "Microsoft",
"productversion" : "8.5",
"protocol" : "http",
"protocolversion" : "1.1",
"reason" : "OK",
"seen_date" : "2024-11-07",
"source" : "datascan",
"status" : 200,
"subnet" : "111.21.0.0/16",
"tag" : "<enterprise field>: tag",
"tls" : "false",
"transport" : "tcp",
"url" : "/"
}