77 lines
2.9 KiB
HTML
77 lines
2.9 KiB
HTML
{extend name="../../admin/view/main"}
|
|
|
|
|
|
{block name='content'}
|
|
<script>
|
|
var layer = layui.layer;
|
|
|
|
function show(o, id) {
|
|
var html = $('#' + id).html();
|
|
layer.alert(html, {area: '800px',shadeClose:true});
|
|
}
|
|
|
|
</script>
|
|
<div class="think-box-shadow table-block">
|
|
|
|
{include file='account/index_search'}
|
|
<table class="layui-table margin-top-10" lay-skin="line">
|
|
{notempty name='list'}
|
|
<thead>
|
|
<tr>
|
|
<th class="text-left nowrap">日期</th>
|
|
<th class="text-left nowrap">商户</th>
|
|
<th class="text-left nowrap">渠道</th>
|
|
<th class="text-left nowrap">公户</th>
|
|
<th class="text-left nowrap">合计</th>
|
|
<th class="text-left nowrap">利润</th>
|
|
<th class='text-left nowrap'>统计时间</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
{/notempty}
|
|
<tbody>
|
|
{foreach $list as $key=>$vo}
|
|
<tr data-dbclick>
|
|
<td class='text-left nowrap'>{$vo.day|default=''}</td>
|
|
<td class='text-left nowrap'>
|
|
<a href="javascript:show($(this), 'merchant_total_{$vo.id}')" style="color:green">{$vo.merchant_total|default=''}</a>
|
|
<div id="merchant_total_{$vo.id}" style="display: none;">
|
|
{$vo.merchant|raw}
|
|
</div>
|
|
</td>
|
|
<td class='text-left nowrap'>
|
|
<a href="javascript:show($(this), 'channel_total_{$vo.id}')" style="color:green">{$vo.channel_total|default=''}</a>
|
|
<div id="channel_total_{$vo.id}" style="display: none;">
|
|
{$vo.channel|raw}
|
|
</div>
|
|
</td>
|
|
<td class='text-left nowrap'>
|
|
<a href="javascript:show($(this), 'account_total_{$vo.id}')" style="color:green">{$vo.account_total|default=''}</a>
|
|
<div id="account_total_{$vo.id}" style="display: none;">
|
|
{$vo.account|raw}
|
|
</div>
|
|
</td>
|
|
<td class='text-left nowrap'>
|
|
{$vo.total|default=''}
|
|
</td>
|
|
<td class='text-left nowrap'>
|
|
|
|
{if $vo.profit > 0}
|
|
<span style="color:blue">{$vo.profit|default=''}</span>
|
|
{else}
|
|
<span style="color:red">{$vo.profit|default=''}</span>
|
|
{/if}
|
|
|
|
</td>
|
|
<td class='text-left nowrap'>{$vo.create_at|default=''}</td>
|
|
<td class='text-left nowrap'>
|
|
<a class="layui-btn layui-btn-xs layui-btn-danger" data-confirm="确定要重新统计{$vo.day}的数据吗?" data-action="{:url('reset')}" data-value="day#{$vo.day}" data-csrf="{:systoken('reset')}">重新统计</a>
|
|
</td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
|
|
</div>
|
|
|
|
{/block} |