123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469 |
- <?php /*a:2:{s:59:"D:\phpstudy_pro\WWW\caiping\app\admin\view\index\index.html";i:1723541257;s:59:"D:\phpstudy_pro\WWW\caiping\app\admin\view\common\base.html";i:1723541257;}*/ ?>
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="renderer" content="webkit">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="360-site-verification" content="a7c876fae8b6e3175a52ea9f19543f51" />
- <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0">
- <script src="/static/dist/xm-select.js"></script>
- <link rel="mobile-prefetch" href=""/>
- <title><?php echo get_system_config('web','admin_title'); ?></title>
- <meta name="keywords" content="<?php echo get_system_config('web','keywords'); ?>"/>
- <meta name="description" content="<?php echo get_system_config('web','desc'); ?>"/>
- <link rel="stylesheet" href="/static/assets/gougu/css/gougu.css?v=<?php echo get_system_config('web','version'); ?>" media="all">
- <link rel="stylesheet" href="/static/assets/gougu/css/layout.css" media="all">
- <style>
- .total {
- margin-right: 80px;
- color: #999;
- margin-top: 5px;
- opacity: 0;
- transition: all 0.5s;
- }
- .box {
- text-align: center;
- position: absolute;
- top: 215%;
- left: 34%;
- transform: translate(-50%, -50%);
- background: #fff;
- padding: 20px;
- border: 1px solid #ccc;
- border-radius: 5px;
- padding: 0;
- }
- .top-text {
- width: 100%;
- height: 80%;
- }
- .bottom-button {
- width: 100%;
- height: 20%;
- }
-
- #read_num{
- color: white;
- position: absolute;
- top: 22px;
- left: 25px;
- background-color: #ff2f00bf;
- border-radius: 50%;
- width: 20px;
- height: 20px;
- text-align: center;
- line-height: 20px;
- font-size: 12px;
- }
-
- .layui-nav-itemed a{
- color: #162a48 !important;
- }
- </style>
- </head>
- <body class="main-body">
- <!-- 主体 -->
-
- <div class="layui-layout-body">
- <div id="GouguApp">
- <div class="layui-layout gg-layout">
- <div class="layui-header">
- <!-- 头部区域 -->
- <div class="layui-layout-left">
- <span class="gg-head-item">
- <a href="javascript:;" gg-event="shrink" title="侧边伸缩"><i
- class="layui-icon layui-icon-shrink-right"></i></a>
- </span>
- <span class="gg-head-item gg-head-cache">
- <a href="javascript:;" gg-event="cache" data-href="/admin/api/cache_clear" title="清空缓存"><i
- class="layui-icon layui-icon-fonts-clear"></i></a>
- </span>
- <span class="gg-head-item gg-head-home">
- <a href="/" target="_blank" title="前台首页"><i class="layui-icon layui-icon-website"></i></a>
- </span>
- </div>
- <div class="layui-layout-right">
- <span class="gg-head-item gg-head-refresh">
- <a href="javascript:;" class="refreshThis" gg-event="refresh" title="刷新">
- <i class="layui-icon layui-icon-refresh"></i>
- </a>
- </span>
- <span class="gg-head-item gg-head-screen">
- <a href="javascript:;" gg-event="screen" data-screen="full">
- <i class="fullScreen layui-icon layui-icon-screen-full"></i>
- </a>
- </span>
- <span class="gg-head-item gg-head-set">
- <a href="javascript:;" id="theme">
- <i class="layui-icon layui-icon-set"></i>
- </a>
- </span>
- <span class="gg-head-item gg-head-message">
- <a data-href="/admin/message/index" href="javascript:;" data-id="1000" id="clean_unread" data-title="消息中心"
- class="side-menu-item" title="消息中心">
- <i class="layui-icon layui-icon-notice">
- </i><?php if($count>0): ?><span id="read_num"><?php echo htmlentities($count); ?></span><?php endif; ?>
- </a>
- </span>
- <!-- <div class="box layui-card" style="opacity: 0;" id="message">
- <div class="layui-card-header" style="border-bottom: 1px solid #e2e2e2;">
- 您有一条新的消息
- </div>
- <div class="layui-card-body">
- <div class="top-text">
- <span>张三</span><span> <b>审批通过</b> </span> <span style="color: #187FDD;">测试项目1</span>
- </div>
- <div class="bottom-button">
- <a type="button" class="layui-btn layui-btn-xs side-menu-item"
- data-href="/admin/message/index" data-title="消息中心"
- href="javascript:;" data-id="1000"
- id = 'lock' style="color: white;"
- >查看</a>
- <button type="button" class="layui-btn layui-btn-xs layui-bg-orange" value="关闭"
- id="refreshParent">关闭</button>
- </div>
- </div>
- </div> -->
- <span class="gg-head-item gg-head-avatar">
- <ul class="layui-nav">
- <li class="layui-nav-item">
- <a href="javascript:;">
- <img src="<?php echo get_login_admin('thumb'); ?>"
- onerror="javascript:this.src='{__ADMIN_IMG__}/nonepic360x360.jpg';this.onerror=null;">
- <cite><?php echo get_login_admin('nickname'); ?></cite>
- </a>
- <dl class="layui-nav-child" style="text-align: center; cursor: pointer;">
- <dd><a data-href="/admin/api/edit_personal" data-id="0101" data-title="基本资料"
- class="side-menu-item">基本资料</a></dd>
- <dd><a data-href="/admin/api/edit_password" data-id="0102" data-title="修改密码"
- class="side-menu-item">修改密码</a></dd>
- <dd><a data-href="/acctconnect/connect/index" data-id="0103" data-title="关联账号"
- class="side-menu-item">关联账号</a></dd>
- <hr>
- <dd gg-event="logout"><a>退出</a></dd>
- </dl>
- </li>
- </ul>
- </span>
- </div>
- </div>
- <!-- 侧边菜单 -->
- <div class="layui-side layui-side-menu layui-side-<?php echo htmlentities($theme); ?>">
- <div class="layui-side-scroll">
- <div class="layui-logo" gg-event="closeAllTabs" style="color: black;font-size: 0.95vw;">
- <?php echo htmlentities($unit_name); ?>
- <!-- <img src="/static/admin/images/syslogo.png" style="height: 40px;" class="syslogo">-->
- <!-- <img src="/static/admin/images/logo.png" style="height: 40px;" class="logo">-->
- </div>
- <ul id="menuList" class="layui-nav layui-nav-tree layui-inline" lay-shrink="all">
- <?php if(is_array($menu) || $menu instanceof \think\Collection || $menu instanceof \think\Paginator): if( count($menu)==0 ) : echo "" ;else: foreach($menu as $key=>$a): ?>
- <li class="layui-nav-item menu-li">
- <a class="side-menu-item" href="javascript:;" class="side-menu-item" lay-tips="<?php echo htmlentities($a['title']); ?>"
- lay-direction="2" <?php if(!(empty($a['isred']) || (($a['isred'] instanceof \think\Collection || $a['isred'] instanceof \think\Paginator ) && $a['isred']->isEmpty()))): ?> data-red="<?php echo htmlentities($a['isred']); ?>" <?php endif; ?>
- data-id="<?php echo htmlentities($a['id']); ?>" data-title="<?php echo htmlentities($a['title']); ?>" data-href="/<?php echo htmlentities($a['src']); ?>"><i
- class="icon <?php echo htmlentities($a['icon']); ?>"></i> <?php echo htmlentities($a['title']); ?></a>
- <?php if(!(empty($a['list']) || (($a['list'] instanceof \think\Collection || $a['list'] instanceof \think\Paginator ) && $a['list']->isEmpty()))): ?>
- <dl class="layui-nav-child">
- <?php if(is_array($a['list']) || $a['list'] instanceof \think\Collection || $a['list'] instanceof \think\Paginator): if( count($a['list'])==0 ) : echo "" ;else: foreach($a['list'] as $key=>$b): ?>
- <dd>
- <a href="javascript:;" class="side-menu-item" <?php if(!(empty($b['isred']) || (($b['isred'] instanceof \think\Collection || $b['isred'] instanceof \think\Paginator ) && $b['isred']->isEmpty()))): ?>
- data-red="<?php echo htmlentities($b['isred']); ?>" <?php endif; ?> data-id="<?php echo htmlentities($b['id']); ?>" data-title="<?php echo htmlentities($b['title']); ?>"
- data-href="/<?php echo htmlentities($b['src']); ?>"><?php echo htmlentities($b['title']); ?></a>
- <?php if(!(empty($b['list']) || (($b['list'] instanceof \think\Collection || $b['list'] instanceof \think\Paginator ) && $b['list']->isEmpty()))): ?>
- <dl class="layui-nav-child">
- <?php if(is_array($b['list']) || $b['list'] instanceof \think\Collection || $b['list'] instanceof \think\Paginator): if( count($b['list'])==0 ) : echo "" ;else: foreach($b['list'] as $key=>$c): ?>
- <dd>
- <a href="javascript:;" class="side-menu-item" data-id="<?php echo htmlentities($c['id']); ?>"
- data-title="<?php echo htmlentities($c['title']); ?>" data-href="/<?php echo htmlentities($c['src']); ?>"><?php echo htmlentities($c['title']); ?></a>
- <?php if(!(empty($c['list']) || (($c['list'] instanceof \think\Collection || $c['list'] instanceof \think\Paginator ) && $c['list']->isEmpty()))): ?>
- <dl class="layui-nav-child">
- <?php if(is_array($c['list']) || $c['list'] instanceof \think\Collection || $c['list'] instanceof \think\Paginator): if( count($c['list'])==0 ) : echo "" ;else: foreach($c['list'] as $key=>$d): ?>
- <dd><a href="javascript:;" class="side-menu-item" data-id="<?php echo htmlentities($d['id']); ?>"
- data-title="<?php echo htmlentities($d['title']); ?>" data-href="/<?php echo htmlentities($d['src']); ?>"><?php echo htmlentities($d['title']); ?></a>
- </dd>
- <?php endforeach; endif; else: echo "" ;endif; ?>
- </dl>
- <?php endif; ?>
- </dd>
- <?php endforeach; endif; else: echo "" ;endif; ?>
- </dl>
- <?php endif; ?>
- </dd>
- <?php endforeach; endif; else: echo "" ;endif; ?>
- </dl>
- <?php endif; ?>
- </li>
- <?php endforeach; endif; else: echo "" ;endif; ?>
- </ul>
- </div>
- </div>
- <!-- 页面标签 -->
- <div id="pageTabs" class="page-tabs">
- <div class="layui-icon gg-tabs-control layui-icon-prev" gg-event="tabRollLeft"></div>
- <div class="layui-icon gg-tabs-control layui-icon-next" gg-event="tabRollRight"></div>
- <div class="layui-icon gg-tabs-control layui-icon-down">
- <ul class="layui-nav gg-tabs-select">
- <li class="layui-nav-item">
- <a href="javascript:;"></a>
- <dl class="layui-nav-child layui-anim-fadein">
- <dd gg-event="closeThisTabs"><a href="javascript:;">关闭当前</a></dd>
- <dd gg-event="closeOtherTabs"><a href="javascript:;">关闭其它</a></dd>
- <dd gg-event="closeAllTabs"><a href="javascript:;">关闭全部</a></dd>
- </dl>
- </li>
- </ul>
- </div>
- <div class="layui-tab gg-admin-tab" lay-unauto lay-allowClose="true" lay-filter="gg-admin-tab">
- <ul class="layui-tab-title" id="pageTabUl">
- <li lay-id="0" lay-attr="view/home/index.html" class="layui-this"><i
- class="layui-icon ri-home-smile-line"></i></li>
- </ul>
- </div>
- </div>
- <!-- 主体内容 -->
- <div class="layui-body" id="GouguAppBody">
- <div class="gg-tab-page layui-show" id="tabItem0">
- <iframe id="0" data-frameid="0" name="myiframe"
- src="<?php if($type==0): ?><?php echo url('/admin/index/main'); elseif($type==2): ?><?php echo url('/admin/index/main_company'); ?><?php endif; ?>"
- frameborder="0" align="left" width="100%" height="100%" scrolling="yes"></iframe>
- </div>
- </div>
- <!-- 辅助元素,用于移动设备下遮罩 -->
- <div class="gg-body-shade" gg-event="shade"></div>
- </div>
- </div>
- </div>
- <!-- /主体 -->
- <!-- /主体 -->
- <!-- 底部 -->
-
- <div class="footer">
- 逸管工程项目管理系统 © www.yiguanfep.com
- <img src="/static/home/images/police.png" alt="" style="width:14.5px;height:16px;">
- <a href="https://beian.mps.gov.cn/#/query/websearch?code=45030202000160 " rel="\"noreferrer'target=\”blank\"" onclick="window.open(this.href); return false;">桂公网安备45030202000160号</a>
- <a href="https://beian.miit.gov.cn/#/Integrated/index" onclick="window.open(this.href); return false;">桂ICP备17000971号</a>
- </div>
-
-
- <!-- /底部 -->
-
- <!-- 脚本 -->
-
- <script>
- const moduleInit = ['tool', 'admin'];
- function gouguInit() {
- layui.dropdown.render({
- elem: '#theme',
- trigger: 'mousedown',
- align: 'center',
- data: [{
- title: '经典黑',
- theme: 'black'
- }, {
- title: '简约白',
- theme: 'white'
- }, {
- title: '海军蓝',
- theme: 'blue'
- }],
- click: function (data, othis) {
- console.log(othis)
- $.ajax({
- url: "/admin/index/set_theme",
- data: {
- 'theme': data.theme
- },
- success: function (e) {
- layer.msg(e.msg);
- if (e.code == 0) {
- setTimeout(function () {
- parent.location.reload();
- }, 1000)
- }
- }
- })
- }
- });
- window.showhongdian = function () {
- if($("a.layui-this").parent().parent().children().find('.hongdian').length == 1){
- // console.log($("a.layui-this").parent().parent().parent());
- $("a.layui-this").parent().parent().parent().find(".hongdian").css('display','none')
- }
- $('.layui-this').find('.hongdian').css('display','none')
- }
- var a = $('#menuList').find('a');
- for (let i = 0; i < a.length; i++) {
- if (a[i].dataset.red == 1) {
- a[i].innerHTML += ' <span class="layui-badge-dot hongdian"></span>'
- }
- }
- $('#GouguApp').on("click", '[gg-event="logout"]', function () {
- layer.confirm('确认注销登录吗?', {
- icon: 7,
- title: '警告'
- }, function (index) {
- //注销
- $.ajax({
- url: "/admin/login/login_out",
- success: function (e) {
- layer.msg(e.msg);
- if (e.code == 0) {
- setTimeout(function () {
- location.href = "<?php echo url('admin/login/index'); ?>"
- }, 1000)
- }
- }
- })
- layer.close(index);
- });
- });
- const box = document.querySelector('.box');
- function myfun1() {
- var opacity = 0;
- var fadeInterval = setInterval(function () {
- if (opacity < 1) {
- opacity += 0.1;
- box.style.opacity = opacity;
- } else {
- clearInterval(fadeInterval);
- }
- }, 100);
- }
- //不要括号
- // window.onload = myfun1;
- // let i = 15
- // // 2.1 开启定时器
- // let n = setInterval(function myfun2() {
- // i--
- // if (i === 0) {
- // clearInterval(n) // 关闭定时器
- // var opacity = 1;
- // var fadeInterval = setInterval(function () {
- // if (opacity > 0) {
- // opacity -= 0.1;
- // box.style.opacity = opacity;
- // } else {
- // clearInterval(fadeInterval);
- // box.style.display = "none";
- // }
- // }, 100);
- // }
- // }, 1000)
- $("#clean_unread").click(function (){
- $("#read_num").css('display','none');
- })
- //关闭弹窗
- $('#refreshParent').click(()=>{
- let tanchuang = document.getElementById('message');
- tanchuang.style.display = 'none';
- })
- $('#lock').click(()=>{
- let tanchuang = document.getElementById('message');
- tanchuang.style.display = 'none';
- })
- function eliminate(type,lidom){
- let call=function (e){
- //写清除红点的js
- $(lidom[0]).find('.hongdian').css('display','none')
- let diannum = $('.hongdian').length
- let forcount = 0;
- if(diannum !== 0){
- for (let i = 0; i < diannum ; i++){
- let display = $('.hongdian')[i];
- console.log($(display).css('display'))
- if($(display).css('display') !== 'none'){
- forcount++
- }
- }
- }
- if(diannum == 0 || forcount == 0){
- parent.layui.pageTable.reloadData({
- done: function () {
- parent.hongdianselect()
- }
- })
- }
- }
- tool.post("/admin/project.api/eliminate", {type: type},call)
- }
- }
- </script>
- <!-- /脚本 -->
-
- <!-- <script src="/static/assets/layui/layui.js"></script> -->
- <script src="/static/assets/layui/layui.js"></script>
- <script src="/static/assets/third_party/echart/echarts.min.js"></script>
- <script src="/static/assets/gougu/gouguInit.js"></script>
- <script src="https://unpkg.com/pinyin-pro"></script>
- <script>
-
- var { pinyin } = pinyinPro;
- </script>
-
-
- <!-- 统计代码 -->
-
- <!-- /统计代码 -->
- </body>
- </html>
|