You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

129 lines
5.1 KiB

  1. @{
  2. ViewBag.Title = "Form";
  3. Layout = null;
  4. }
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  8. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  9. <meta name="renderer" content="webkit">
  10. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  11. <meta name="format-detection" content="telephone=no" />
  12. <link rel="shortcut icon" href="" />
  13. <title></title>
  14. <meta name="keywords" content="" />
  15. <meta name="description" content="数字化校园-新生报名" />
  16. <link href="~/Content/css/font-awesome.css" rel="stylesheet" />
  17. <link href="~/Content/css/common.css" rel="stylesheet" />
  18. <link href="~/Content/layui/css/layui.css" rel="stylesheet" media="all" />
  19. <link href="~/Content/css/fromAdd.css" rel="stylesheet" />
  20. </head>
  21. <body>
  22. <div class="warpper" id="app">
  23. <!-- / index_sec5 -->
  24. <div class="chickForm_sec">
  25. <div class="fromSec">
  26. <div class="chickT">录取查询</div>
  27. <form class="layui-form" action="">
  28. <!-- / chickForm_sec1 -->
  29. <div class="chickForm_sec1">
  30. <div class="chickInput">
  31. <span class="chickInputLable"><span>*</span> 账号</span>
  32. <input type="text" id="txtAccount" name="txtAccount" lay-verify="required" placeholder="请输入身份号" class="layui-input">
  33. </div>
  34. <div class="chickInput">
  35. <span class="chickInputLable"><span>*</span> 密码</span>
  36. <input type="password" id="txtPass" name="txtPass" lay-verify="required" placeholder="身份证后六位" class="layui-input">
  37. </div>
  38. </div>
  39. <!-- / chickForm_sec1 -->
  40. <div class="chickBtn" lay-submit lay-filter="*">登录并查询</div>
  41. </form>
  42. </div>
  43. </div>
  44. </div>
  45. <img id="fromBg" src="~/Content/images/from1.png" />
  46. <div class="footer"> Copyright © 2019 数字化智慧校园 版权所有</div>
  47. <script src="~/Content/js/jquery.min.js"></script>
  48. <script src="~/Content/layui/layui.all.js"></script>
  49. <script src="~/Content/vue/vue.js"></script>
  50. @*<script src="~/Areas/EducationalAdministration/Views/StuVolunteer/server.js"></script>*@
  51. @Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuVolunteerPhone/server.js")
  52. <script>
  53. //var today = formatDateTimesM();
  54. layui.use(['form', 'laydate', 'upload'], function () {
  55. var form = layui.form;
  56. //按钮点击
  57. form.on('submit(*)', function (data) {
  58. var strEntity = JSON.stringify(data.field);
  59. $.ajax({
  60. url: '/EducationalAdministration/StuVolunteerPhone/IsExist',
  61. data: { CardNo: $('#txtAccount').val(), Password: $('#txtPass').val() },
  62. type: "Post",
  63. dataType: "json",
  64. async: true,
  65. cache: false,
  66. success: function (data) {
  67. if (data.code == 200) {
  68. location.href = '/EducationalAdministration/StuVolunteerPhone/SearchResult?CardNo=' + $('#txtAccount').val();
  69. } else {
  70. alert(data.info);
  71. }
  72. },
  73. error: function (XMLHttpRequest, textStatus, errorThrown) {
  74. },
  75. beforeSend: function () {
  76. },
  77. complete: function () {
  78. }
  79. });
  80. //return false; //阻止表单跳转。如果需要表单跳转,去掉这段即可。
  81. });
  82. //var laydate = layui.laydate;
  83. //时间选择
  84. //laydate.render({
  85. // elem: '#Birthday',
  86. // min: today.y + '-' + today.m + '-' + today.d
  87. //});
  88. });
  89. $(window).load(function () {
  90. renderForm()
  91. })
  92. //重新渲染表单
  93. function renderForm() {
  94. layui.use('form', function () {
  95. var form = layui.form//高版本建议把括号去掉,有的低版本,需要加()
  96. form.render();
  97. });
  98. }
  99. function formatDateTimesM() {
  100. var date = new Date(1960, 0, 0);
  101. var y = date.getFullYear();
  102. var m = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1;
  103. var d = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
  104. var h = date.getHours() < 10 ? '0' + date.getHours() : date.getHours();
  105. var min = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();
  106. return {
  107. y: y,
  108. m: m,
  109. d: d,
  110. h: h,
  111. min: min
  112. }
  113. };
  114. </script>
  115. </body>
  116. </html>