TaoLer/app/admin/view/index/index.html

51 lines
1.3 KiB
HTML
Raw Normal View History

2020-01-01 13:17:19 +08:00
{extend name="public:base" /}
{block name="body"}
<div id="LAY_app">
<div class="layui-layout layui-layout-admin">
2022-11-25 22:44:04 +08:00
{include file="public/header" /}
<!-- 侧边菜单 -->
<div id="hxNavbar" data-url="{:url('menu/getMenuNavbar')}"></div>
{include file="public/page_tabs" /}
2020-01-01 13:17:19 +08:00
<!-- 主体内容 -->
<div class="layui-body" id="LAY_app_body">
<div class="layadmin-tabsbody-item layui-show">
<iframe src="{:url('index/home')}" frameborder="0" class="layadmin-iframe"></iframe>
2020-01-01 13:17:19 +08:00
</div>
</div>
{include file="public/footer" /}
2020-01-01 13:17:19 +08:00
<!-- 辅助元素,一般用于移动设备下遮罩 -->
<div class="layadmin-body-shade" layadmin-event="shade"></div>
2020-01-01 13:17:19 +08:00
</div>
</div>
{/block}
{block name="js"}
<script>
layui.config({
base: '/static/admin/' //静态资源所在路径
}).extend({
index: 'lib/index' //主入口模块
2022-11-25 22:44:04 +08:00
}).use(['index','hxNav'],function (){
// 动态菜单
layui.hxNav({
element: '#hxNavbar', // 必须指定ID
url: "{:url('menu/getMenuNavbar')}", // 请求后台数据的接口
type: 'post',
shrink: false,
onSelect: function(v) {
//console.log(v);
}
});
});
2020-01-01 13:17:19 +08:00
</script>
{/block}