From c1c524031a997e8101a682c7995e262cf2d10169 Mon Sep 17 00:00:00 2001 From: zouap Date: Mon, 28 Feb 2022 15:52:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- public/home/search.js | 6 +++++- templates/explore/search_new.tmpl | 8 +++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/public/home/search.js b/public/home/search.js index 6bed7808b..0a937a5a9 100644 --- a/public/home/search.js +++ b/public/home/search.js @@ -578,14 +578,18 @@ function page(current){ totalPage =Math.ceil(pageData.Total/pageSize); console.log("totalPage=" + totalPage); var html =""; - for(var i=startIndex-1;i < endIndex&&(i+currentPage) totalPage){ + break; + } if( i== 0){ html += "" + page_i + ""; }else{ html += "" + page_i + ""; } } + console.log("html=" + html) document.getElementById("page_ids").innerHTML=html; if(currentPage >=totalPage){ $('#nextPage').addClass("disabled"); diff --git a/templates/explore/search_new.tmpl b/templates/explore/search_new.tmpl index a4dc98f17..fd1f338e3 100644 --- a/templates/explore/search_new.tmpl +++ b/templates/explore/search_new.tmpl @@ -77,20 +77,18 @@