471 lines
29 KiB
PHP
Executable File
471 lines
29 KiB
PHP
Executable File
<?php /*a:2:{s:72:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/food/index/index.html";i:1700553054;s:67:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/layout/food.html";i:1700553054;}*/ ?>
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8"/>
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
|
|
|
<title><?php echo htmlentities($app_name); ?>管理后台</title>
|
|
|
|
<meta name="author" content="<?php echo htmlentities($web['name']); ?>">
|
|
|
|
<meta name="keywords" content="<?php echo htmlentities($web['keywords']); ?>">
|
|
|
|
<meta name="description" content="<?php echo htmlentities($web['description']); ?>">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
|
|
<meta name="referrer" content="no-referrer-when-downgrade">
|
|
|
|
<meta http-equiv="Cache-Control" content="no-siteapp"/>
|
|
|
|
<link rel="icon" href="/favicon.png" type="image/x-icon">
|
|
|
|
<link rel="stylesheet" href="/assets/plugins/amazeui/amazeui.css?v=<?php echo htmlentities($version); ?>"/>
|
|
|
|
<link rel="stylesheet" href="/assets/css/hema.app.css?v=<?php echo htmlentities($version); ?>"/>
|
|
|
|
<link rel="stylesheet" href="/addons/upload/css/file.library.css?v=<?php echo htmlentities($version); ?>"/>
|
|
|
|
<script src="/assets/plugins/jquery/jquery.min.js?v=<?php echo htmlentities($version); ?>"></script>
|
|
|
|
<link rel="stylesheet" href="/assets/plugins/iconfont/iconfont.css?v=<?php echo htmlentities($version); ?>">
|
|
|
|
<script src="/assets/plugins/iconfont/iconfont.js?v=<?php echo htmlentities($version); ?>"></script>
|
|
|
|
<script>
|
|
|
|
BASE_URL = "<?php echo isset($base_url) ? $base_url : ''; ?>";
|
|
|
|
STORE_URL = "<?php echo isset($store_url) ? $store_url : ''; ?>";
|
|
|
|
APPLET_ID = "<?php echo isset($applet_id) ? $applet_id : 0; ?>";
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body data-type="">
|
|
|
|
<div class="am-g tpl-g">
|
|
|
|
<!-- 头部 -->
|
|
|
|
<header class="tpl-header">
|
|
|
|
<!-- 右侧内容 -->
|
|
|
|
<div class="tpl-header-fluid">
|
|
|
|
<!-- 侧边切换 -->
|
|
|
|
<div class="am-fl tpl-header-button switch-button">
|
|
|
|
<i class="iconfont iconzhedie"></i>
|
|
|
|
</div>
|
|
|
|
<!-- 刷新页面 -->
|
|
|
|
<div class="am-fl tpl-header-button refresh-button">
|
|
|
|
<i class="iconfont iconshuaxin"></i>
|
|
|
|
</div>
|
|
|
|
<!-- 超链接-->
|
|
|
|
<div class="am-fl tpl-header-navbar">
|
|
|
|
<ul>
|
|
|
|
<!-- 网站首页 -->
|
|
|
|
<li class="am-text-sm">
|
|
|
|
<a href="/">
|
|
|
|
<i class="iconfont iconshouye"></i> 网站首页
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<!-- 其它功能-->
|
|
|
|
<div class="am-fr tpl-header-navbar">
|
|
|
|
<ul>
|
|
|
|
<li class="am-text-sm">
|
|
|
|
<div class="am-dropdown" data-am-dropdown="{boundary: '.am-topbar'}">
|
|
|
|
<div class="am-topbar-btn am-dropdown-toggle" data-am-dropdown-toggle>
|
|
|
|
<img src="<?php echo htmlentities($user['user']['avatar']); ?>" />
|
|
|
|
<?php echo htmlentities($user['user']['user_name']); ?>
|
|
|
|
<span class="am-icon-caret-down"></span>
|
|
|
|
</div>
|
|
|
|
<ul class="am-dropdown-content">
|
|
|
|
<li><a href="/user">用户中心</a></li>
|
|
|
|
<li><a href="/store/<?php echo htmlentities($app_type); ?>.setting/renew">修改密码</a></li>
|
|
|
|
<li><a href="/store/passport/<?php echo htmlentities($logout); ?>?app_type=<?php echo htmlentities($app_type); ?>">安全退出</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</header>
|
|
|
|
<!-- 侧边导航栏 -->
|
|
|
|
<div class="left-sidebar dis-flex">
|
|
|
|
<!-- 一级菜单 -->
|
|
|
|
<ul class="sidebar-nav">
|
|
|
|
<li class="sidebar-nav-heading"><?php echo htmlentities($app_name); ?> <small>V<?php echo htmlentities((isset($version) && ($version !== '')?$version:'1.0.0')); ?></small></li>
|
|
|
|
<?php foreach($menus as $key => $item): ?>
|
|
|
|
<li class="sidebar-nav-link">
|
|
|
|
<a href="<?php echo isset($item['index'])?url($item['index']):'javascript:void(0);'; ?>"
|
|
|
|
class="<?php echo !empty($item['active']) ? 'active' : ''; ?>">
|
|
|
|
<?php if(isset($item['is_svg']) && $item['is_svg'] === true): ?>
|
|
|
|
<svg class="icon sidebar-nav-link-logo" aria-hidden="true">
|
|
|
|
<use xlink:href="#<?php echo htmlentities($item['icon']); ?>"></use>
|
|
|
|
</svg>
|
|
|
|
<?php else: ?>
|
|
|
|
<i class="iconfont sidebar-nav-link-logo <?= $item['icon'] ?>"
|
|
|
|
style="color:<?php echo isset($item['color'])?$item['color']:''; ?>;"></i>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php echo htmlentities($item['name']); ?>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</ul>
|
|
|
|
<!-- 子级菜单-->
|
|
|
|
<?php $second = isset($menus[$group]['submenu']) ? $menus[$group]['submenu'] : []; if(!empty($second)): ?>
|
|
|
|
<ul class="left-sidebar-second">
|
|
|
|
<li class="sidebar-second-title"><?php echo htmlentities($menus[$group]['name']); ?></li>
|
|
|
|
<li class="sidebar-second-item">
|
|
|
|
<?php foreach($second as $item): if(!isset($item['submenu'])): ?>
|
|
|
|
<!-- 二级菜单-->
|
|
|
|
<a href="<?= url($item['index']) ?>" class="<?= $item['active'] ? 'active' : '' ?>">
|
|
|
|
<?= $item['name']; ?>
|
|
|
|
</a>
|
|
|
|
<?php else: ?>
|
|
|
|
<!-- 三级菜单-->
|
|
|
|
<div class="sidebar-third-item">
|
|
|
|
<a href="javascript:void(0);"
|
|
|
|
class="sidebar-nav-sub-title <?php echo !empty($item['active']) ? 'active' : ''; ?>">
|
|
|
|
<i class="iconfont icongengduo"></i>
|
|
|
|
<?php echo htmlentities($item['name']); ?>
|
|
|
|
</a>
|
|
|
|
<ul class="sidebar-third-nav-sub">
|
|
|
|
<?php foreach($item['submenu'] as $third): ?>
|
|
|
|
<li>
|
|
|
|
<a class="<?php echo !empty($third['active']) ? 'active' : ''; ?>"
|
|
|
|
href="<?php echo url($third['index']); ?>">
|
|
|
|
<?php echo htmlentities($third['name']); ?>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
|
|
<!-- 内容区域 start -->
|
|
|
|
<div class="tpl-content-wrapper <?php echo empty($second) ? 'no-sidebar-second' : ''; ?>">
|
|
|
|
|
|
<div class="page-home row-content am-cf">
|
|
<!-- 商城统计 -->
|
|
<div class="row">
|
|
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12 am-margin-bottom">
|
|
<div class="widget am-cf">
|
|
<div class="widget-head am-cf">
|
|
<div class="widget-title">门店统计</div>
|
|
<?php if($user['applet']['shop_mode']['value']==20): ?>
|
|
<div class="widget-screen am-cf">
|
|
<!-- 日期选择器 -->
|
|
<form id="my-form">
|
|
<div class="yxs-date-editor am-fl">
|
|
<select id="shop" name="shop_id">
|
|
<option value="">全部门店统计</option>
|
|
<?php if(isset($shop)): foreach($shop as $item): ?>
|
|
<option value="<?php echo htmlentities($item['shop_id']); ?>" <?php echo $shop_id==$item['shop_id'] ? 'selected' : ''; ?>><?php echo htmlentities($item['shop_name']); ?>
|
|
</option>
|
|
<?php endforeach; ?>
|
|
<?php endif; ?>
|
|
</select>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
<div class="widget-body am-cf">
|
|
<div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
|
|
<div class="widget-card card__blue am-cf">
|
|
<div class="card-header">商品总量</div>
|
|
<div class="card-body">
|
|
<div class="card-value"><?=$count['goods']?></div>
|
|
<div class="card-description">当前商品总数量</div>
|
|
<span class="card-icon iconfont iconshangpinguanli"></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
|
|
<div class="widget-card card__red am-cf">
|
|
<div class="card-header">用户总量</div>
|
|
<div class="card-body">
|
|
<div class="card-value"><?=$count['user']['all']['all']?></div>
|
|
<div class="card-description">当前用户总数量</div>
|
|
<span class="card-icon iconfont iconyonghuguanli"></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
|
|
<div class="widget-card card__violet am-cf">
|
|
<div class="card-header">订单总量</div>
|
|
<div class="card-body">
|
|
<div class="card-value"><?=$count['order']['all']['all']?></div>
|
|
<div class="card-description">付款订单总数量</div>
|
|
<span class="card-icon iconfont icondingdanguanli"></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
|
|
<div class="widget-card card__primary am-cf">
|
|
<div class="card-header">评价总量</div>
|
|
<div class="card-body">
|
|
<div class="card-value"><?=$count['comment']['all']?></div>
|
|
<div class="card-description">订单评价总数量</div>
|
|
<span class="card-icon iconfont iconhaoping"></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 待处理 -->
|
|
<div class="row">
|
|
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12 am-margin-bottom">
|
|
<div class="widget am-cf">
|
|
<div class="widget-head">
|
|
<div class="widget-title">待处理统计</div>
|
|
</div>
|
|
<div class="widget-body am-cf">
|
|
<div class="am-u-sm-2">
|
|
<div class="widget-outline2 dis-flex flex-y-center">
|
|
<div class="outline-right dis-flex flex-dir-column flex-x-between">
|
|
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">待退款数量</div>
|
|
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$count['order']['all']['refund']?></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 订单统计 -->
|
|
<div class="row">
|
|
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12 am-margin-bottom">
|
|
<div class="widget am-cf">
|
|
<div class="widget-head">
|
|
<div class="widget-title">订单统计</div>
|
|
</div>
|
|
<div class="widget-body am-cf">
|
|
<div class="am-u-sm-2">
|
|
<div class="widget-outline dis-flex flex-y-center">
|
|
<div class="outline-right dis-flex flex-dir-column flex-x-between">
|
|
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">今日堂食订单数量</div>
|
|
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$count['order']['today']['tang']?></div>
|
|
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
|
|
昨日:<?=$count['order']['today2']['tang']?></div>
|
|
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">本月堂食订单数量</div>
|
|
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$count['order']['month']['tang']?></div>
|
|
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
|
|
上月:<?=$count['order']['month2']['tang']?></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="am-u-sm-2">
|
|
<div class="widget-outline dis-flex flex-y-center">
|
|
<div class="outline-right dis-flex flex-dir-column flex-x-between">
|
|
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">今日自取订单数量</div>
|
|
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$count['order']['today']['qu']?></div>
|
|
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
|
|
昨日:<?=$count['order']['today2']['qu']?></div>
|
|
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">本月自取订单数量</div>
|
|
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$count['order']['month']['qu']?></div>
|
|
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
|
|
上月:<?=$count['order']['month2']['qu']?></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="am-u-sm-2">
|
|
<div class="widget-outline dis-flex flex-y-center">
|
|
<div class="outline-right dis-flex flex-dir-column flex-x-between">
|
|
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">今日外卖订单数量</div>
|
|
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$count['order']['today']['wai']?></div>
|
|
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
|
|
昨日:<?=$count['order']['today2']['wai']?></div>
|
|
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">本月外卖订单数量</div>
|
|
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$count['order']['month']['wai']?></div>
|
|
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
|
|
上月:<?=$count['order']['month2']['wai']?></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="am-u-sm-2">
|
|
<div class="widget-outline dis-flex flex-y-center">
|
|
<div class="outline-right dis-flex flex-dir-column flex-x-between">
|
|
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">今日退单数量</div>
|
|
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?= $count['order']['today']['refund'] ?></div>
|
|
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
|
|
昨日:<?= $count['order']['today2']['refund'] ?></div>
|
|
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">本月退单数量</div>
|
|
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?= $count['order']['month']['refund'] ?></div>
|
|
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
|
|
上月:<?= $count['order']['month2']['refund'] ?></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="am-u-sm-2 am-u-end">
|
|
<div class="widget-outline dis-flex flex-y-center">
|
|
<div class="outline-right dis-flex flex-dir-column flex-x-between">
|
|
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">今日预约订桌数量</div>
|
|
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$count['pact']['today']?></div>
|
|
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
|
|
昨日:<?=$count['pact']['today2']?></div>
|
|
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">本月预约订桌数量</div>
|
|
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$count['pact']['month']?></div>
|
|
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
|
|
上月:<?=$count['pact']['month2']?></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="widget-head">
|
|
<div class="widget-title">交易统计</div>
|
|
</div>
|
|
<div class="widget-body am-cf">
|
|
<div class="am-u-sm-2">
|
|
<div class="widget-outline dis-flex flex-y-center">
|
|
<div class="outline-right dis-flex flex-dir-column flex-x-between">
|
|
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">今日订单金额</div>
|
|
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?php echo htmlentities($count['order']['today']['money']['order']); ?></div>
|
|
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
|
|
昨日:<?php echo htmlentities($count['order']['today2']['money']['order']); ?></div>
|
|
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">本月订单金额</div>
|
|
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?php echo htmlentities($count['order']['month']['money']['order']); ?></div>
|
|
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
|
|
上月:<?php echo htmlentities($count['order']['month2']['money']['order']); ?></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="am-u-sm-2">
|
|
<div class="widget-outline dis-flex flex-y-center">
|
|
<div class="outline-right dis-flex flex-dir-column flex-x-between">
|
|
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">今日退款金额</div>
|
|
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?php echo htmlentities($count['order']['today']['money']['refund']); ?></div>
|
|
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
|
|
昨日:<?php echo htmlentities($count['order']['today2']['money']['refund']); ?></div>
|
|
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">本月退款金额</div>
|
|
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?php echo htmlentities($count['order']['month']['money']['refund']); ?></div>
|
|
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
|
|
上月:<?php echo htmlentities($count['order']['month2']['money']['refund']); ?></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="am-u-sm-2">
|
|
<div class="widget-outline dis-flex flex-y-center">
|
|
<div class="outline-right dis-flex flex-dir-column flex-x-between">
|
|
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">今日优惠金额</div>
|
|
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?php echo htmlentities($count['order']['today']['money']['activity']); ?></div>
|
|
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
|
|
昨日:<?php echo htmlentities($count['order']['today2']['money']['activity']); ?></div>
|
|
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">本月优惠金额</div>
|
|
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?php echo htmlentities($count['order']['month']['money']['activity']); ?></div>
|
|
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
|
|
上月:<?php echo htmlentities($count['order']['month2']['money']['activity']); ?></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="am-u-sm-2">
|
|
<div class="widget-outline dis-flex flex-y-center">
|
|
<div class="outline-right dis-flex flex-dir-column flex-x-between">
|
|
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">今日充值金额</div>
|
|
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?php echo htmlentities($count['record']['today']['10']); ?></div>
|
|
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
|
|
昨日:<?php echo htmlentities($count['record']['today2']['10']); ?></div>
|
|
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">本月充值金额</div>
|
|
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?php echo htmlentities($count['record']['month']['10']); ?></div>
|
|
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
|
|
上月:<?php echo htmlentities($count['record']['month2']['10']); ?></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="am-u-sm-2 am-u-end">
|
|
<div class="widget-outline dis-flex flex-y-center">
|
|
<div class="outline-right dis-flex flex-dir-column flex-x-between">
|
|
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">今日赠送金额</div>
|
|
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?php echo htmlentities($count['record']['today']['40']); ?></div>
|
|
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
|
|
昨日:<?php echo htmlentities($count['record']['today2']['40']); ?></div>
|
|
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">本月赠送金额</div>
|
|
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?php echo htmlentities($count['record']['month']['40']); ?></div>
|
|
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
|
|
上月:<?php echo htmlentities($count['record']['month2']['40']); ?></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 近七日走势 -->
|
|
<div class="row">
|
|
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12 am-margin-bottom">
|
|
<div class="widget am-cf">
|
|
<div class="widget-head">
|
|
<div class="widget-title">近七日走势</div>
|
|
</div>
|
|
<div class="widget-body am-cf">
|
|
<div id="echarts-trade" class="widget-echarts"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
|
|
<div class="help-block am-text-center">
|
|
<small><?= $web['name']?> 版权所有</small>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script src="/assets/plugins/echarts/echarts.min.js?v=<?php echo htmlentities($version); ?>"></script>
|
|
<script src="/assets/plugins/echarts/echarts-walden.js?v=<?php echo htmlentities($version); ?>"></script>
|
|
<script type="text/javascript">
|
|
$('#shop').change(function(){
|
|
window.location.href='/store/food.index/index/shop_id/'+$('#shop').val();
|
|
});
|
|
|
|
/**
|
|
* 近七日交易走势
|
|
* @type {HTMLElement}
|
|
*/
|
|
var dom = document.getElementById('echarts-trade');
|
|
echarts.init(dom, 'walden').setOption({
|
|
tooltip: {
|
|
trigger: 'axis'
|
|
},
|
|
legend: {
|
|
data: ['订单量', '成交额', '用户量']
|
|
},
|
|
toolbox: {
|
|
show: true,
|
|
showTitle: false,
|
|
feature: {
|
|
mark: {show: true},
|
|
magicType: {show: true, type: ['line', 'bar']}
|
|
}
|
|
},
|
|
calculable: true,
|
|
xAxis: {
|
|
type: 'category',
|
|
boundaryGap: false,
|
|
data: ["<?= date("Y-m-d")?>","<?= date("Y-m-d",strtotime("-1 day"))?>","<?= date("Y-m-d",strtotime("-2 day"))?>","<?= date("Y-m-d",strtotime("-3 day"))?>","<?= date("Y-m-d",strtotime("-4 day"))?>","<?= date("Y-m-d",strtotime("-5 day"))?>","<?= date("Y-m-d",strtotime("-6 day"))?>"]
|
|
},
|
|
yAxis: {
|
|
type: 'value'
|
|
},
|
|
series: [
|
|
{
|
|
name: '订单量',
|
|
type: 'line',
|
|
data: [<?= $count['order']['today']['all'] ?>,<?= $count['order']['today2']['all'] ?>,<?= $count['order']['today3']['all'] ?>,<?= $count['order']['today4']['all'] ?>,<?= $count['order']['today5']['all'] ?>,<?= $count['order']['today6']['all'] ?>,<?= $count['order']['today7']['all'] ?>]
|
|
},
|
|
{
|
|
name: '成交额',
|
|
type: 'line',
|
|
data: [<?= $count['order']['today']['money']['order'] ?>,<?= $count['order']['today2']['money']['order'] ?>,<?= $count['order']['today3']['money']['order'] ?>,<?= $count['order']['today4']['money']['order'] ?>,<?= $count['order']['today5']['money']['order'] ?>,<?= $count['order']['today6']['money']['order'] ?>,<?= $count['order']['today7']['money']['order'] ?>]
|
|
},
|
|
{
|
|
name: '用户量',
|
|
type: 'line',
|
|
data: [<?= $count['user']['today'] ?>,<?= $count['user']['today2'] ?>,<?= $count['user']['today3'] ?>,<?= $count['user']['today4'] ?>,<?= $count['user']['today5'] ?>,<?= $count['user']['today6'] ?>,<?= $count['user']['today7'] ?>]
|
|
}
|
|
]
|
|
}, true);
|
|
</script>
|
|
|
|
</div>
|
|
|
|
<!-- 内容区域 end -->
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<script src="/assets/plugins/layer/layer.js?v=<?php echo htmlentities($version); ?>"></script>
|
|
|
|
<script src="/assets/plugins/jquery/jquery.form.min.js?v=<?php echo htmlentities($version); ?>"></script>
|
|
|
|
<script src="/assets/plugins/amazeui/amazeui.min.js?v=<?php echo htmlentities($version); ?>"></script>
|
|
|
|
<script src="/assets/js/hema.app.js?v=<?php echo htmlentities($version); ?>"></script>
|
|
|
|
<script src="/assets/js/webuploader.html5only.js?v=<?php echo htmlentities($version); ?>"></script>
|
|
|
|
<script src="/assets/js/art-template.js?v=<?php echo htmlentities($version); ?>"></script>
|
|
|
|
<script src="/addons/upload/js/file.library.js?v=<?php echo htmlentities($version); ?>"></script>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|
|
|