index.html 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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="/device/group">
  39. <i class="ico ico-4"></i><span>设备分组</span><p><i>&gt;</i></p>
  40. </a>
  41. </li>
  42. <li class="form-input">
  43. <a href="/device/set_mul">
  44. <i class="ico ico-6"></i><span>智能设置</span><p><i>&gt;</i></p>
  45. </a>
  46. </li>
  47. <li class="form-input">
  48. <a href="/msg">
  49. <i class="ico ico-5"></i><span>消息通知提醒</span><p>{% if 'msgNum' in data['setting'] and data['setting']['msgNum']%}<b>{{data['setting']['msgNum']}}</b>{% end %}<i>&gt;</i></p>
  50. </a>
  51. </li>
  52. </ul>
  53. <ul class="mt22">
  54. <li class="form-input">
  55. <a href="/user/loginout">
  56. <span>退出登录</span><p><i>&gt;</i></p>
  57. </a>
  58. </li>
  59. </ul>
  60. </section>
  61. {%include '../inc/script.html'%}
  62. </body>
  63. </html>