feat: dashboard add platform order trend 7d
This commit is contained in:
@@ -82,8 +82,36 @@
|
||||
<div class="two-col mb-20" data-role="analysis-skeleton">
|
||||
<div class="card">
|
||||
<h3 class="mt-0">趋势</h3>
|
||||
<div class="muted">(占位)后续接入:平台订单金额/笔数趋势、续费转化、同步成功率等。</div>
|
||||
<div class="muted muted-xs mt-10">说明:当前阶段先对齐 Ant Design Pro Analysis 的版式骨架,聚合指标后续分步接入。</div>
|
||||
<div class="muted">近7天平台订单(按天)</div>
|
||||
|
||||
@php
|
||||
$trendRows = (array) ($platformOrderTrend7d ?? []);
|
||||
@endphp
|
||||
|
||||
<table class="mt-10" data-role="platform-order-trend-7d">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>日期</th>
|
||||
<th>订单数</th>
|
||||
<th>已付金额</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@forelse($trendRows as $row)
|
||||
<tr>
|
||||
<td>{{ (string) ($row['date'] ?? '') }}</td>
|
||||
<td>{{ (int) ($row['count'] ?? 0) }}</td>
|
||||
<td>¥{{ number_format((float) ($row['paid_sum'] ?? 0), 2) }}</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td colspan="3" class="muted">暂无数据</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="muted muted-xs mt-10">说明:先接入最小可用趋势数据;后续再补时间范围切换、维度切换与可视化图表。</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<h3 class="mt-0">排行</h3>
|
||||
|
||||
Reference in New Issue
Block a user