修复gpage包分页计数问题

This commit is contained in:
John
2018-05-24 17:16:03 +08:00
parent 35847d14b0
commit 4b3382fceb

View File

@ -46,7 +46,7 @@ func New(TotalSize, perPage int, CurrentPage interface{}, url string, route...s
PrevBar : "<<",
NextBar : ">>",
TotalSize : TotalSize,
TotalPage : int(math.Ceil(float64(TotalSize/perPage))),
TotalPage : int(math.Ceil(float64(TotalSize)/float64(perPage))),
CurrentPage : 1,
PageBarNum : 10,
Url : u,