1、修复首页分页BUG

2、优化部分页面效果
This commit is contained in:
Minho
2018-01-27 10:56:23 +08:00
parent b691a2333f
commit c537ada16e
6 changed files with 30 additions and 32 deletions

View File

@@ -35,7 +35,7 @@ func (c *HomeController) Index() {
c.Abort("500")
}
if totalCount > 0 {
pager := pagination.NewPagination(c.Ctx.Request,totalCount,conf.PageSize)
pager := pagination.NewPagination(c.Ctx.Request,totalCount,pageSize)
c.Data["PageHtml"] = pager.HtmlPages()
} else {
c.Data["PageHtml"] = ""