95 lines
3.7 KiB
Plaintext
95 lines
3.7 KiB
Plaintext
@model CRM.Core.Model.Entity.BAS_INNERUSER
|
|
|
|
@{
|
|
ViewBag.Title = "账号登录";
|
|
Layout = null;
|
|
}
|
|
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>财务系统登录</title>
|
|
<meta name="renderer" content="webkit|ie-comp|ie-stand">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
|
|
<meta http-equiv="Cache-Control" content="no-siteapp" />
|
|
|
|
@*<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />*@
|
|
<!--<script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>-->
|
|
<link rel="stylesheet" href="/css/font.css">
|
|
<link rel="stylesheet" href="/css/xadmin.css">
|
|
<script src="/Scripts/jquery-1.10.2.min.js"></script>
|
|
<script src="~/Scripts/layui-v2.7.6/layui/layui.js" charset="utf-8"></script>
|
|
<script type="text/javascript" src="/Scripts/xadmin.js"></script>
|
|
<style>
|
|
.meg {
|
|
font-size: 12px;
|
|
color: red;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="login-bg">
|
|
|
|
<div class="login layui-anim layui-anim-up">
|
|
<div class="message">登录</div>
|
|
<div id="darkbannerwrap"></div>
|
|
|
|
<form id="loginForm" method="post" class="layui-form" action="@Url.Action("LogOn", "Account", new { returnUrl = this.ViewBag.ReturnUrl })">
|
|
<input name="eid" placeholder="用户名" type="text" lay-verify="required" class="layui-input">
|
|
<hr class="hr15">
|
|
<input name="password" lay-verify="required" placeholder="密码" type="password" class="layui-input">
|
|
<hr class="hr15">
|
|
@if (ViewBag.ShowSnCode != null && ViewBag.ShowSnCode)
|
|
{
|
|
|
|
@*@Html.TextBoxFor(m => m.map_SnCode, new { style = "width:60px;" })*@
|
|
<input name="map_SnCode" lay-verify="required" placeholder="验证码" type="text" style="width:200px;">
|
|
<img id="valiCode" style="cursor: pointer;vertical-align:text-bottom" onclick="ShowNewCode(this)" alt="验证码" />
|
|
}
|
|
<hr class="hr15">
|
|
<div style="margin-left: 150px;" class="meg">@this.ViewBag.LogOnError</div>
|
|
<input value="登录" lay-submit lay-filter="login" style="width:100%;" type="submit">
|
|
<hr class="hr20">
|
|
</form>
|
|
</div>
|
|
|
|
<script>
|
|
$(function () {
|
|
|
|
//$("html").die().live("keydown", function (event) {
|
|
// if (event.keyCode == 13) {
|
|
// //这里添加要处理的逻辑
|
|
// $("#loginForm").submit();
|
|
// }
|
|
//});
|
|
|
|
layui.use('form', function () {
|
|
var form = layui.form;
|
|
//layer.msg('玩命卖萌中', function(){
|
|
// //关闭后的操作
|
|
// });
|
|
//监听提交
|
|
form.on('submit(login)', function (data) {
|
|
$("#loginForm").submit();
|
|
//layer.msg(JSON.stringify(data.field),function(){
|
|
// location.href='in'
|
|
//});
|
|
return false;
|
|
});
|
|
});
|
|
$("#valiCode").attr("src", "/Account/GetValidateCode?y=" + GetGuid());
|
|
|
|
})
|
|
function ShowNewCode(img) {
|
|
$(img).attr("src", "/Account/GetValidateCode?y=" + GetGuid());
|
|
}
|
|
function GetGuid() {
|
|
var s4 = function () {
|
|
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
|
|
};
|
|
return s4() + s4() + s4() + "-" + s4();
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|