mirror of
https://gitee.com/johng/gf
synced 2026-06-29 02:26:29 +08:00
修复gpage包分页计数问题
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user