REAPI/app/setting/view/stat/index.html
2024-09-29 15:43:18 +08:00

57 lines
2.6 KiB
HTML

{extend name="../../admin/view/main"}
{block name="content"}
<div class="layui-tab layui-tab-card think-bg-white table-block">
<div class="layui-tab-content think-box-shadow table-block table-block">
{include file='stat/index_search'}
{include file='stat/statement'}
<table class="layui-table margin-top-10" lay-skin="line">
{notempty name='list'}
<thead>
<tr>
<th class='text-left nowrap' width="">日期</th>
<th class='text-left nowrap' width="">总金额</th>
<th class='text-left nowrap' width="">成功金额</th>
<th class='text-left nowrap' width="">成功率</th>
<th class='text-left nowrap' width="">失败金额</th>
<th class='text-left nowrap' width="">商户成功金额</th>
<th class='text-left nowrap' width="">渠道成功金额</th>
<th class='text-left nowrap' width="">利润</th>
<th class='text-left nowrap' width="">平均成本</th>
<th class='text-left nowrap'>统计时间</th>
<th></th>
</tr>
</thead>
{/notempty}
<tbody>
{foreach $list as $key=>$vo}
<tr>
<td class='text-left nowrap'>{$vo.day|default=''}</td>
<td class='text-left nowrap'>{$vo.total|default=''}</td>
<td class='text-left nowrap'>{$vo.success|default=''}</td>
<td class='text-left nowrap'>{$vo.success_lv|default=''}</td>
<td class='text-left nowrap'>{$vo.fail|default=''}</td>
<td class='text-left nowrap'>{$vo.actual_cash|default=''}</td>
<td class='text-left nowrap'>{$vo.product_cash|default=''}</td>
<td class='text-left nowrap'><span style="color:blue">{$vo.profit|default=''}</span></td>
<td class='text-left nowrap'><span style="color:red">{$vo.chengben|default=''}</span></td>
<td class='text-left nowrap'>{$vo.create_at|default=''}</td>
<td class='text-left nowrap'>
<a data-open="{:url('info')}?id={$vo.id}" data-title="【{$vo.day}】数据详情" class="layui-btn layui-btn-xs layui-btn-danger">查看详情</a>
</td>
</tr>
{/foreach}
</tbody>
</table>
{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
</div>
<style type="text/css">
.layui-badge {
line-height: 19px;
box-shadow: 0 0px 0px 0 rgba(0,0,0,0.15);
}
</style>
{/block}