@page "/Home/Main"
@model MainModel
@{
    ViewData["Title"] = "首页";
}
<div class="">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm6 layui-col-md3">
            <div class="layui-card">
                <div class="layui-card-header">
                    设备台数
                    <span class="layui-badge layui-bg-blue layuiadmin-badge">今日活跃</span>
                </div>
                <div class="layui-card-body layuiadmin-card-list">
                    <p class="layuiadmin-big-font">@Model.data.TodayDevActiveCnt</p>
                    <p>
                        总共台数
                        <span class="layuiadmin-span-color">@(Model.data.DevCnt)台</span>
                    </p>
                </div>
            </div>
        </div>
        <div class="layui-col-sm6 layui-col-md3">
            <div class="layui-card">
                <div class="layui-card-header">
                    测量数
                    <span class="layui-badge layui-bg-cyan layuiadmin-badge">今日次数</span>
                </div>
                <div class="layui-card-body layuiadmin-card-list">
                    <p class="layuiadmin-big-font">@Model.data.TodayCount</p>
                    <p>
                        累计测量次数
                        <span class="layuiadmin-span-color">@(Model.data.TotalCount)次</span>
                    </p>
                </div>
            </div>
        </div>
        @*<div class="layui-col-sm6 layui-col-md3">
                <div class="layui-card">
                    <div class="layui-card-header">
                        收入
                        <span class="layui-badge layui-bg-green layuiadmin-badge">年</span>
                    </div>
                    <div class="layui-card-body layuiadmin-card-list">

                        <p class="layuiadmin-big-font">999,666</p>
                        <p>
                            总收入
                            <span class="layuiadmin-span-color">*** <i class="layui-inline layui-icon layui-icon-dollar"></i></span>
                        </p>
                    </div>
                </div>
            </div>*@
        <div class="layui-col-sm6 layui-col-md3">
            <div class="layui-card">
                <div class="layui-card-header">
                    测量重量
                    <span class="layui-badge layui-bg-orange layuiadmin-badge">今日重量</span>
                </div>
                <div class="layui-card-body layuiadmin-card-list">

                    <p class="layuiadmin-big-font">@Model.data.TodayWeight</p>
                    <p>
                       累计重量
                        <span class="layuiadmin-span-color">@(Model.data.TotalWeight)kg</span>
                    </p>
                </div>
            </div>
        </div>
    </div>
</div>