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.
DSWMS/微信公众号/公众号模板/query2.html

181 lines
6.7 KiB
HTML

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>库存查询</title>
<meta content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width" name="viewport">
<link rel="stylesheet" href="css/weui.css"/>
<link rel="stylesheet" href="css/weuix.css"/>
<link rel="stylesheet" href="css/query2.css"/>
<script src="js/zepto.min.js"></script>
<script src="js/zepto.weui.js"></script>
</head>
<body>
<div class="weui-panel">
<div class="weui-panel__bd" id="listContainer">
<div class="weui-form-preview">
<div class="weui-form-preview__hd">
<div class="weui-form-preview__item">
<label class="weui-form-preview__label"><span>提单号:</span>SMLMPHX084996300</label>
<label class="weui-form-preview__label"><span>报关单号:</span>42502020100</label>
</div>
</div>
<div class="weui-form-preview__bd">
<div class="weui-form-preview__item">
<label class="case-number weui-form-preview__label">箱号RT754874154</label>
<span class="name-good weui-form-preview__value">货物名称:美棉</span>
</div>
<div class="weui-form-preview__item">
<label class="weui-form-preview__label">入库件数90</label>
<span class="weui-form-preview__value">库存件数60</span>
</div>
<div class="weui-form-preview__item">
<label class="weui-form-preview__label">仓库盛捷1号库</label>
<span class="weui-form-preview__value">库位01C1-1</span>
</div>
</div>
</div>
<div class="weui-form-preview">
<div class="weui-form-preview__hd">
<div class="weui-form-preview__item">
<label class="weui-form-preview__label"><span>提单号:</span>SMLMPHX084996300</label>
<label class="weui-form-preview__label"><span>报关单号:</span>42502020100</label>
</div>
</div>
<div class="weui-form-preview__bd">
<div class="weui-form-preview__item">
<label class="case-number weui-form-preview__label">箱号RT754874154</label>
<span class="name-good weui-form-preview__value">货物名称:美棉</span>
</div>
<div class="weui-form-preview__item">
<label class="weui-form-preview__label">入库件数90</label>
<span class="weui-form-preview__value">库存件数60</span>
</div>
<div class="weui-form-preview__item">
<label class="weui-form-preview__label">仓库盛捷1号库</label>
<span class="weui-form-preview__value">库位01C1-1</span>
</div>
</div>
</div>
<div class="weui-form-preview">
<div class="weui-form-preview__hd">
<div class="weui-form-preview__item">
<label class="weui-form-preview__label"><span>提单号:</span>SMLMPHX084996300</label>
<label class="weui-form-preview__label"><span>报关单号:</span>42502020100</label>
</div>
</div>
<div class="weui-form-preview__bd">
<div class="weui-form-preview__item">
<label class="case-number weui-form-preview__label">箱号RT754874154</label>
<span class="name-good weui-form-preview__value">货物名称:美棉</span>
</div>
<div class="weui-form-preview__item">
<label class="weui-form-preview__label">入库件数90</label>
<span class="weui-form-preview__value">库存件数60</span>
</div>
<div class="weui-form-preview__item">
<label class="weui-form-preview__label">仓库盛捷1号库</label>
<span class="weui-form-preview__value">库位01C1-1</span>
</div>
</div>
</div>
</div>
</div>
<div class='demos-content-padded'>
<div class="weui-loadmore" id="loadingTip">
<i class="weui-loading"></i>
<span class="weui-loadmore__tips">正在加载</span>
</div>
<div class="weui-loadmore weui-loadmore_line" id="noMoreTip">
<span class="weui-loadmore__tips">没有更多数据</span>
</div>
</div>
<!--<script>
var loading = false;
var pageIndex = 0;
var pageSize = 10;
var total = 0;
var openid = '<%=ViewData["openid"]%>';
$(function () {
loadData();
//$("#listContainer", ".weui-form-preview").on('click',
// function () {
// alert(aaa);
// }
//);
});
$(document.body).infinite().on("infinite", function () {
loadData();
});
function loadData() {
if (loading) return;
loading = true;
$("#loadingTip").show();
$("#noMoreTip").hide();
var len = $("#listContainer").children().length;
if (total == 0 || len < total) {
console.log(len + " " + total);
$.ajax({
type: "POST",
url: "/Dispatch/Dispatch/DispatchData?openid=" + openid + "&page=" + (pageIndex + 1) + "&pageSize=" + pageSize,
dataType: "json",
success: function (data) {
loading = false;
total = data.total;
pageIndex = data.page;
showList(data.list);
$("#loadingTip").hide();
if (total == 0) {
$("#noMoreTip").show();
}
}
});
} else {
$("#loadingTip").hide();
$("#noMoreTip").show();
}
}
function showList(list) {
for (var idx = 0; idx < list.length; idx++) {
var html = '<div class="weui-form-preview" onclick="goDetail(\'' + list[idx].LE_ID + '\')">'
+ '<div class="weui-form-preview__hd">'
+ ' <div class="weui-form-preview__item">'
+ ' <label class="weui-form-preview__label"><span>提单号</span>' + SMLMPHX084996300 + '</label>'
+ ' <label class="weui-form-preview__label"><span>报关单号</span>' + 42502020100 + '</label>'
+ ' </div>'
+ '</div>'
+ '<div class="weui-form-preview__bd">'
+ ' <div class="weui-form-preview__item">'
+ ' <label class="case-number weui-form-preview__label">箱号' + RT754874154 + '</label>'
+ ' <span class="name-good weui-form-preview__value">货物名称' + 美棉 + '</span>'
+ ' </div>'
+ ' <div class="weui-form-preview__item">'
+ ' <label class="weui-form-preview__label">入库件数' + 90 + '</label>'
+ ' <span class="weui-form-preview__value">库存件数' + 90 + '</span>'
+ ' </div>'
+ ' <div class="weui-form-preview__item">'
+ ' <label class="weui-form-preview__label">仓库' + 盛捷1号库 + '</label>'
+ ' <span class="weui-form-preview__value">库位' + 01C1-1 + '</span>'
+ ' </div>'
+ '</div>'
html += '</div>';
$("#listContainer").append(html);
}
}
function goDetail(leid) {
location.href = "/Dispatch/Dispatch/DispatchDetail?leid=" + leid;
}
</script>-->
</body>
</html>