|
@@ -580,7 +580,7 @@ h2 {
|
|
|
|
|
|
|
|
<!-- 3. 分页组件 (独立一行) -->
|
|
<!-- 3. 分页组件 (独立一行) -->
|
|
|
<div class="pagination-section">
|
|
<div class="pagination-section">
|
|
|
- <a href="javascript:void(0);" id="syy" class="page-btn disabled" data-type="1" onclick="getOrderList(this)">上一页</a>
|
|
|
|
|
|
|
+ <a href="javascript:void(0);" id="syy" class="page-btn" data-type="1" onclick="getOrderList(this)">上一页</a>
|
|
|
<a href="javascript:void(0);" id="xyy" class="page-btn" data-type="2" onclick="getOrderList(this)">下一页</a>
|
|
<a href="javascript:void(0);" id="xyy" class="page-btn" data-type="2" onclick="getOrderList(this)">下一页</a>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -750,20 +750,11 @@ h2 {
|
|
|
}
|
|
}
|
|
|
function getOrderList(that){
|
|
function getOrderList(that){
|
|
|
let type = $(that).data("type");
|
|
let type = $(that).data("type");
|
|
|
- if($(that).hasClass("disabled")){
|
|
|
|
|
- if(type == 1){
|
|
|
|
|
- layx.msg('已经是第一页了',{dialogIcon:'warn', position:'cc'});
|
|
|
|
|
- }else{
|
|
|
|
|
- layx.msg('已经是最后一页了',{dialogIcon:'warn', position:'cc'});
|
|
|
|
|
- }
|
|
|
|
|
- return ;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
if(type == 1){
|
|
if(type == 1){
|
|
|
let tmp_page = page - 1;
|
|
let tmp_page = page - 1;
|
|
|
if(tmp_page <= 0){
|
|
if(tmp_page <= 0){
|
|
|
- layx.msg('已经是第一页了');
|
|
|
|
|
|
|
+ layx.msg('已经是第一页了',{dialogIcon:'warn', position:'cc'});
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
page = tmp_page;
|
|
page = tmp_page;
|