1234567891011121314151617181920212223242526 |
- <div class="layui-header header header-demo">
- <div class="layui-main">
- <a class="logo" href="/">
- {{data['setting']['name']}}
- </a>
- <ul class="layui-nav" lay-filter="">
- <li class="layui-nav-item">
- <a href="javascript:;" id="top-show" style="display: none;">{{data['setting']['name']}}</a>
- <dl class="layui-nav-child"> <!-- 二级菜单 -->
- {% for value in data['setting']['farmList'] %}
- {% if 'top' in data['setting']['roleInfo'] and (data['setting']['roleInfo']['top'] and str(value['id']) + ',' in data['setting']['roleInfo']['top'] + ',') or data['setting']['adminInfo']['id'] == 1 %}
- <dd><a href="javascript:;" onclick="setFarm($(this), {{value['id']}})" {% if int(value['id']) == int(data['setting']['farm']) %}class="top-hide" style="display:none;"{% end %}>{{value['name']}}</a></dd>
- {% end %}
- {% end %}
- </dl>
- </li>
- <li class="layui-nav-item">
- <a href="javascript:;">{{data['setting']['adminInfo']['username']}}</a>
- <dl class="layui-nav-child"> <!-- 二级菜单 -->
- <dd><a href="/user/loginout">退出</a></dd>
- </dl>
- </li>
- <li class="layui-nav-item x-index"><a href="{{data['setting']['web']}}" target="_blank">前台首页</a></li>
- </ul>
- </div>
- </div>
|