Browse Source

fit:pc端分页

wangshan 3 years ago
parent
commit
244a393989
2 changed files with 5 additions and 3 deletions
  1. 0 2
      src/jfw/front/supsearch.go
  2. 5 1
      src/web/templates/pc/supsearch.html

+ 0 - 2
src/jfw/front/supsearch.go

@@ -292,7 +292,6 @@ func (p *Pcsearch) PcSearchIndex() error {
 	if len(s_word) > 0 || len(industry) > 0 {
 		status = 2
 		secondKWS, _, _, _, secondFlag, count, totalPage, list = bidsearch.SearchData("pc", p.Request, 1, util.ObjToString(p.GetSession("userId")), secondKWS, s_word, area, publishtime, subtype, industry, minprice, maxprice, "", buyerclass, hasBuyerTel, hasWinnerTel, 0, bidsearch.SearchPageSize_PC, true, queryItems, bidSearch_field_1, notkey, isPayedUser)
-		log.Println("list:", len(*list))
 	} else {
 		p.DisableHttpCache()
 		p.T["list"] = PCS_list("") //Newbids("")[0]
@@ -309,7 +308,6 @@ func (p *Pcsearch) PcSearchIndex() error {
 		if secondKWS != "" {
 			s_word = s_word + "+" + secondKWS
 		}
-		log.Println(len(secondList), "-------", secondFlag)
 		p.T["list"] = list
 		p.T["secondFlag"] = secondFlag
 		p.T["area"] = area

+ 5 - 1
src/web/templates/pc/supsearch.html

@@ -2249,7 +2249,11 @@ document.querySelector(".searchControl").oncopy = function(){
               $(".tabContainer").show();
               $(".hasNoData").hide();
               //$(".nbnext").addClass("disabled");
-              appendDatas(secondList,true,false);
+              if (currentPage==2){
+                appendDatas(secondList,true,false);
+              }else{
+                appendDatas(list,true,false);
+              }
             }else if(!nbflag&&currentPage>0){
               getNewBiddings();
             }else{