|
@@ -388,7 +388,7 @@
|
|
|
<div class="pagination clearfix w">
|
|
|
<div class="pagination-inner fr">
|
|
|
<a class="nbprev disabled" href="#"><i><</i>上一页</a>
|
|
|
- <span>1</span>
|
|
|
+ <span class="currentPage">1</span>
|
|
|
<a class="nbnext" href="#">下一页<i>></i></a>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -477,6 +477,7 @@
|
|
|
var pricetype = "";
|
|
|
var areas = {{.T.area}};
|
|
|
var searchvalue = {{.T.searchvalue}};
|
|
|
+ var currentPage = 1;//当前页
|
|
|
|
|
|
$(function(){
|
|
|
haslogin({{.T.logid}});
|
|
@@ -614,6 +615,15 @@
|
|
|
$(".superSearch").click(function(){
|
|
|
$("#labModal").modal("show");
|
|
|
})
|
|
|
+
|
|
|
+ $(".nbnext").click(function(){
|
|
|
+ $(window).scrollTop(0);
|
|
|
+ next();
|
|
|
+ })
|
|
|
+ $(".nbprev").click(function(){
|
|
|
+ $(window).scrollTop(0);
|
|
|
+ prev();
|
|
|
+ })
|
|
|
});
|
|
|
|
|
|
function beforeSubmit(){
|
|
@@ -664,17 +674,50 @@
|
|
|
searchOnsubmit();
|
|
|
}
|
|
|
|
|
|
+ //页面跳转相关
|
|
|
+ function next(){
|
|
|
+ if($(".nbnext").hasClass("disabled")){
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ currentPage++;
|
|
|
+ //currentPage = parseInt($(".pagination-inner").find("span").text())+parseInt(1)
|
|
|
+ if(currentPage==10){
|
|
|
+ $(".nbnext").addClass("disabled");
|
|
|
+ }else if(currentPage==2){
|
|
|
+ $(".nbprev").removeClass("disabled");
|
|
|
+ }
|
|
|
+ $(".currentPage").text(currentPage);
|
|
|
+ searchOnsubmit();
|
|
|
+ }
|
|
|
+
|
|
|
+ function prev(){
|
|
|
+ if($(".nbprev").hasClass("disabled")){
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if(currentPage>1){
|
|
|
+ currentPage--;
|
|
|
+ }
|
|
|
+ //currentPage = parseInt($(".pagination-inner").find("span").text())-parseInt(1)
|
|
|
+ if(currentPage==1){
|
|
|
+ $(".nbprev").addClass("disabled");
|
|
|
+ }else if(currentPage==9){
|
|
|
+ $(".nbnext").removeClass("disabled");
|
|
|
+ }
|
|
|
+ $(".currentPage").text(currentPage);
|
|
|
+ searchOnsubmit();
|
|
|
+ }
|
|
|
+
|
|
|
function searchOnsubmit(){
|
|
|
var param = {
|
|
|
searchvalue: $("#zbSeatchT [name='searchvalue']").val(),
|
|
|
area: $("#zbSeatchT [name='area']").val(),
|
|
|
minprice: $("#zbSeatchT [name='minprice']").val(),
|
|
|
maxprice: $("#zbSeatchT [name='maxprice']").val(),
|
|
|
- pricetype: $("#zbSeatchT [name='pricetype']").val()
|
|
|
+ pricetype: $("#zbSeatchT [name='pricetype']").val(),
|
|
|
+ currentPage: currentPage
|
|
|
};
|
|
|
$.post("/jylab/pcSearchZbqyAjax",param,function(r){
|
|
|
getSearchTable(r);
|
|
|
- getFormTable(r);
|
|
|
});
|
|
|
}
|
|
|
|