From 081504ef0d15ca3047e8c347396368e5c293061b Mon Sep 17 00:00:00 2001 From: sunxin <2741094504@qq.com> Date: Fri, 1 Mar 2019 12:37:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/templets/1/default/search.htm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/templets/1/default/search.htm b/src/main/webapp/templets/1/default/search.htm index a19ecf32..1d5f23ec 100644 --- a/src/main/webapp/templets/1/default/search.htm +++ b/src/main/webapp/templets/1/default/search.htm @@ -45,17 +45,19 @@ new Vue({ list: [], }, methods: { + //上下页 search:function(flag){ var pageNo = {ms:search.pageNo/}; var total = {ms:page.total/}; if(flag){ - pageNo = pageNo==total ? total : pageNo +1; + pageNo = pageNo==total ? total : pageNo +1;//下一页 }else{ - pageNo = pageNo -1==0 ? 1 : pageNo-1; + pageNo = pageNo -1==0 ? 1 : pageNo-1;//上一页 } window.location.href="{ms:global.host/}/cms/1/search.do?basic_title={ms:search.basic_title/}&pageNo="+pageNo; window.event.returnValue=false; }, + //首页和尾页 indexAndLast:function(pageNo){ window.location.href="{ms:global.host/}/cms/1/search.do?basic_title={ms:search.basic_title/}&pageNo="+pageNo; window.event.returnValue=false;