|
@@ -94,8 +94,8 @@
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
- <div>{$categorys.render|raw}</div>
|
|
|
-<!-- <div id="pages"></div>-->
|
|
|
+<!-- <div>{$categorys.render|raw}</div>-->
|
|
|
+ <div id="pages"></div>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
@@ -115,8 +115,15 @@
|
|
|
|
|
|
laypage.render({ //分页
|
|
|
elem: 'pages'
|
|
|
- , count: 100
|
|
|
+ , count: {$categorys.total}
|
|
|
, theme: '#FFB800'
|
|
|
+ , limit: {$categorys.per_page}
|
|
|
+ , curr : {$categorys.current_page}
|
|
|
+ , jump : function (obj, first) {
|
|
|
+ if (!first) {
|
|
|
+ location.href = "?page=" + obj.curr
|
|
|
+ }
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
|