<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:64:"/www/wwwroot/ww.fssy.cc/public/../app/index/view/index/home.html";i:1610033190;}*/ ?>

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title><?php echo $web_config['web_site']; ?> - 6gym.com 6G源码 </title>
    <link rel="stylesheet" href="/static/assets/libs/layui/css/layui.css"/>
    <link rel="stylesheet" href="/static/assets/module/admin.css?v=318"/>
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    <style>
        /** 应用快捷块样式 */
        .console-app-group {
            padding: 16px;
            border-radius: 4px;
            text-align: center;
            background-color: #fff;
            cursor: pointer;
            display: block;
        }

        .console-app-group .console-app-icon {
            width: 32px;
            height: 32px;
            line-height: 32px;
            margin-bottom: 6px;
            display: inline-block;
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
            font-size: 32px;
            color: #69c0ff;
        }

        .console-app-group:hover {
            box-shadow: 0 0 15px rgba(0, 0, 0, .08);
        }

        /** //应用快捷块样式 */

       

        /** 卡片轮播图样式 */
        .admin-carousel .layui-carousel-ind {
            position: absolute;
            top: -41px;
            text-align: right;
        }

        .admin-carousel .layui-carousel-ind ul {
            background: 0 0;
        }

        .admin-carousel .layui-carousel-ind li {
            background-color: #e2e2e2;
        }

        .admin-carousel .layui-carousel-ind li.layui-this {
            background-color: #999;
        }

        /** 广告位轮播图 */
        .admin-news .layui-carousel-ind {
            height: 45px;
        }

        .admin-news a {
            display: block;
            line-height: 70px;
            text-align: center;
        }
        .layui-btn{
            height: 22px;
            line-height: 22px;
        }

        
    </style>
</head>
<body>
<!-- 正文开始 -->
<div class="layui-fluid ew-console-wrapper">
    <div class="layui-row layui-col-space15">
    <div class="layui-col-xs12 layui-col-sm6 layui-col-md3">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12" style="padding-bottom: 0;">
            <div class="layui-row layui-col-space15">
            <div class="layui-col-xs12 layui-col-sm6 layui-col-md12">
         
         <div class="layui-col-xs12">
           <div class="layui-card">
                <div class="layui-card-header">账户信息</div>
                <div class="layui-card-body">
                    <table class="layui-table layui-text">
                        <colgroup>
                            <col width="90">
                            <col>
                        </colgroup>
                        <tbody>
                       
                            <tr>
                                <td>登录商户</td>
                                <td><?php echo $user; ?></td>
                            </tr>
                        <?php if($cate == '1'): ?>  
                            <tr>
                                <td>商户余额</td>
                                <td><?php echo $balance; ?> 元</td>
                            </tr>
                            
                       
                        <tr>
                                <td>商户费率</td>
                                <td><?php echo $pay_sxf; ?>% </td>
                        </tr>   
                        <?php endif; ?>
                        
                        <tr>
                                <td>商户类型</td>
                                <td><?php echo $user_type; ?> </td>
                        </tr> 
                        
                       
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        
         </div>
                <div class="layui-col-xs6 layui-col-sm6">
               
                    <div class="console-app-group" ew-href="<?php echo url('game/game_my'); ?>" ew-title="常用通道">
                        <i class="console-app-icon layui-icon layui-icon-star"
                           style="color: #1fa8af;font-size: 30px;"></i>
                        <div class="console-app-name">常用通道</div>
                    </div>
                </div>
                <div class="layui-col-xs6 layui-col-sm6">
               
                    <div class="console-app-group" ew-href="<?php echo url('game/list'); ?>" ew-title="全部通道">
                        <i class="console-app-icon layui-icon layui-icon-app"
                           style="color: #f3073e;font-size: 30px;"></i>
                        <div class="console-app-name">全部通道</div>
                    </div>
                </div>
                
                <div class="layui-col-xs6 layui-col-sm6">
                    <div class="console-app-group" ew-href="<?php echo url('land/list'); ?>" ew-title="账户管理">
                        <i class="console-app-icon layui-icon layui-icon-user"
                           style="font-size: 26px;padding-top: 3px;margin-right: 6px;"></i>
                        <div class="console-app-name">账号管理</div>
                    </div>
                </div>
                
                <div class="layui-col-xs6 layui-col-sm6">
                    <div class="console-app-group"  ew-href="<?php echo url('orders/list'); ?>" ew-title="订单列表">
                        <i class="console-app-icon layui-icon layui-icon-list" style="color: #95de64;"></i>
                        <div class="console-app-name">订单列表</div>
                    </div>
                </div>
                
            </div>
        </div>

      </div>
   

  </div> 
    <div class="layui-col-xs12 layui-col-sm6 layui-col-md9">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-xs12 layui-col-sm6 layui-col-md6">
            <div class="layui-card">
                <div class="layui-card-header">
                    今日收入<span class="layui-badge layui-badge-green pull-right">元</span>
                </div>
                <div class="layui-card-body">
                    <p  style="color:red" class="lay-big-font"><?php echo $money['jr']; ?></p>
                    <p>昨日收入<span class="pull-right"><?php echo $money['zr']; ?> 元</span></p>
                </div>
            </div>
        </div>
        <div class="layui-col-xs12 layui-col-sm6 layui-col-md6">
            <div class="layui-card">
                <div class="layui-card-header">
                    今日订单<span class="layui-badge layui-badge-blue pull-right">笔</span>
                </div>
                <div class="layui-card-body">
                    <p style="color:red" class="lay-big-font"><?php echo $count['jr']; ?> </p>
                    <p>昨日订单<span class="pull-right"><?php echo $count['zr']; ?> 笔</span></p>
                </div>
            </div>
        </div>
       
         </div>   
    </div>
    <div class="layui-col-xs12 layui-col-sm6 layui-col-md9">
         <div class="layui-row layui-col-space15">
         <div class="layui-col-xs12 layui-col-sm6 layui-col-md5">
         <div class="layui-card">
                        <div class="layui-card-header">公告</div>
                        <div class="layui-card-body">
                            <table class="layui-table" lay-skin="line">
                                <colgroup>
                                   
                                    <col>
                                     <col width="40">
                                </colgroup>
                               
                                <tbody>
                                 <?php if(is_array($news_data) || $news_data instanceof \think\Collection || $news_data instanceof \think\Paginator): $i = 0; $__LIST__ = $news_data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                 <tr>
                                   
                                    <td><span class="layui-text"><a href="<?php echo url('index/news'); ?>?id=<?php echo $vo['id']; ?>" target="_blank" <?php if($vo['zd'] == '1'): ?> style="color:red"<?php endif; ?>><?php echo $vo['title']; ?></a></span></td>
                                    
                                </tr>
                                <?php endforeach; endif; else: echo "" ;endif; ?>
                               
                                
                                </tbody>
                            </table>
                        </div>
                    </div>
         </div>
         <div class="layui-col-xs12 layui-col-sm6 layui-col-md7">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-tab layui-tab-brief" lay-filter="tabZZT">
                        <ul class="layui-tab-title">
                            <li class="layui-this">订单数量</li>
                            <li>成交金额</li>
                        </ul>
                        <div class="layui-tab-content">
                            <div class="layui-tab-item layui-show">
                                <div class="layui-row layui-col-space30">
                                    <div class="layui-col-xs12 layui-col-md12">
                                        <div id="xse" style="height: 300px;margin-top: 20px;"></div>
                                    </div>
                                   
                                </div>
                            </div>
                            <div class="layui-tab-item">
                                <div class="layui-row layui-col-space30">
                                    <div class="layui-col-xs12 layui-col-md12">
                                        <div id="fwl" style="height: 300px;margin-top: 20px;"></div>
                                    </div>
                                    
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        </div>
         </div>
         </div>  
    </div>
   

