2 Star 0 Fork 0

Ciel / CertificationManagement

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.html 2.10 KB
一键复制 编辑 原始数据 按行查看 历史
Ciel 提交于 2018-01-18 16:37 . ajax
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>证书查询</title>
<link href="css/index.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<div class="container">
<div class="contain">
<div class="title">
<p>证书查询</p>
</div>
<table>
<tr>
<td>姓名:</td>
<td><input type="text" class="username"/></td>
</tr>
<tr>
<td>证书编号:</td>
<td><input type="text" class="number"/></td>
</tr>
<tr>
<td>有效证件后六位:</td>
<td><input type="text" class="idcard"/></td>
</tr>
<tr>
<td colspan="2"><button type="button" class="search">查询</button></td>
</tr>
</table>
</div>
</div>
<script src="js/jquery.js"></script>
<script>
$(function () {
$(".container").height($(window).height());
$(".container table tr:not(:last)").each(function () {
$(this).find("td:first").css("textAlign","right");
});
$(".container table tr:not(:last)").each(function () {
$(this).find("td:last").css("textAlign","left");
});
$(".search").click(function () {
$.ajax({
url:"http://test.shitongyiwu.com/cert/cert/search",
type:"post",
dataType:"json",
data:{username:$(".username").val(),number:$(".number").val(),idcard:$(".idcard").val()},
success:function (data) {
if(data.type=="success"){
window.location.href="result.html";
}else {
alert(data.content);
}
},
error: function(XMLHttpRequest, textStatus, errorThrown) {
alert(XMLHttpRequest.status);
alert(XMLHttpRequest.readyState);
alert(textStatus);
}
});
});
});
</script>
</body>
</html>
1
https://gitee.com/CielWang/CertificationManagement.git
git@gitee.com:CielWang/CertificationManagement.git
CielWang
CertificationManagement
CertificationManagement
master

搜索帮助