<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>设备总览</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="../lib/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
    <link rel="stylesheet" href="../css/public.css" media="all">
    <style>
        .top-panel {
            border: 1px solid #eceff9;
            border-radius: 5px;
            text-align: center;
        }
        .top-panel > .layui-card-body{
            height: 60px;
        }
        .top-panel-number{
            line-height:60px;
            font-size: 30px;
            border-right:1px solid #eceff9;
        }
        .top-panel-tips{
            line-height:30px;
            font-size: 12px
        }
    </style>
</head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main welcome">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-xs12 layui-col-md6">

                <div class="layui-card top-panel">
                    <div class="layui-card-header">设备数量</div>
                    <div class="layui-card-body">
                        <div class="layui-row layui-col-space5">
                            <div class="layui-col-xs9 layui-col-md8 top-panel-number">
                                <a style="color: #1aa094">2,020</a><br>
                            </div>
                            <div class="layui-col-xs3 layui-col-md4">
                                装机量 <a style="color: #bd3004">2040</a><br>
                                在线数 <a style="color: #C0C0C0">2020</a>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
            <div class="layui-col-xs12 layui-col-md6">

                <div class="layui-card top-panel">
                    <div class="layui-card-header">告警统计</div>
                    <div class="layui-card-body">
                        <div class="layui-row layui-col-space5">
                            <div class="layui-col-xs9 layui-col-md8 top-panel-number">
                                <a style="color: #1aa094">20</a><br>
                            </div>
                            <div class="layui-col-xs3 layui-col-md4">
                                严重 <a style="color: #bd3004">5</a><br>
                                一般 <a style="color: #C0C0C0">20</a>
                            </div>
                        </div>
                    </div>
                </div>

            </div>

        </div>

    </div>
    <div id="map-container" style="height: 85vh;weight :100vw"></div>
</div>


<script type="text/javascript">
    function initialize() {
        var map = new BMapGL.Map("map-container");            // 创建Map实例
        var point = new BMapGL.Point(116.404, 39.915); // 创建点坐标
        map.centerAndZoom(point, 15);
        map.enableScrollWheelZoom();
    }

    function loadScript() {
        var script = document.createElement("script");
        script.src = "https://api.map.baidu.com/api?v=1.0&type=webgl&ak=4ef46ba62e8fba67b53a0becca4d05da&callback=initialize";
        document.body.appendChild(script);
    }

    loadScript();
</script>

</body>
</html>