| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 | 
							- <script>
 
- var pageNo=1;
 
- 	$(function(){
 
- 		var mainHeight = $(window).height()-320+"px";
 
- 		$(".scrollTable").css({"max-height":mainHeight});
 
- 		userId = getParam('userId');
 
- 		loadPages();
 
- 	})
 
- /*获取页数*/
 
- function loadPages() {	
 
- 	$.post("getVparkOrderList.do",{"userId":userId},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("getVparkOrderList.do",{"page":pageNo,"userId":userId}, 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.orderType == 0)?"停车落锁":"取消预订")+"</td>" 
 
- 					+"<td>"+((item.identity == null)?"":item.identity)+"</td>"
 
- 					+"<td>"+((item.starttime == null)?"":formatAllDateParam(new Date(item.starttime)))+"</td>"
 
- 					+"<td>"+((item.endtime == null)?"":formatAllDateParam(new Date(item.endtime)))+"</td>"
 
- 					+"<td>"+((item.cost == null)?"":"¥"+item.cost)+"</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>
 
-     </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>
 
-                		<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>
 
 
  |