TaoLer/app/admin/view/index/index.html
2022-11-25 22:44:04 +08:00

51 lines
1.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{extend name="public:base" /}
{block name="body"}
<div id="LAY_app">
<div class="layui-layout layui-layout-admin">
{include file="public/header" /}
<!-- 侧边菜单 -->
<div id="hxNavbar" data-url="{:url('menu/getMenuNavbar')}"></div>
{include file="public/page_tabs" /}
<!-- 主体内容 -->
<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>
</div>
</div>
{include file="public/footer" /}
<!-- 辅助元素,一般用于移动设备下遮罩 -->
<div class="layadmin-body-shade" layadmin-event="shade"></div>
</div>
</div>
{/block}
{block name="js"}
<script>
layui.config({
base: '/static/admin/' //静态资源所在路径
}).extend({
index: 'lib/index' //主入口模块
}).use(['index','hxNav'],function (){
// 动态菜单
layui.hxNav({
element: '#hxNavbar', // 必须指定ID
url: "{:url('menu/getMenuNavbar')}", // 请求后台数据的接口
type: 'post',
shrink: false,
onSelect: function(v) {
//console.log(v);
}
});
});
</script>
{/block}