<!-- js部分 -->
<script type="text/javascript" src="/static/assets/libs/layui/layui.js"></script>
<script type="text/javascript" src="/static/assets/js/common.js?v=318"></script>
<script src="/static/assets/libs/echarts/echarts.min.js"></script>
<script src="/static/assets/libs/echarts/echartsTheme.js"></script>
<script>
    layui.use(['layer', 'carousel', 'element','admin','form','formX','laytpl','notice'], function () {
        var $ = layui.jquery;
        var layer = layui.layer;
        var carousel = layui.carousel;
        var device = layui.device();
        var element = layui.element;
        var admin = layui.admin;
        var form = layui.form;
        var formX = layui.formX;
        var laytpl = layui.laytpl;
        var notice = layui.notice;
        // 渲染轮播
        carousel.render({
            elem: '#workplaceNewsCarousel',
            width: '100%',
            height: '70px',
            arrow: 'none',
            autoplay: true,
            trigger: device.ios || device.android ? 'click' : 'hover',
            anim: 'fade'
        });
        
        // 渲染图表
        var myCharts3 = echarts.init(document.getElementById('xse'), myEchartsTheme);
        var option3 = {
            title: {
                text: '成交订单数（笔）',
                textStyle: {
                    color: '#000',
                    fontSize: 14
                }
            },
            tooltip: {},
            grid: {
                left: '0',
                right: '0',
                bottom: '0',
                containLabel: true
            },
            xAxis: {
                data: eval(<?php echo $time; ?>)
            },
            yAxis: {},
            series: [{
                type: 'bar',
                data: eval(<?php echo $biao_count; ?>),
                barMaxWidth: 45
            }]
        };
        myCharts3.setOption(option3);

        // 渲染图表
        var myCharts4 = echarts.init(document.getElementById('fwl'), myEchartsTheme);
        var option4 = {
            title: {
                text: '成交订单金额（元）',
                textStyle: {
                    color: '#000',
                    fontSize: 14
                }
            },
            tooltip: {},
            grid: {
                left: '0',
                right: '0',
                bottom: '0',
                containLabel: true
            },
            xAxis: {
                data: eval(<?php echo $time; ?>)
            },
            yAxis: {},
            series: [{
                type: 'bar',
                data: eval(<?php echo $biao_money; ?>),
                barMaxWidth: 45
            }]
        };
        myCharts4.setOption(option4);
        // 切换选项卡重新渲染
        element.on('tab(tabZZT)', function (data) {
            if (data.index == 0) {
                myCharts3.resize();
            } else {
                myCharts4.resize();
            }
        });

        // 窗口大小改变事件
        window.onresize = function () {
            myCharts3.resize();
            myCharts4.resize();
        };
       
       
    });
</script>


</body>
</html>
