index.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. use common\helpers\Url;
  3. $this->title = '销售分析';
  4. $this->params['breadcrumbs'][] = ['label' => '数据统计'];
  5. $this->params['breadcrumbs'][] = ['label' => $this->title];
  6. ?>
  7. <div class="row">
  8. <div class="col-12">
  9. <div class="box">
  10. <div class="box-header">
  11. <h3 class="box-title"><?= $this->title; ?></h3>
  12. </div>
  13. <div class="box-bod">
  14. <div class="row p-m">
  15. <div class="col-md-12 col-xs-12 m-l">
  16. 近30天下单金额: <?= $orderStat['pay_money'] ?? 0; ?> 元<br>
  17. 近30天下单会员数: <?= $orderStat['member_count'] ?? 0; ?><br>
  18. 近30天下单量: <?= $orderStat['count'] ?? 0; ?><br>
  19. 近30天下单商品数: <?= $orderStat['product_count'] ?? 0; ?><br>
  20. 近30天平均客单价: <?= $orderStat['customer_money'] ?? 0; ?> 元<br>
  21. 近30天平均价格: <?= $orderStat['average_money'] ?? 0; ?> 元
  22. </div>
  23. <div class="col-md-12 col-xs-12">
  24. <?= \common\widgets\echarts\Echarts::widget([
  25. 'config' => [
  26. 'server' => Url::to(['data']),
  27. 'height' => '400px',
  28. ],
  29. 'themeConfig' => [
  30. 'this30Day' => '近30天',
  31. 'thisMonth' => '本月',
  32. 'thisYear' => '本年',
  33. 'lastYear' => '去年',
  34. 'customData' => '自定义区间'
  35. ],
  36. ]) ?>
  37. <!-- /.box -->
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
粤ICP备19079148号