|
|
@@ -14,20 +14,23 @@
|
|
|
<input class="easyui-filebox" id="图片" name="图片" data-options="prompt:'',tipPosition:'top',buttonText:'选择图片',buttonAlign:'right',accept:'image/*',onChange:$.imagePreview" style="width:100%;height:32px;" >
|
|
|
-->
|
|
|
<!--<div data-options="region:'center',plain:true,border:false">-->
|
|
|
- <form id="ff" method="post" class="w-form" style="text-align:center;color:#fff;">
|
|
|
- <div class="w-div" style="padding-top:30px;">
|
|
|
- <div>账套:<input class="easyui-textbox w-input" value="dongke" id="accountCode" name="accountCode" data-options="required:true,prompt:'',tipPosition:'top'" style="width:250px;height:32px;"></div>
|
|
|
- </div>
|
|
|
- <div class="w-div" style="padding-top:8px;">
|
|
|
- <div>工号:<input class="easyui-textbox w-input" id="userCode" name="userCode" data-options="required:true,true:'请填写工号...',tipPosition:'top'" style="width:250px;height:32px;"></div>
|
|
|
- </div>
|
|
|
- <div class="w-div" style="padding-top:8px;">
|
|
|
- <div>密码:<input class="easyui-passwordbox w-input" id="userPassword" name="userPassword" data-options="required:true,true:'请填写密码...',tipPosition:'top'" style="width:250px;height:32px;"></div>
|
|
|
- </div>
|
|
|
- <div class="w-div" style="padding-top:8px;">
|
|
|
- <a href="javascript:void(0)" id="tbSave" class="easyui-linkbutton" onclick="submitForm()" style="margin-left:48px; width:250px;height:32px;">登录</a>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
+ <form id="ff" method="post" class="w-form" style="text-align:center;color:#fff;">
|
|
|
+ <div class="w-div" style="padding-top:30px;">
|
|
|
+ <div>账套:<input class="easyui-textbox w-input" value="dongke" id="accountCode" name="accountCode" data-options="required:true,prompt:'',tipPosition:'top'" style="width:250px;height:32px;"></div>
|
|
|
+ </div>
|
|
|
+ <div class="w-div" style="padding-top:8px;">
|
|
|
+ <div>工号:<input class="easyui-textbox w-input" id="userCode" name="userCode" data-options="required:true,true:'请填写工号...',tipPosition:'top'" style="width:250px;height:32px;"></div>
|
|
|
+ </div>
|
|
|
+ <div class="w-div" style="padding-top:8px;">
|
|
|
+ <div>密码:<input class="easyui-passwordbox w-input" id="userPassword" name="userPassword" data-options="required:true,true:'请填写密码...',tipPosition:'top'" style="width:250px;height:32px;"></div>
|
|
|
+ </div>
|
|
|
+ <div class="w-div" style="padding-top:8px;">
|
|
|
+ <a href="javascript:void(0)" id="tbSave" class="easyui-linkbutton" onclick="submitForm()" style="margin-left:48px; width:250px;height:32px;">登录</a>
|
|
|
+ </div>
|
|
|
+ <div class="w-div" style="padding-top:8px;">
|
|
|
+ <a href="javascript:void(0)" id="tbADSave" class="easyui-linkbutton" onclick="ADsubmitForm()" style="margin-left:48px; width:250px;height:32px;">AD域验证</a>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
<!--</div>-->
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
@@ -45,7 +48,7 @@
|
|
|
|
|
|
function submitForm() {
|
|
|
if ($('#ff').form("validate")) {
|
|
|
- $.get('login.ashx?r=' + Math.random(),$('#ff').serialize(), function (data) {
|
|
|
+ $.get('login.ashx?m=0&r=' + Math.random(),$('#ff').serialize(), function (data) {
|
|
|
var json = JSON.parse(data);
|
|
|
if (json['success'] == true) {
|
|
|
parent.window.location.href = 'main.html';
|
|
|
@@ -57,6 +60,18 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ function ADsubmitForm() {
|
|
|
+ $.get('login.ashx?m=1&r=' + Math.random(), $('#ff').serialize(), function (data) {
|
|
|
+ var json = JSON.parse(data);
|
|
|
+ if (json['success'] == true) {
|
|
|
+ parent.window.location.href = 'main.html';
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ $.messager.alert('用户登录', json['message'], 'warning');
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
function keyLogin() {
|
|
|
if (event.keyCode == 13) submitForm();
|
|
|
}
|