123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296 |
- <!DOCTYPE html>
- <html lang="zh">
- <head>
- <title>{block name="title"}{$title|default=''}{if !empty($title)} · {/if}{:sysconf('site_name')}{/block}</title>
- <meta charset="utf-8">
- <meta name="renderer" content="webkit">
- <meta name="format-detection" content="telephone=no">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=0.4">
- <link rel="shortcut icon" href="{:sysconf('site_icon')}">
- <link rel="stylesheet" href="__ROOT__/static/plugs/awesome/fonts.css?at={:date('md')}">
- <link rel="stylesheet" href="__ROOT__/static/plugs/layui/css/layui.css?at={:date('md')}">
- <link rel="stylesheet" href="__ROOT__/static/theme/css/console.css?at={:date('md')}">
- {block name="style"}{/block}
- <script>window.ROOT_URL = '__ROOT__';</script>
- <script src="__ROOT__/static/plugs/jquery/pace.min.js"></script>
- <style>
- .layui-header .layui-layout-right li a{
- padding-right: 35px;
- }
- .tangram-suggestion-main{
- z-index: 999;
- }
- </style>
- <script src="//api.map.baidu.com/api?type=webgl&v=1.0&ak=E4Y9cdBjAvDM6DjGcOmBA4v2GcEXAWvG"></script>
- </head>
- <body class="layui-layout-body">
- {block name='body'}
- <div class="layui-layout layui-layout-admin layui-layout-left-hide">
- <!-- 顶部菜单 开始 -->
- <div class="layui-header notselect">
- <a href="{:url('@')}" class="layui-logo layui-elip">
- {:sysconf('app_name')} {if sysconf('app_version')}<sup class="padding-left-5">{:sysconf('app_version')}</sup>{/if}
- </a>
- <ul class="layui-nav layui-layout-left">
- <li class="layui-nav-item" lay-unselect>
- <a class="text-center" data-target-menu-type>
- <i class="layui-icon layui-icon-spread-left"></i>
- </a>
- </li>
- {foreach $menus as $oneMenu}
- <li class="layui-nav-item">
- <a style="display: flex" data-menu-node="m-{$oneMenu.id}" data-open="{$oneMenu.url}">
- {notempty name='oneMenu.icon'}<span class='{$oneMenu.icon} padding-right-5'></span>{/notempty}
- <span>{$oneMenu.title|default=''}</span>
- {if ($forum == 1 && $oneMenu.title == "运营中心")
- || ($datum == 1 && $oneMenu.title == "媒体管理")
- || ($article == 1 && $oneMenu.title == "媒体管理")
- || ($video == 1 && $oneMenu.title == "媒体管理")
- || ($order == 1 && $oneMenu.title == "订单管理")
- || ($level_order == 1 && $oneMenu.title == "订单管理")
- || ($refund_order == 1 && $oneMenu.title == "订单管理")
- || ($bill_apply == 1 && $oneMenu.title == "综合管理")
- || ($datum_report == 1 && $oneMenu.title == "媒体管理")
- || ($article_report == 1 && $oneMenu.title == "媒体管理")
- || ($video_report == 1 && $oneMenu.title == "媒体管理")}
- <span class="nav-text padding-left-5" style="color: red;font-size: 50px;" id="{$oneMenu.title}">•</span>
- {/if}
- </a>
- </li>
- {/foreach}
- </ul>
- <ul class="layui-nav layui-layout-right">
- <li lay-unselect class="layui-nav-item"><a data-reload><i class="layui-icon layui-icon-refresh-3"></i></a></li>
- {notempty name='Think.session.user.username'}
- <li class="layui-nav-item">
- <dl class="layui-nav-child">
- <dd lay-unselect><a data-modal="{:url('admin/index/info',['id'=>session('user.id')])}"><i class="layui-icon layui-icon-set-fill margin-right-5"></i>基本资料</a></dd>
- <dd lay-unselect><a data-modal="{:url('admin/index/pass',['id'=>session('user.id')])}"><i class="layui-icon layui-icon-component margin-right-5"></i>安全设置</a></dd>
- {if auth('admin/index/clearruntime')}
- <dd lay-unselect><a data-modal="{:url('admin/index/clearRuntime')}"><i class="layui-icon layui-icon-fonts-clear margin-right-5"></i>清理缓存</a></dd>
- {/if}
- {notempty name='GLOBALS.AdminUserRightOption'}{foreach $GLOBALS.AdminUserRightOption as $option}{if auth($option.node)}
- <dd lay-unselect><a data-{$option.type}="{$option.action}"><i class="{$option.icon} margin-right-5"></i>{$option.title}</a></dd>
- {/if}{/foreach}{/notempty}
- <dd lay-unselect><a data-confirm="确定要退出登录吗?" data-load="{:url('admin/login/out')}"><i class="layui-icon layui-icon-release margin-right-5"></i>退出登录</a></dd>
- </dl>
- <a><span><i class="layui-icon layui-icon-username margin-right-5"></i> {:session('user.username')}</span></a>
- </li>
- {else}
- <li class="layui-nav-item">
- <a data-href="{:url('@admin/login')}"><i class="layui-icon layui-icon-username"></i> 立即登录</a>
- </li>
- {/notempty}
- </ul>
- </div>
- <!-- 顶部菜单 结束 -->
- <!-- 左则菜单 开始 -->
- <div class="layui-side layui-bg-black notselect">
- <div class="layui-side-scroll">
- {foreach $menus as $oneMenu}
- {notempty name='oneMenu.sub'}
- <ul class="layui-nav layui-nav-tree layui-hide" data-menu-layout="m-{$oneMenu.id}">
- {foreach $oneMenu.sub as $twoMenu}
- {empty name='twoMenu.sub'}
- {if ($twoMenu.url == "/order/store_order/index.html" && $order == 1)
- || ($twoMenu.url == "/order/level_order/index.html" && $level_order == 1)
- || ($twoMenu.url == "/order/refund_order/index.html" && $refund_order == 1)}
- <li class="layui-nav-item" onclick="myFunction('{$twoMenu.url}','{$oneMenu.title}')">
- {else}
- <li class="layui-nav-item">
- {/if}
- <a style="display: flex" data-target-tips="{$twoMenu.title}" data-menu-node="m-{$oneMenu.id}-{$twoMenu.id}" data-open="{$twoMenu.url}">
- <span class='{$twoMenu.icon|default="layui-icon layui-icon-link"}'></span>
- <span class="nav-text padding-left-5">{$twoMenu.title}</span>
- {if ($twoMenu.url == "/order/store_order/index.html" && $order == 1)
- || ($twoMenu.url == "/order/level_order/index.html" && $level_order == 1)
- || ($twoMenu.url == "/order/refund_order/index.html" && $refund_order == 1)}
- <span class="nav-text padding-left-5" style="color: red;font-size: 50px;" id="{$twoMenu.url}">•</span>
- {/if}
- </a>
- </li>
- {else}
- <li class="layui-nav-item" data-submenu-layout='m-{$oneMenu.id}-{$twoMenu.id}'>
- <a data-target-tips="{$twoMenu.title}" style="background:#393D49">
- <span class='nav-icon layui-hide {$twoMenu.icon|default="layui-icon layui-icon-triangle-d"}'></span>
- <span class="nav-text padding-left-5">{$twoMenu.title}</span>
- </a>
- <dl class="layui-nav-child">
- {foreach $twoMenu.sub as $thrMenu}
- {if ($thrMenu.url == "/operate/forum/index.html" && $forum == 1)
- || ($thrMenu.url == "/nutrition/user_datum/index.html" && $datum == 1)
- || ($thrMenu.url == "/nutrition/user_article/index.html" && $article == 1)
- || ($thrMenu.url == "/nutrition/user_video/index.html" && $video == 1)
- || ($thrMenu.url == "/order/store_order/index.html" && $order == 1)
- || ($thrMenu.url == "/order/level_order/index.html" && $level_order == 1)
- || ($thrMenu.url == "/order/refund_order/index.html" && $refund_order == 1)
- || ($thrMenu.url == "/synth/bill_apply/index.html" && $bill_apply == 1)
- || ($thrMenu.url == "/nutrition/comment_report/index.html?type=10" && $datum_report == 1)
- || ($thrMenu.url == "/nutrition/comment_report/index.html?type=8" && $article_report == 1)
- || ($thrMenu.url == "/nutrition/comment_report/index.html?type=2" && $video_report == 1)}
- <dd onclick="myFunction('{$thrMenu.url}','{$oneMenu.title}')">
- {else}
- <dd>
- {/if}
- <a style="display: flex" data-target-tips="{$thrMenu.title}" data-open="{$thrMenu.url}" data-menu-node="m-{$oneMenu.id}-{$twoMenu.id}-{$thrMenu.id}">
- <span class='nav-icon padding-left-5 {$thrMenu.icon|default="layui-icon layui-icon-link"}'></span>
- <span class="nav-text padding-left-5">{$thrMenu.title}</span>
- {if ($thrMenu.url == "/operate/forum/index.html" && $forum == 1)
- || ($thrMenu.url == "/nutrition/user_datum/index.html" && $datum == 1)
- || ($thrMenu.url == "/nutrition/user_article/index.html" && $article == 1)
- || ($thrMenu.url == "/nutrition/user_video/index.html" && $video == 1)
- || ($thrMenu.url == "/order/store_order/index.html" && $order == 1)
- || ($thrMenu.url == "/order/level_order/index.html" && $level_order == 1)
- || ($thrMenu.url == "/order/refund_order/index.html" && $refund_order == 1)
- || ($thrMenu.url == "/synth/bill_apply/index.html" && $bill_apply == 1)
- || ($thrMenu.url == "/nutrition/comment_report/index.html?type=10" && $datum_report == 1)
- || ($thrMenu.url == "/nutrition/comment_report/index.html?type=8" && $article_report == 1)
- || ($thrMenu.url == "/nutrition/comment_report/index.html?type=2" && $video_report == 1)}
- <span class="nav-text padding-left-5" style="color: red;font-size: 50px;display: block" id="{$thrMenu.url}">•</span>
- {/if}
- </a>
- </dd>
- {/foreach}
- </dl>
- </li>
- {/empty}
- {/foreach}
- </ul>
- {/notempty}
- {/foreach}
- </div>
- </div>
- <!-- 左则菜单 结束 -->
- <!-- 主体内容 开始 -->
- <div class="layui-body layui-bg-gray">{block name='content'}{/block}</div>
- <!-- 主体内容 结束 -->
- </div>
- {/block}
- <script src="__ROOT__/static/xm-select.js"></script>
- <script src="__ROOT__/static/plugs/layui/layui.all.js"></script>
- <script src="__ROOT__/static/plugs/require/require.js"></script>
- <script src="__ROOT__/static/admin.js"></script>
- <script>
- function myFunction(url,menu) {
- console.log(url);
- console.log(menu);
- var button = document.getElementById(url); // 获取按钮元素
- button.style.display = 'none';
- console.log(button.style.display)
- var datum = document.getElementById('/nutrition/user_datum/index.html');
- var article = document.getElementById('/nutrition/user_article/index.html');
- var video = document.getElementById('/nutrition/user_video/index.html');
- var forum = document.getElementById('/operate/forum/index.html');
- var order = document.getElementById('/order/store_order/index.html');
- var level_order = document.getElementById('/order/level_order/index.html');
- var refund_order = document.getElementById('/order/refund_order/index.html');
- var bill_apply = document.getElementById('/synth/bill_apply/index.html');
- var datum_report = document.getElementById('/nutrition/comment_report/index.html?type=10');
- var article_report = document.getElementById('/nutrition/comment_report/index.html?type=8');
- var video_report = document.getElementById('/nutrition/comment_report/index.html?type=2');
- if(datum == null){
- var datum = 0;
- }else if(datum.style.display === 'none'){
- var datum = 0;
- }
- if(article == null){
- var article = 0;
- }else if(article.style.display === 'none'){
- var article = 0;
- }
- if(video == null){
- var video = 0;
- }else if(video.style.display === 'none'){
- var video = 0;
- }
- if(forum == null){
- var forum = 0;
- }else if(forum.style.display === 'none'){
- var forum = 0;
- }
- if(order == null){
- var order = 0;
- }else if(order.style.display === 'none'){
- var order = 0;
- }
- if(level_order == null){
- var level_order = 0;
- }else if(level_order.style.display === 'none'){
- var level_order = 0;
- }
- if(refund_order == null){
- var refund_order = 0;
- }else if(refund_order.style.display === 'none'){
- var refund_order = 0;
- }
- if(bill_apply == null){
- var bill_apply = 0;
- }else if(bill_apply.style.display === 'none'){
- var bill_apply = 0;
- }
- if(datum_report == null){
- var datum_report = 0;
- }else if(datum_report.style.display === 'none'){
- var datum_report = 0;
- }
- if(article_report == null){
- var article_report = 0;
- }else if(article_report.style.display === 'none'){
- var article_report = 0;
- }
- if(video_report == null){
- var video_report = 0;
- }else if(video_report.style.display === 'none'){
- var video_report = 0;
- }
- // console.log(datum);
- if(menu === "媒体管理" && datum === 0 && article === 0 && video === 0 && datum_report === 0 && article_report === 0 && video_report === 0){
- var menu_b = document.getElementById(menu); // 获取按钮元素
- menu_b.style.display = 'none';
- }
- if(menu === "运营中心" && forum === 0){
- var menu_b = document.getElementById(menu); // 获取按钮元素
- menu_b.style.display = 'none';
- }
- if(menu === "订单管理" && order === 0 && level_order === 0 && refund_order == 0){
- var menu_b = document.getElementById(menu); // 获取按钮元素
- menu_b.style.display = 'none';
- }
- if(menu === "综合管理" && bill_apply === 0){
- var menu_b = document.getElementById(menu); // 获取按钮元素
- menu_b.style.display = 'none';
- }
- }
- </script>
- {block name='script'}{/block}
- </body>
- </html>
|