1 Star 0 Fork 1

null/layui-admx

forked from 手里有个码/layui-admx 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
admin-data.html 4.73 KB
一键复制 编辑 原始数据 按行查看 历史
手里有个码 提交于 2020-11-22 10:33 . 第一版
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<title>layui在线调试</title>
<link rel="stylesheet" href="static/layui-v2.5.6/layui/css/layui.css" media="all">
<style></style>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
<div class="layui-header">
<div class="layui-logo">layui 后台布局</div>
<!-- 头部区域(可配合layui已有的水平导航) -->
<ul class="layui-nav layui-layout-left">
<li class="layui-nav-item"><a href="javascript:app.openTab('00','text','url');">控制台</a></li>
<li class="layui-nav-item"><a href="javascript:;">商品管理</a></li>
<li class="layui-nav-item"><a href="javascript:;">用户</a></li>
<li class="layui-nav-item">
<a href="javascript:;">其它系统</a>
<dl class="layui-nav-child">
<dd><a href="javascript:;">邮件管理</a></dd>
<dd><a href="javascript:;">消息管理</a></dd>
<dd><a href="javascript:;">授权管理</a></dd>
</dl>
</li>
</ul>
<ul class="layui-nav layui-layout-right">
<li class="layui-nav-item">
<a href="javascript:;">
<img src="//tva1.sinaimg.cn/crop.0.0.118.118.180/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg" class="layui-nav-img">
贤心
</a>
<dl class="layui-nav-child">
<dd><a href="">基本资料</a></dd>
<dd><a href="">安全设置</a></dd>
<dd><a href="javascript:app.login();">锁屏登录</a></dd>
</dl>
</li>
<li class="layui-nav-item"><a href="">退了</a></li>
</ul>
</div>
<div class="layui-side layui-bg-black ">
<div class="layui-side-scroll">
<!-- 左侧导航区域(可配合layui已有的垂直导航) -->
<ul class="layui-nav layui-nav-tree" id="appNav" lay-filter="navMenu">
</ul>
<script id="appNav2" type="text/html">
{{# layui.each(d, function(index, item){ }}
<li class="layui-nav-item layui-nav-itemed">
<a class="" href="javascript:;" data-id="{{ item.id }}" data-text="{{ item.text }}" data-url="{{ item.url }}" ><i class="layui-icon layui-icon-set"></i> {{ item.text }}</a>
{{# if(item.children !== undefined && item.children.length > 0){ }}
<dl class="layui-nav-child">
{{# layui.each(item.children, function(index, item2){ }}
<dd ><a href="javascript:;" data-id="{{ item2.id }}" data-text="{{ item2.text }}" data-url="{{ item2.url }}" >{{ item2.text }}</a></dd>
{{# }); }}
</dl>
{{# } }}
</li>
{{# }); }}
</script>
</div>
</div>
<div class="layui-body" id="container" >
<div class="layui-tab layui-tab-brief" lay-allowClose="true" lay-filter="domain">
<ul class="layui-tab-title">
<li class="layui-this">首页</li>
</ul>
<div class="layui-tab-content">
<div class="layui-tab-item layui-show">
<iframe src="welcome.html" scrolling="auto" style="width: 100%; border: none;"></iframe>
</div>
</div>
</div>
</div>
<div class="layui-footer">
<!-- 底部固定区域 -->
© layui.com - 底部固定区域
</div>
<div id="login" style="display: none;">
<div style="padding:10px;">
<form class="layui-form layui-form-pane" lay-filter="loginForm" action="">
<div class="layui-form-item">
<label class="layui-form-label">账号</label>
<div class="layui-input-block">
<input type="text" name="username" required lay-verify="required" placeholder="请输入账号" autocomplete="off" class="layui-input" />
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">密码</label>
<div class="layui-input-block">
<input type="password" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input" />
</div>
</div>
</form>
</div>
</div>
</div>
<script src="static/layui-v2.5.6/layui/layui.js"></script>
<script src="js/app.js"></script>
<script src="js/menu.js"></script>
<script >
</script>
<script>
layui.config({
version: "2020080501",
base: 'js/'
}).use(['element','jquery','app','laytpl'], function(){
var element = layui.element
,$ = layui.jquery
,app = layui.app
,laytpl = layui.laytpl;
app.init();
console.log('搞什么菜单')
//console.log('搞什么菜单',menus)
var getTpl = appNav2.innerHTML
,view = document.getElementById('appNav');
laytpl(getTpl).render(menus, function(html){
console.log(html);
view.innerHTML = html;
element.init();
});
});
</script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/it0662/layui-admx.git
git@gitee.com:it0662/layui-admx.git
it0662
layui-admx
layui-admx
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385