Browse Source

分页样式

wangshan 6 năm trước cách đây
mục cha
commit
e7b32652d7

+ 1 - 1
src/jfw/front/dataExport.go

@@ -158,7 +158,7 @@ func (d *DataExport) ToMyOrder() error {
 	return nil
 	return nil
 }
 }
 
 
-var order_pageSize = 3
+var order_pageSize = 6
 
 
 func (d *DataExport) QueryOrder() error {
 func (d *DataExport) QueryOrder() error {
 	typ := d.GetString("type") //0-全部 1-待支付 2-已支付
 	typ := d.GetString("type") //0-全部 1-待支付 2-已支付

+ 13 - 1
src/web/templates/pc/myOrder.html

@@ -99,10 +99,16 @@
 	    cursor: not-allowed;
 	    cursor: not-allowed;
 	    color: #aea79f !important;
 	    color: #aea79f !important;
 	}
 	}
+	.nbprev i{
+		margin-right: 5px;
+	}
+	.nbnext i{
+		margin-left: 5px;
+	}
 </style>
 </style>
 <!--分页-->
 <!--分页-->
 	<div class="pagination clearfix w">
 	<div class="pagination clearfix w">
-		<div class="pagination-inner fr">
+		<div class="pagination-inner fr" style="margin-right:3px;">
 			<a class="nbprev disabled"  id="previousPage"><i><</i>上一页</a>
 			<a class="nbprev disabled"  id="previousPage"><i><</i>上一页</a>
 			<span class="page">1</span>
 			<span class="page">1</span>
 			<a class="nbnext"  id="nextPage">下一页<i>></i></a>
 			<a class="nbnext"  id="nextPage">下一页<i>></i></a>
@@ -146,6 +152,9 @@
         });
         });
 		//点击上下页
 		//点击上下页
 		$("#previousPage").on("click",function () {
 		$("#previousPage").on("click",function () {
+			if($(this).hasClass("disabled")){
+				return;
+			}
 			var $Index = $(".tab-bar .tab li.active").index();
 			var $Index = $(".tab-bar .tab li.active").index();
 			var $list = $(".list .item");
 			var $list = $(".list .item");
 			pageNum--;
 			pageNum--;
@@ -160,6 +169,9 @@
         });
         });
 		
 		
 		$("#nextPage").on("click",function () {
 		$("#nextPage").on("click",function () {
+			if($(this).hasClass("disabled")){
+				return;
+			}
 			var $Index = $(".tab-bar .tab li.active").index();
 			var $Index = $(".tab-bar .tab li.active").index();
 			var $list = $(".list .item");
 			var $list = $(".list .item");
 			pageNum++;
 			pageNum++;