login.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="keywords" content="dongke,mes,ibossmes">
  6. <meta name="description" content="制造企业生产过程执行管理系统">
  7. <meta name="author" content="xuwei">
  8. <title>东科软件</title>
  9. <script src="/plugins/xeasyui/xeasyui.min.js"></script>
  10. </head>
  11. <body class="easyui-layout" onkeydown="keyLogin();">
  12. <!--
  13. <input class="easyui-combobox w-input" id="叶子" name="叶子" data-options="prompt:'请填写叶子...',tipPosition:'top',url:'/mes/list.ashx?m=truefalse',method:'get',valueField:'text',textField:'text',panelHeight:'200px',editable:'true'" style="width:100%;height:32px;">
  14. <input class="easyui-filebox" id="图片" name="图片" data-options="prompt:'请选择图片...',tipPosition:'top',buttonText:'选择图片',buttonAlign:'right',accept:'image/*',onChange:$.imagePreview" style="width:100%;height:32px;" >
  15. -->
  16. <!--<div data-options="region:'center',plain:true,border:false">-->
  17. <form id="ff" method="post" class="w-form" style="text-align:center;color:#fff;">
  18. <div class="w-div" style="padding-top:30px;">
  19. <div>账套:<input class="easyui-textbox w-input" value="imex" id="accountCode" name="accountCode" data-options="required:true,prompt:'请填写账套...',tipPosition:'top'" style="width:250px;height:32px;"></div>
  20. </div>
  21. <div class="w-div" style="padding-top:8px;">
  22. <div>工号:<input class="easyui-textbox w-input" id="userCode" name="userCode" data-options="required:true,true:'请填写工号...',tipPosition:'top'" style="width:250px;height:32px;"></div>
  23. </div>
  24. <div class="w-div" style="padding-top:8px;">
  25. <div>密码:<input class="easyui-passwordbox w-input" id="userPassword" name="userPassword" data-options="required:true,true:'请填写密码...',tipPosition:'top'" style="width:250px;height:32px;"></div>
  26. </div>
  27. <div class="w-div" style="padding-top:8px;">
  28. <a href="javascript:void(0)" id="tbSave" class="easyui-linkbutton" onclick="submitForm()" style="margin-left:48px; width:250px;height:32px;">登录</a>
  29. </div>
  30. </form>
  31. <!--</div>-->
  32. <script type="text/javascript">
  33. $(function () {
  34. });
  35. function submitForm() {
  36. if ($('#ff').form("validate")) {
  37. $.get('login.ashx?r=' + Math.random(),$('#ff').serialize(), function (data) {
  38. var json = JSON.parse(data);
  39. if (json['success'] == true) {
  40. //xuwei add 2020-11-04==================================
  41. var promptDate = new Date('2030-11-25');
  42. var expireDate = new Date('2030-12-05');
  43. if (new Date() < expireDate) {
  44. if (new Date() > promptDate) {
  45. $.messager.confirm('系统授权', '系统授权截止于【' + promptDate.getFullYear() + '-' + (promptDate.getMonth() + 1) + '-' + promptDate.getDate() + '】<br>为不影响您正常使用本系统,请尽快注册授权文件!', function (r) {
  46. if (r) {
  47. parent.window.location.href = 'main.html';
  48. }
  49. });
  50. }
  51. else {
  52. parent.window.location.href = 'main.html';
  53. }
  54. }
  55. else {
  56. $.messager.alert('系统授权', '系统授权截止于【' + expireDate.getFullYear() + '-' + (expireDate.getMonth() + 1) + '-' + expireDate.getDate() + '】<br>请您注册授权文件!', 'warning');
  57. }
  58. //xuwei add end========================================
  59. }
  60. else {
  61. $.messager.alert('用户登录', json['message'], 'warning');
  62. }
  63. });
  64. }
  65. }
  66. function keyLogin() {
  67. if (event.keyCode == 13) submitForm();
  68. }
  69. </script>
  70. </body>
  71. </html>