|
@@ -1,10 +1,6 @@
|
|
package front
|
|
package front
|
|
|
|
|
|
import (
|
|
import (
|
|
- qu "app.yhyue.com/moapp/jybase/common"
|
|
|
|
- "app.yhyue.com/moapp/jybase/go-xweb/xweb"
|
|
|
|
- "app.yhyue.com/moapp/jybase/redis"
|
|
|
|
- "app.yhyue.com/moapp/jypkg/common/src/qfw/util/bidsearch"
|
|
|
|
"encoding/json"
|
|
"encoding/json"
|
|
"fmt"
|
|
"fmt"
|
|
"jy/src/jfw/modules/app/src/app/jyutil"
|
|
"jy/src/jfw/modules/app/src/app/jyutil"
|
|
@@ -13,6 +9,11 @@ import (
|
|
"regexp"
|
|
"regexp"
|
|
"strconv"
|
|
"strconv"
|
|
"strings"
|
|
"strings"
|
|
|
|
+
|
|
|
|
+ qu "app.yhyue.com/moapp/jybase/common"
|
|
|
|
+ "app.yhyue.com/moapp/jybase/go-xweb/xweb"
|
|
|
|
+ "app.yhyue.com/moapp/jybase/redis"
|
|
|
|
+ "app.yhyue.com/moapp/jypkg/common/src/qfw/util/bidsearch"
|
|
)
|
|
)
|
|
|
|
|
|
var (
|
|
var (
|
|
@@ -303,8 +304,8 @@ onceAgain:
|
|
if biddingInfo.PageNum == (biddingInfo.Total-1)/biddingInfo.PageSize+1 {
|
|
if biddingInfo.PageNum == (biddingInfo.Total-1)/biddingInfo.PageSize+1 {
|
|
nextPage = ""
|
|
nextPage = ""
|
|
}
|
|
}
|
|
- tg.T["prevPage"] = qu.If(prevPage != "", fmt.Sprintf("/tags/%s/%s.html", types, prevPage), "").(string)
|
|
|
|
- tg.T["nextPage"] = qu.If(nextPage != "", fmt.Sprintf("/tags/%s/%s.html", types, nextPage), "").(string)
|
|
|
|
|
|
+ tg.T["prevPage"] = qu.If(prevPage != "", fmt.Sprintf("/%s/%s/%s.html", first, types, prevPage), "").(string)
|
|
|
|
+ tg.T["nextPage"] = qu.If(nextPage != "", fmt.Sprintf("/%s/%s/%s.html", first, types, nextPage), "").(string)
|
|
tg.T["totalPage"] = (biddingInfo.Total-1)/biddingInfo.PageSize + 1
|
|
tg.T["totalPage"] = (biddingInfo.Total-1)/biddingInfo.PageSize + 1
|
|
tg.T["pageNum"] = biddingInfo.PageNum
|
|
tg.T["pageNum"] = biddingInfo.PageNum
|
|
tg.T["hotArea"] = jyutil.HotAreas
|
|
tg.T["hotArea"] = jyutil.HotAreas
|