12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <script>
- var identity;
- $(function(){
- var mainHeight = $(window).height()-320+"px";
- $(".scrollTable").css({"max-height":mainHeight});
- identity = getParam('identity');
- loadPages();
- })
- /*获取页数*/
- function loadPages() {
- $.post("getPointUseRecord.do",{"identity":identity},function(resp) {
- $('.page').empty();
- var totalCnt = resp.data.totalCnt;
- var GG = {
- "kk":function(dd){
- pageNo = dd;
- loadData();
- $(".page").prepend("<span class=\"page_all\">共 "+resp.data.totalCnt+" 条</span>");
- }
- }
- $("#page").initPage(totalCnt,1,GG.kk);
- });
- }
- /*获取数据*/
- function loadData() {
- $.post("getPointUseRecord.do",{"page":pageNo,"identity":identity}, function(resp){
- $("#bodyData").empty();
- var listArray = resp.data.list;
- for (var i=0;i<listArray.length;i++) {
- var item = listArray[i];
- var line = "<tr><td>"+((item.address == null)?"":item.address)+"</td>"
- +"<td>"+((item.orderIdentity == null)?"":item.orderIdentity)+"</td>"
- +"<td>"+((item.identity == null)?"":item.identity)+"</td>"
- +"<td>"+((item.orderType == null)?"":item.orderType == 1?"正常落锁":"取消预订")+"</td>"
- +"<td>"+((item.starttime == null)?"":formatAllDateToSecond(new Date(item.starttime)))+"</td>"
- +"<td>"+((item.endtime == null)?"":formatAllDateToSecond(new Date(item.endtime)))+"</td>"
- +"</tr>";
- $("#bodyData").append(line);
- }
- });
- }
- </script>
- <div class="section">
- <div class="section_top">
- <p>
- <a>物业管理 > 车位使用记录</a>
- </p>
- </div>
- <div class="add_item">
- <button onclick="returnPage()" class=" btn btn-default blackborder pull-right">返回</button>
- <!-- <button onclick="loadData()" class="pull-right btn btn-default blackborder btn_search">搜索</button> -->
- <!-- <input id="inputKeyword" class="pull-right" placeholder="优惠券名称或类型" type="text"/> -->
- </div>
- <div class="information">
- <div class="scrollTable">
- <table class="table table-striped table-bordered table-hover clicktoCheckbox">
- <thead>
- <tr style="background:#ededed;">
- <th>地址</th>
- <th>订单标识</th>
- <th>车位标识</th>
- <th>订单类型</th>
- <th>开始时间</th>
- <th>结束时间</th>
- </tr>
- </thead>
- <tbody id="bodyData" class="td_btn">
- </tbody>
- </table>
- </div>
-
- <ul class="page" maxshowpageitem="5" pagelistcount="15" id="page"></ul>
- </div>
- </div>
- <script>
- var mainHeight = $(window).height()-320+"px";
- $(".scrollTable").css({"max-height":mainHeight});
- </script>
|