|
- @{
- ViewBag.Title = "Form";
- Layout = null;
- }
-
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
- <meta name="renderer" content="webkit">
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
- <meta name="format-detection" content="telephone=no" />
- <link rel="shortcut icon" href="" />
- <title></title>
- <meta name="keywords" content="" />
- <meta name="description" content="数字化校园-新生报名" />
- <link href="~/Content/css/font-awesome.css" rel="stylesheet" />
- <link href="~/Content/css/common.css" rel="stylesheet" />
- <link href="~/Content/layui/css/layui.css" rel="stylesheet" media="all" />
- <link href="~/Content/css/fromAdd.css" rel="stylesheet" />
-
- </head>
- <body>
- <div class="warpper" id="app">
- <!-- / index_sec5 -->
- <div class="chickForm_sec">
- <div class="fromSec">
- <div class="chickT">录取查询</div>
- <form class="layui-form" action="">
- <!-- / chickForm_sec1 -->
- <div class="chickForm_sec1">
- <div class="chickInput">
- <span class="chickInputLable"><span>*</span> 账号</span>
- <input type="text" id="txtAccount" name="txtAccount" lay-verify="required" placeholder="请输入身份号" class="layui-input">
- </div>
- <div class="chickInput">
- <span class="chickInputLable"><span>*</span> 密码</span>
- <input type="password" id="txtPass" name="txtPass" lay-verify="required" placeholder="身份证后六位" class="layui-input">
- </div>
- </div>
- <!-- / chickForm_sec1 -->
- <div class="chickBtn" lay-submit lay-filter="*">登录并查询</div>
- </form>
- </div>
- </div>
- </div>
- <img id="fromBg" src="~/Content/images/from1.png" />
- <div class="footer"> Copyright © 2019 数字化智慧校园 版权所有</div>
- <script src="~/Content/js/jquery.min.js"></script>
- <script src="~/Content/layui/layui.all.js"></script>
- <script src="~/Content/vue/vue.js"></script>
- @*<script src="~/Areas/EducationalAdministration/Views/StuVolunteer/server.js"></script>*@
- @Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuVolunteerPhone/server.js")
- <script>
- //var today = formatDateTimesM();
- layui.use(['form', 'laydate', 'upload'], function () {
- var form = layui.form;
- //按钮点击
- form.on('submit(*)', function (data) {
- var strEntity = JSON.stringify(data.field);
- $.ajax({
- url: '/EducationalAdministration/StuVolunteerPhone/IsExist',
- data: { CardNo: $('#txtAccount').val(), Password: $('#txtPass').val() },
- type: "Post",
- dataType: "json",
- async: true,
- cache: false,
- success: function (data) {
- if (data.code == 200) {
- location.href = '/EducationalAdministration/StuVolunteerPhone/SearchResult?CardNo=' + $('#txtAccount').val();
- } else {
- alert(data.info);
- }
- },
- error: function (XMLHttpRequest, textStatus, errorThrown) {
- },
- beforeSend: function () {
- },
- complete: function () {
- }
- });
-
-
- //return false; //阻止表单跳转。如果需要表单跳转,去掉这段即可。
-
- });
-
- //var laydate = layui.laydate;
-
- //时间选择
- //laydate.render({
- // elem: '#Birthday',
- // min: today.y + '-' + today.m + '-' + today.d
- //});
-
- });
- $(window).load(function () {
-
- renderForm()
-
- })
-
-
- //重新渲染表单
- function renderForm() {
- layui.use('form', function () {
- var form = layui.form//高版本建议把括号去掉,有的低版本,需要加()
- form.render();
- });
- }
- function formatDateTimesM() {
- var date = new Date(1960, 0, 0);
- var y = date.getFullYear();
- var m = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1;
- var d = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
- var h = date.getHours() < 10 ? '0' + date.getHours() : date.getHours();
- var min = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();
-
- return {
- y: y,
- m: m,
- d: d,
- h: h,
- min: min
- }
- };
- </script>
- </body>
- </html>
|