menu.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334
  1. <div class="layui-side layui-bg-black x-side">
  2. <div class="layui-side-scroll">
  3. <ul class="layui-nav layui-nav-tree site-demo-nav" lay-filter="side">
  4. {% for index,key in enumerate(data['setting']['menuList'][0][0]) %}
  5. {%set m = ',' + str(index) + '_' %}
  6. {% if ('menu' in data['setting'] and m in data['setting']['menu']) or 'menu' not in data['setting'] %}
  7. {%set icon = data['setting']['menuList'][0][1][index] %}
  8. <li class="layui-nav-item">
  9. <a class="javascript:;" href="javascript:;">
  10. <i class="layui-icon" style="top: 3px;">{% raw icon %}</i><cite>{{key}}</cite>
  11. </a>
  12. <dl class="layui-nav-child">
  13. {% for num,href in enumerate(data['setting']['menuList'][1][index][0]) %}
  14. {% if ('menu' in data['setting'] and m + str(href)+',' in data['setting']['menu']) or 'menu' not in data['setting'] %}
  15. {%set value = data['setting']['menuList'][1][index][1][num] %}
  16. <dd class="">
  17. <dd class="">
  18. <a href="javascript:;" _href="{{href}}">
  19. <cite>{{value}}</cite>
  20. </a>
  21. </dd>
  22. </dd>
  23. {% end %}
  24. {% end %}
  25. </dl>
  26. </li>
  27. {% end %}
  28. {% end %}
  29. <li class="layui-nav-item" style="height: 30px; text-align: center">
  30. </li>
  31. </ul>
  32. </div>
  33. </div>