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

66 lines
2.2 KiB
HTML

1 year ago
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title></title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css">
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script>
<script>
$(function () {
var url = 'http://localhost:64639/Interface/CustSrv.ashx';
$("#btnSearch").click(function () {
var blno = $("#txtBLNO").val();
var param = { blno: blno, ac: "emfstatus" };
$("#dvInfo").empty();
$.ajax({
url: url,
type: 'POST',
async: true,
dataType: 'jsonp',
jsonp: "jsoncallback",
data: param,
timeout: 10000,
success: function (t) {
var data = eval(t).Data;
$.each(data, function (index, item) {
var v = item.status;
var t = item.statustime;
$("#dvInfo").append("<li style=\"color:#4169E1\">"+v+" "+t+"</li>");
})
$("#dvInfo").listview("refresh");
}
})
});
});
</script>
</head>
<body>
<div data-role="page" id="pageone">
<div data-role="header">
<h1>预配舱单查询</h1>
</div>
<div data-role="content">
<div style="float:left;width:80% ">
<input type="text" id="txtBLNO" />
</div>
<div style="float:right;margin-left:10px;width:15%">
<a href="#" id="btnSearch" style="float:left;" data-role="button" >GO</a>
</div>
<div style="float:left;margin-top:10px;width:100%">
<ul data-role="listview" style="margin-top:10px;color:mediumblue" id="dvInfo">
</ul>
</div>
</div>
</div>
</body>
</html>