提交 c761954c 编写于 作者: mydemo4's avatar mydemo4

init

上级 95181fa5
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit">
<title>登录</title>
<link href="resource/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet">
<link href="resource/css/login.css" rel="stylesheet">
</head>
<body>
<!-- 内容区 begin -->
<div class="log_container">
<div class="login_backgroud_img">
<img src="resource/img/background.png">
</div>
<div class="wrap">
<div class="log_form">
<form>
<div class="form_container">
<div class="form-group">
<img src="resource/img/ibiz.png" />
</div>
<div class="form-group">
<input type="text" class="form-control form_input" id="userName" placeholder="请输入用户名">
</div>
<div class="form-group">
<input type="password" class="form-control form_input" id="pwd" placeholder="请输入密码">
</div>
<div class="form-group">
<label class="form-check-label request-answer" for="invalidCheck3" id="request-answer">
</label>
</div>
<div class="form-group">
<button type="button" class="login_btn btn btn-primary">登录</button>
<button type="button" class="login_reset btn btn-default">重置</button>
</div>
<div class="form-group">
<p class="form_tipinfo">温馨提示:</p>
<p class="form_tipinfo_more">
第一次进入系统需要初始化管理员用户,请点击下面按钮进行 初始化,才可以正常登录。
</p>
</div>
<div class="form-group">
<button type="button" class="sys_init btn btn-default">初始化</button>
</div>
</div>
</form>
</div>
<div class="log_footer">
<div class="copyright">Copyright © 2018
<a href="http://www.ibizsys.net/ibizsys/channelview?channelId=ibizsys.about" target="_blank">埃毕致(上海)云计算科技</a> 版权所有</div>
</div>
</div>
</div>
<!-- 内容区 end -->
<!-- 弹出框 begin -->
<div class="modal fade popo" id="exampleModalCenter" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">初始化</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<div style="height: 92px;padding: 29px 86px;">
<img src="resource/img/popover.png">
<span class="sysinit_successinfo"></span>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">确定</button>
</div>
</div>
</div>
</div>
<div class="modal fade popo1" id="exampleModalCenter" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">异常</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<div style="height: 92px;padding: 29px 86px;">
<img src="resource/img/popover.png">
<span class="sysinit_errorinfo"></span>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">确定</button>
</div>
</div>
</div>
</div>
<!-- 弹出框 end -->
<script src="resource/jquery/3.3.1/jquery.min.js"></script>
<script src="resource/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="resource/js/login.js" type="text/javascript"></script>
<script type="text/javascript">
var loginUrl = "../ibizutil/login.do";
var indexUrl = "../index.html";
jQuery(document).ready(function () {
loginInit();
});
</script>
</body>
</html>
\ No newline at end of file
/*!
* Bootstrap Reboot v4.1.1 (https://getbootstrap.com/)
* Copyright 2011-2018 The Bootstrap Authors
* Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
*/
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
font-family: sans-serif;
line-height: 1.15;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
-ms-overflow-style: scrollbar;
-webkit-tap-highlight-color: transparent;
}
@-ms-viewport {
width: device-width;
}
article, aside, figcaption, figure, footer, header, hgroup, main, nav, section {
display: block;
}
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: #212529;
text-align: left;
background-color: #fff;
}
[tabindex="-1"]:focus {
outline: 0 !important;
}
hr {
box-sizing: content-box;
height: 0;
overflow: visible;
}
h1, h2, h3, h4, h5, h6 {
margin-top: 0;
margin-bottom: 0.5rem;
}
p {
margin-top: 0;
margin-bottom: 1rem;
}
abbr[title],
abbr[data-original-title] {
text-decoration: underline;
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
cursor: help;
border-bottom: 0;
}
address {
margin-bottom: 1rem;
font-style: normal;
line-height: inherit;
}
ol,
ul,
dl {
margin-top: 0;
margin-bottom: 1rem;
}
ol ol,
ul ul,
ol ul,
ul ol {
margin-bottom: 0;
}
dt {
font-weight: 700;
}
dd {
margin-bottom: .5rem;
margin-left: 0;
}
blockquote {
margin: 0 0 1rem;
}
dfn {
font-style: italic;
}
b,
strong {
font-weight: bolder;
}
small {
font-size: 80%;
}
sub,
sup {
position: relative;
font-size: 75%;
line-height: 0;
vertical-align: baseline;
}
sub {
bottom: -.25em;
}
sup {
top: -.5em;
}
a {
color: #007bff;
text-decoration: none;
background-color: transparent;
-webkit-text-decoration-skip: objects;
}
a:hover {
color: #0056b3;
text-decoration: underline;
}
a:not([href]):not([tabindex]) {
color: inherit;
text-decoration: none;
}
a:not([href]):not([tabindex]):hover, a:not([href]):not([tabindex]):focus {
color: inherit;
text-decoration: none;
}
a:not([href]):not([tabindex]):focus {
outline: 0;
}
pre,
code,
kbd,
samp {
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
font-size: 1em;
}
pre {
margin-top: 0;
margin-bottom: 1rem;
overflow: auto;
-ms-overflow-style: scrollbar;
}
figure {
margin: 0 0 1rem;
}
img {
vertical-align: middle;
border-style: none;
}
svg:not(:root) {
overflow: hidden;
}
table {
border-collapse: collapse;
}
caption {
padding-top: 0.75rem;
padding-bottom: 0.75rem;
color: #6c757d;
text-align: left;
caption-side: bottom;
}
th {
text-align: inherit;
}
label {
display: inline-block;
margin-bottom: 0.5rem;
}
button {
border-radius: 0;
}
button:focus {
outline: 1px dotted;
outline: 5px auto -webkit-focus-ring-color;
}
input,
button,
select,
optgroup,
textarea {
margin: 0;
font-family: inherit;
font-size: inherit;
line-height: inherit;
}
button,
input {
overflow: visible;
}
button,
select {
text-transform: none;
}
button,
html [type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
padding: 0;
border-style: none;
}
input[type="radio"],
input[type="checkbox"] {
box-sizing: border-box;
padding: 0;
}
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"] {
-webkit-appearance: listbox;
}
textarea {
overflow: auto;
resize: vertical;
}
fieldset {
min-width: 0;
padding: 0;
margin: 0;
border: 0;
}
legend {
display: block;
width: 100%;
max-width: 100%;
padding: 0;
margin-bottom: .5rem;
font-size: 1.5rem;
line-height: inherit;
color: inherit;
white-space: normal;
}
progress {
vertical-align: baseline;
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
}
[type="search"] {
outline-offset: -2px;
-webkit-appearance: none;
}
[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
::-webkit-file-upload-button {
font: inherit;
-webkit-appearance: button;
}
output {
display: inline-block;
}
summary {
display: list-item;
cursor: pointer;
}
template {
display: none;
}
[hidden] {
display: none !important;
}
/*# sourceMappingURL=bootstrap-reboot.css.map */
\ No newline at end of file
/*!
* Bootstrap Reboot v4.1.1 (https://getbootstrap.com/)
* Copyright 2011-2018 The Bootstrap Authors
* Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
*/*,::after,::before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}@-ms-viewport{width:device-width}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:left;background-color:#fff}[tabindex="-1"]:focus{outline:0!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[data-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0}address{margin-bottom:1rem;font-style:normal;line-height:inherit}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#007bff;text-decoration:none;background-color:transparent;-webkit-text-decoration-skip:objects}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{vertical-align:middle;border-style:none}svg:not(:root){overflow:hidden}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:#6c757d;text-align:left;caption-side:bottom}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{padding:0;border-style:none}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:none}[hidden]{display:none!important}
/*# sourceMappingURL=bootstrap-reboot.min.css.map */
\ No newline at end of file
此差异已折叠。
此差异已折叠。
因为 它太大了无法显示 源差异 。您可以改为 查看blob
此差异已折叠。
此差异已折叠。
此差异已折叠。
.e404-container {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
min-height: 381px;
background: white;
min-width: 1075px;
}
.e404-container .contant {
width: 1075px;
height: 381px;
/* margin: 0px auto; */
position: fixed;
top: calc(50% - 190px);
left: calc(50% - 540px);
}
.e404-container .contant .img {
width: 564px;
height: 381px;
float: left;
}
.e404-container .contant .tipinfo {
width: 430px;
padding-left: 80px;
float: left;
padding-top: 86px;
}
.e404-container .contant .tipinfo .title {
font-family: MicrosoftYaHei-Bold;
font-size: 72px;
font-weight: normal;
font-stretch: normal;
line-height: 27px;
letter-spacing: 0px;
color: #666666;
margin-bottom: 70px;
}
.e404-container .contant .tipinfo .info {
font-family: MicrosoftYaHei;
font-size: 24px;
font-weight: normal;
font-stretch: normal;
line-height: 27px;
letter-spacing: 0px;
margin-bottom: 60px;
color: #999999;
}
.e404-container .contant .tipinfo .goback {
width: 100px;
height: 40px;
background-color: #1890ff;
border-radius: 4px;
cursor: pointer;
}
.e404-container .contant .tipinfo .goback div {
font-family: MicrosoftYaHei;
font-size: 16px;
font-weight: normal;
font-stretch: normal;
line-height: 27px;
letter-spacing: 0px;
color: #ffffff;
text-align: center;
padding-top: 5px;
}
\ No newline at end of file
.e404-container {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
min-height: 381px;
background: white;
min-width: 1075px;
}
.e404-container .contant {
width: 1075px;
height: 381px;
/* margin: 0px auto; */
position: fixed;
top: calc(50% - 190px);
left: calc(50% - 540px);
}
.e404-container .contant .img {
width: 564px;
height: 381px;
float: left;
}
.e404-container .contant .tipinfo {
width: 430px;
padding-left: 80px;
float: left;
padding-top: 86px;
}
.e404-container .contant .tipinfo .title {
font-family: MicrosoftYaHei-Bold;
font-size: 72px;
font-weight: normal;
font-stretch: normal;
line-height: 27px;
letter-spacing: 0px;
color: #666666;
margin-bottom: 70px;
}
.e404-container .contant .tipinfo .info {
font-family: MicrosoftYaHei;
font-size: 24px;
font-weight: normal;
font-stretch: normal;
line-height: 27px;
letter-spacing: 0px;
margin-bottom: 60px;
color: #999999;
}
.e404-container .contant .tipinfo .goback {
width: 100px;
height: 40px;
background-color: #1890ff;
border-radius: 4px;
cursor: pointer;
}
.e404-container .contant .tipinfo .goback div {
font-family: MicrosoftYaHei;
font-size: 16px;
font-weight: normal;
font-stretch: normal;
line-height: 27px;
letter-spacing: 0px;
color: #ffffff;
text-align: center;
padding-top: 5px;
}
\ No newline at end of file
.log_container {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
min-height: 100%;
background: #108cee;
/* background-image: url('../img/background.png');
background-repeat: no-repeat;
background-position: center;
background-size: 100%; */
}
.log_container .login_backgroud_img img {
position: fixed;
bottom: 0px;
top: 0px;
left: 0px;
right: 0px;
height: 100%;
width: 100%;
}
.log_container .wrap {
padding: 32px 0;
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
z-index: 3;
margin-top: 110px;
}
.log_container .wrap .log_form {
display: block;
width: 450px;
margin: 0 auto;
}
.log_container .wrap .log_footer {
display: block;
padding: 0 16px;
margin: 48px 0 24px;
text-align: center;
}
.log_container .wrap .log_footer a {
color: white;
text-decoration: none;
}
.log_container .wrap .log_form form {
width: 450px;
background-color: #ffffff;
box-shadow: 0px 3px 5px 0px rgba(133, 144, 166, 0.1);
border-radius: 2px;
}
.form_container {
padding: 0px 35px 20px 35px;
}
.form_container .form-group {
margin-bottom: 28px;
}
.form_container .form-group:first-child {
margin-top: 10px;
margin-bottom: 10px;
}
.form_container .form-group:last-child {
margin-bottom: 0px;
}
.form_container img {
width: 100%;
}
.form_container .request-answer {
display: none;
}
.form_container .has-errorinfo {
color: #dc3545;
display: block;
}
.form_container .form_input {
width: 380px;
height: 48px;
background-color: #fbfbfc;
border-radius: 2px;
border: solid 1px #dbdee3;
}
.form_container .login_btn,
.login_reset {
width: 170px;
height: 40px;
font-size: 18px;
font-family: MicrosoftYaHei;
}
.form_container .login_btn {
background-color: #108cee;
color: #ffffff;
}
.form_container .login_reset {
background-color: rgba(255, 255, 255, 0.3);
border: solid 1px #108cee;
color: #108cee;
float: right;
}
.form_container .form_tipinfo {
font-family: MicrosoftYaHei-Bold;
font-size: 14px;
font-weight: bold;
font-stretch: normal;
line-height: 24px;
letter-spacing: 0px;
color: #666666;
}
.form_container .form_tipinfo_more {
font-family: MicrosoftYaHei;
font-size: 14px;
font-weight: normal;
letter-spacing: 0px;
color: #666666;
}
.form_container .sys_init {
width: 380px;
height: 48px;
background-color: rgba(255, 255, 255, 0.3);
border: solid 1px #108cee;
color: #108cee;
}
\ No newline at end of file
.pms-container {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
min-height: 845px;
background: white;
min-width: 1200px;
}
.pms-container .login-backimg {
position: fixed;
bottom: 0px;
left: 0px;
height: 454px;
}
.pms-container .login-backimg img {
height: 454px;
}
.pms-container .login-contant {
width: 1200px;
height: 845px;
position: relative;
bottom: 0px;
margin: auto;
z-index: 10;
margin-top: 70px;
}
.login-contant .sys-icon {
height: 120px;
font-family: MicrosoftYaHei;
font-size: 42px;
font-weight: normal;
font-stretch: normal;
line-height: 72px;
letter-spacing: 2px;
color: #4791ed;
}
.login-contant .sys-loginfrom {
height: 520px;
}
.sys-loginfrom .form-img {
width: 720px;
background-color: #4791ed;
float: left;
}
.sys-loginfrom .form-contant {
width: 480px;
height: 520px;
background-color: #ffffff;
border-radius: 0px 2px 2px 0px;
padding: 0px 55px;
float: left;
}
.sys-loginfrom .form-contant .form-group {
margin-bottom: 55px;
}
.sys-loginfrom .form-contant .login-input {
margin-bottom: 20px;
}
.sys-loginfrom .form-contant .login-title {
width: 370px;
height: 70px;
background-color: rgba(71, 145, 237, 0.1);
border-radius: 2px;
padding: 28px 18px;
}
.sys-loginfrom .form-contant .login-title span {
font-family: MicrosoftYaHei;
font-size: 22px;
font-weight: normal;
font-stretch: normal;
line-height: 0px;
letter-spacing: 0px;
color: #73a0ea;
}
.sys-loginfrom .form-contant .input-group> input {
height: 46px;
}
.sys-loginfrom .form-contant .psm-login {
width: 370px;
height: 46px;
background-color: #4791ed;
border-radius: 2px;
}
.sys-loginfrom .form-contant .request-answer {
display: none;
}
.sys-loginfrom .form-contant .has-errorinfo {
color: #dc3545;
display: block;
}
.login-contant .sys-footer {
height: 205px;
font-family: MicrosoftYaHei;
text-align: center;
font-size: 14px;
font-weight: normal;
font-stretch: normal;
line-height: 24px;
letter-spacing: 0px;
color: #ffffff;
}
.login-contant .sys-footer .copyright {
padding-top: 176px;
}
/* global Symbol */
// Defining this global in .eslintrc.json would create a danger of using the global
// unguarded in another place, it seems safer to define global only for this module
define( [
"./var/arr",
"./var/document",
"./var/getProto",
"./var/slice",
"./var/concat",
"./var/push",
"./var/indexOf",
"./var/class2type",
"./var/toString",
"./var/hasOwn",
"./var/fnToString",
"./var/ObjectFunctionString",
"./var/support",
"./var/isFunction",
"./var/isWindow",
"./core/DOMEval",
"./core/toType"
], function( arr, document, getProto, slice, concat, push, indexOf,
class2type, toString, hasOwn, fnToString, ObjectFunctionString,
support, isFunction, isWindow, DOMEval, toType ) {
"use strict";
var
version = "3.3.1",
// Define a local copy of jQuery
jQuery = function( selector, context ) {
// The jQuery object is actually just the init constructor 'enhanced'
// Need init if jQuery is called (just allow error to be thrown if not included)
return new jQuery.fn.init( selector, context );
},
// Support: Android <=4.0 only
// Make sure we trim BOM and NBSP
rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
jQuery.fn = jQuery.prototype = {
// The current version of jQuery being used
jquery: version,
constructor: jQuery,
// The default length of a jQuery object is 0
length: 0,
toArray: function() {
return slice.call( this );
},
// Get the Nth element in the matched element set OR
// Get the whole matched element set as a clean array
get: function( num ) {
// Return all the elements in a clean array
if ( num == null ) {
return slice.call( this );
}
// Return just the one element from the set
return num < 0 ? this[ num + this.length ] : this[ num ];
},
// Take an array of elements and push it onto the stack
// (returning the new matched element set)
pushStack: function( elems ) {
// Build a new jQuery matched element set
var ret = jQuery.merge( this.constructor(), elems );
// Add the old object onto the stack (as a reference)
ret.prevObject = this;
// Return the newly-formed element set
return ret;
},
// Execute a callback for every element in the matched set.
each: function( callback ) {
return jQuery.each( this, callback );
},
map: function( callback ) {
return this.pushStack( jQuery.map( this, function( elem, i ) {
return callback.call( elem, i, elem );
} ) );
},
slice: function() {
return this.pushStack( slice.apply( this, arguments ) );
},
first: function() {
return this.eq( 0 );
},
last: function() {
return this.eq( -1 );
},
eq: function( i ) {
var len = this.length,
j = +i + ( i < 0 ? len : 0 );
return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );
},
end: function() {
return this.prevObject || this.constructor();
},
// For internal use only.
// Behaves like an Array's method, not like a jQuery method.
push: push,
sort: arr.sort,
splice: arr.splice
};
jQuery.extend = jQuery.fn.extend = function() {
var options, name, src, copy, copyIsArray, clone,
target = arguments[ 0 ] || {},
i = 1,
length = arguments.length,
deep = false;
// Handle a deep copy situation
if ( typeof target === "boolean" ) {
deep = target;
// Skip the boolean and the target
target = arguments[ i ] || {};
i++;
}
// Handle case when target is a string or something (possible in deep copy)
if ( typeof target !== "object" && !isFunction( target ) ) {
target = {};
}
// Extend jQuery itself if only one argument is passed
if ( i === length ) {
target = this;
i--;
}
for ( ; i < length; i++ ) {
// Only deal with non-null/undefined values
if ( ( options = arguments[ i ] ) != null ) {
// Extend the base object
for ( name in options ) {
src = target[ name ];
copy = options[ name ];
// Prevent never-ending loop
if ( target === copy ) {
continue;
}
// Recurse if we're merging plain objects or arrays
if ( deep && copy && ( jQuery.isPlainObject( copy ) ||
( copyIsArray = Array.isArray( copy ) ) ) ) {
if ( copyIsArray ) {
copyIsArray = false;
clone = src && Array.isArray( src ) ? src : [];
} else {
clone = src && jQuery.isPlainObject( src ) ? src : {};
}
// Never move original objects, clone them
target[ name ] = jQuery.extend( deep, clone, copy );
// Don't bring in undefined values
} else if ( copy !== undefined ) {
target[ name ] = copy;
}
}
}
}
// Return the modified object
return target;
};
jQuery.extend( {
// Unique for each copy of jQuery on the page
expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ),
// Assume jQuery is ready without the ready module
isReady: true,
error: function( msg ) {
throw new Error( msg );
},
noop: function() {},
isPlainObject: function( obj ) {
var proto, Ctor;
// Detect obvious negatives
// Use toString instead of jQuery.type to catch host objects
if ( !obj || toString.call( obj ) !== "[object Object]" ) {
return false;
}
proto = getProto( obj );
// Objects with no prototype (e.g., `Object.create( null )`) are plain
if ( !proto ) {
return true;
}
// Objects with prototype are plain iff they were constructed by a global Object function
Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor;
return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString;
},
isEmptyObject: function( obj ) {
/* eslint-disable no-unused-vars */
// See https://github.com/eslint/eslint/issues/6125
var name;
for ( name in obj ) {
return false;
}
return true;
},
// Evaluates a script in a global context
globalEval: function( code ) {
DOMEval( code );
},
each: function( obj, callback ) {
var length, i = 0;
if ( isArrayLike( obj ) ) {
length = obj.length;
for ( ; i < length; i++ ) {
if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
break;
}
}
} else {
for ( i in obj ) {
if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
break;
}
}
}
return obj;
},
// Support: Android <=4.0 only
trim: function( text ) {
return text == null ?
"" :
( text + "" ).replace( rtrim, "" );
},
// results is for internal usage only
makeArray: function( arr, results ) {
var ret = results || [];
if ( arr != null ) {
if ( isArrayLike( Object( arr ) ) ) {
jQuery.merge( ret,
typeof arr === "string" ?
[ arr ] : arr
);
} else {
push.call( ret, arr );
}
}
return ret;
},
inArray: function( elem, arr, i ) {
return arr == null ? -1 : indexOf.call( arr, elem, i );
},
// Support: Android <=4.0 only, PhantomJS 1 only
// push.apply(_, arraylike) throws on ancient WebKit
merge: function( first, second ) {
var len = +second.length,
j = 0,
i = first.length;
for ( ; j < len; j++ ) {
first[ i++ ] = second[ j ];
}
first.length = i;
return first;
},
grep: function( elems, callback, invert ) {
var callbackInverse,
matches = [],
i = 0,
length = elems.length,
callbackExpect = !invert;
// Go through the array, only saving the items
// that pass the validator function
for ( ; i < length; i++ ) {
callbackInverse = !callback( elems[ i ], i );
if ( callbackInverse !== callbackExpect ) {
matches.push( elems[ i ] );
}
}
return matches;
},
// arg is for internal usage only
map: function( elems, callback, arg ) {
var length, value,
i = 0,
ret = [];
// Go through the array, translating each of the items to their new values
if ( isArrayLike( elems ) ) {
length = elems.length;
for ( ; i < length; i++ ) {
value = callback( elems[ i ], i, arg );
if ( value != null ) {
ret.push( value );
}
}
// Go through every key on the object,
} else {
for ( i in elems ) {
value = callback( elems[ i ], i, arg );
if ( value != null ) {
ret.push( value );
}
}
}
// Flatten any nested arrays
return concat.apply( [], ret );
},
// A global GUID counter for objects
guid: 1,
// jQuery.support is not used in Core but other projects attach their
// properties to it so it needs to exist.
support: support
} );
if ( typeof Symbol === "function" ) {
jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];
}
// Populate the class2type map
jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
function( i, name ) {
class2type[ "[object " + name + "]" ] = name.toLowerCase();
} );
function isArrayLike( obj ) {
// Support: real iOS 8.2 only (not reproducible in simulator)
// `in` check used to prevent JIT error (gh-2145)
// hasOwn isn't used here due to false negatives
// regarding Nodelist length in IE
var length = !!obj && "length" in obj && obj.length,
type = toType( obj );
if ( isFunction( obj ) || isWindow( obj ) ) {
return false;
}
return type === "array" || length === 0 ||
typeof length === "number" && length > 0 && ( length - 1 ) in obj;
}
return jQuery;
} );
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
/**
* 初始化界面行为
*
*/
function loginInit() {
$('.log_form input').keypress(function (e) {
if (e.which == 13) {
loginAction();
}
});
//登录事件与重置事件
$('.login_reset').click(function () {
loginReset();
});
$('.login_btn').click(function () {
loginAction();
});
$('.sys_init').click(function () {
initSystem();
});
}
/**
* 重置登录信息
*
*/
function loginReset() {
$('#userName').val('');
$('#pwd').val('');
$('#request-answer').html('');
$('#request-answer').removeClass('has-errorinfo');
}
/**
* 处理操作
*
* @returns
*/
function loginAction() {
//alert('enter');
//获取登录参数
var loginname = $('#userName').val();
if (!loginname || loginname == '') {
$('#request-answer').addClass('has-errorinfo');
$('#request-answer').html('登录名为空');
return;
}
var pwd = $('#pwd').val();
if (!pwd || pwd == '') {
$('#request-answer').addClass('has-errorinfo');
$('#request-answer').html('密码为空');
return;
}
var params = {};
params.loginname = loginname;
params.pwd = pwd;
//清空以前提示信息
$('#request-answer').removeClass('has-errorinfo');
$('#request-answer').html('');
$.ajax({
url: loginUrl,
data: params,
type: 'POST',
dataType: 'JSON',
success: function (result) {
if (result.success) {
var url = indexUrl;
var winUrl = window.location.href;
var pos = winUrl.indexOf('RU=');
if (pos && pos > 0) {
url = decodeURIComponent(winUrl.substring(pos + 3));
}
window.location = url;
} else {
$('#request-answer').addClass('has-errorinfo');
$('#request-answer').html(result.errorMessage);
}
},
error: function () {
$('#request-answer').addClass('has-errorinfo');
$('#request-answer').html('登录异常');
}
});
}
function initSystem() {
$.ajax({
url: "../ibizutil/initsystemenv.do",
type: "POST",
dataType: "JSON",
success: function (result) {
if (result.success) {
if (result.info == '') {
result.info = '系统初始化成功!'
}
$('.sysinit_successinfo').html(result.info);
$('.popo').modal({
backdrop: false,
keyboard: false,
show: true
});
} else {
if (result.info == '') {
result.info = '初始化系统失败!'
}
$('.sysinit_errorinfo').html(result.info);
$('.popo1').modal({
backdrop: false,
keyboard: false,
show: true
});
}
},
error: function (result) {
$('.sysinit_errorinfo').html('初始化系统失败!');
$('.popo1').modal({
backdrop: false,
keyboard: false,
show: true
});
}
});
}
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册