page.html 621 B

1234567891011121314151617181920212223242526272829
  1. {% if data['page']['total'] > 1 %}
  2. {%set current = int(data['page']['current']) %}
  3. {% if current > 1 %}
  4. {%set prev = current-1 %}
  5. {% else %}
  6. {%set prev = 1 %}
  7. {% end %}
  8. {% if current > data['page']['total'] %}
  9. {%set next = data['page']['total'] %}
  10. {% else %}
  11. {%set next = current+1 %}
  12. {% end %}
  13. {% if '?' in url %}
  14. {%set cUrl = url +'&page=' %}
  15. {% else %}
  16. {%set cUrl = url +'?page=' %}
  17. {% end %}
  18. <div class="paging" {% if next != data['page']['total']%}link="{{cUrl}}{{next}}"{% end %} dever-list="#dever-list">
  19. </div>
  20. <script>
  21. $(function()
  22. {
  23. _Dever_Page.Init();
  24. });
  25. </script>
  26. {% end %}