index.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. {%include '../inc/header.html'%}
  5. <link href="{{static_url('mobile/css/index.css')}}" rel="stylesheet">
  6. </head>
  7. <body>
  8. <h1 class="h1">{{data['setting']['farmInfo']['name']}}</h1>
  9. <section>
  10. <div class="form-group-head">设备综合管控</div>
  11. <ul>
  12. {% for value in data['page'] %}
  13. <li class="form-input">
  14. <a href="/device/data?type=page&id={{value['id']}}">
  15. <i class="ico ico-{% if value['ico'] == 'kz' %}2{% else %}1{% end %}"></i><span>{{value['name']}}</span><p><i>&gt;</i></p>
  16. </a>
  17. </li>
  18. {% end %}
  19. <li class="form-input">
  20. <a href="/device/mul">
  21. <i class="ico ico-3"></i><span>批量控制</span><p><i>&gt;</i></p>
  22. </a>
  23. </li>
  24. </ul>
  25. <div class="form-group-head">设备管理</div>
  26. <ul>
  27. {% for value in data['gateway'] %}
  28. <li class="form-input">
  29. <a href="/device/data?type=gateway&id={{value['id']}}">
  30. <i class="ico ico-4"></i><span>{{value['name']}}</span><p><i>&gt;</i></p>
  31. </a>
  32. </li>
  33. {% end %}
  34. </ul>
  35. <div class="form-group-head">基础信息</div>
  36. <ul>
  37. <li class="form-input">
  38. <a href="/msg">
  39. <i class="ico ico-5"></i><span>消息通知提醒</span><p>{% if 'msgNum' in data['setting'] and data['setting']['msgNum'] > 0 %}<b>{{data['setting']['msgNum']}}</b>{% end %}<i>&gt;</i></p>
  40. </a>
  41. </li>
  42. </ul>
  43. <ul class="mt22">
  44. <li class="form-input">
  45. <a href="/user/loginout">
  46. <span>退出登录</span><p><i>&gt;</i></p>
  47. </a>
  48. </li>
  49. </ul>
  50. </section>
  51. {%include '../inc/script.html'%}
  52. </body>
  53. </html>