list.html 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. {%include 'inc/header.html'%}
  5. <link href="{{static_url('css/list.css')}}" rel="stylesheet"></head>
  6. <body>
  7. {%include 'inc/menu.html'%}
  8. <div class="wrapper-100 color-1">
  9. <div class="wrapper">
  10. <div class="banner">
  11. <img src="{{static_url('images/69ef41b2.banner1.jpg')}}" width="100%">
  12. <span>帮助中心</span>
  13. </div>
  14. <div class="content">
  15. <div class="menu">
  16. <h3>常见问题目录</h3>
  17. <ul>
  18. {% for v in data['category'] %}
  19. <li {% if data['category_id'] == v['id'] %}class="cur"{% end %}><a href="{{v['link']}}">{{v['name']}}</a></li>
  20. {% end %}
  21. </ul>
  22. </div>
  23. {% if data['list'] %}
  24. <div class="list">
  25. <ul>
  26. {% for v in data['list'] %}
  27. <li><a href="{{v['link']}}"><i>{{v['index']}}.</i><p>{{v['name']}}</p></a></li>
  28. {% end %}
  29. </ul>
  30. {% if data['page']['total'] > 1 %}
  31. {%set current = int(data['page']['current']) %}
  32. {% if current > 1 %}
  33. {%set prev = current-1 %}
  34. {% else %}
  35. {%set prev = 1 %}
  36. {% end %}
  37. {% if current >= data['page']['total'] %}
  38. {%set next = data['page']['total'] %}
  39. {% else %}
  40. {%set next = current+1 %}
  41. {% end %}
  42. <div class="paging">
  43. <a href="{{data['url']}}&page={{prev}}" class="prev"></a>
  44. <em>{{data['page']['current']}}</em><span>/</span><span>{{data['page']['total']}}</span>
  45. <a href="{{data['url']}}&page={{next}}" class="next"></a>
  46. </div>
  47. {% end %}
  48. </div>
  49. {% end %}
  50. </div>
  51. </div>
  52. </div>
  53. {%include 'inc/footer.html'%}
  54. {%include 'inc/script.html'%}
  55. </body>
  56. </html>