[#assign p=page/] [#if p.totalPages gt 1]
<上一页 [#if p.totalPages gt 7] [#if (pn gt 5) && (pn lt p.totalPages-2)] 1 2 ... [#list pn-2..pn as i] ${i} [/#list] [#elseif pn gt p.totalPages-3] 1 2 ... [#list p.totalPages-4..pn as i] ${i} [/#list] [#else] [#list 1..pn as i] ${i} [/#list] [/#if] [#if (pn gt 3) && (pn lt p.totalPages-4)] [#list pn+1..pn+2 as i] ${i} [/#list] ... ${p.totalPages-1} ${p.totalPages} [#elseif pn lt 4] [#list pn+1..5 as i] ${i} [/#list] ... ${p.totalPages-1} ${p.totalPages} [#else] [#if p.totalPages gt pn] [#list pn+1..p.totalPages as i] ${i} [/#list] [/#if] [/#if] [#else] [#list 1..p.totalPages as i] ${i} [/#list] [/#if] 下一页>
[/#if]