{extend name='admin@main'}
{block name="content"}
<div class="think-box-shadow">
    <div style="background-color: #e3e3c7 ;height: 50px;overflow: hidden">
        <p style="line-height: 50px;font-size: 16px">&nbsp;&nbsp;
            总支付单数:<span style='color:red'>{$order_num}</span> ,
            总销售额:<span style='color:red'>{$total_money}</span>
        </p>
    </div>
    {include file='goods_order/index_search'}
    <table class="layui-table margin-top-10" lay-skin="line">
        {notempty name='list'}
        <thead>
        <tr>
            <th class='list-table-check-td think-checkbox'><input data-auto-none data-check-target='.list-check-box' type='checkbox'></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 class="text-left nowrap">支付方式</th>
            <th class="text-left nowrap">下单时间</th>
            <th class="text-left nowrap">支付时间</th>
            <th class="text-left nowrap">操作</th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {foreach $list as $key=>$vo}
        <tr>
            <td class='list-table-check-td think-checkbox'><input class="list-check-box" value='{$vo.id}' type='checkbox'></td>
            <td class='text-left nowrap'>{$vo.user_name|default=''}</td>
            <td class='text-left nowrap'>{$vo.phone|default=''}</td>
            <td class='text-left nowrap'>{$vo.pay_price|default=''}</td>
            <td class='text-left nowrap'>{$vo.num|default=''}</td>
            <td class='text-left nowrap'>{$vo.order_no|default=''}</td>
            <td class='text-left nowrap'>{$order_status[$vo.status]}{if $vo.status eq 2}({eq name='vo.cancel_state' value='1'}自动取消{/eq}{eq name='vo.cancel_state' value='2'}手动取消{/eq}){/if}</td>
            <td class='text-left nowrap'>{eq name='vo.pay_type' value='wx'}微信{/eq}{eq name='vo.pay_type' value='zfb'}支付宝{/eq}</td>
            <td class='text-left nowrap'>{$vo.create_at}</td>
            <td class='text-left nowrap'>{$vo.pay_at}</td>

            <td class='text-left nowrap'>
                <a data-title="查看详情" class="layui-btn layui-btn-sm" data-modal='{:url("detail")}?id={$vo.id}'>查看详情</a>
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}