{foreach $order as $rs}
<table class="pure-table">
    <thead>
        <tr class="pure-table-title">
            <td>{$rs.create_time|date="Y-m-d H:i:s"} 订单号 : <i class="iconfont icon-wodedingdan2"></i>{$rs.order_no}</td>
            <td class="fn-tar">
                {if $rs.is_del ==1}
                    <span class="badge">已删除</span>
                {else}
                    {if $rs.paid_at}
                        {if $rs.express_status}
                            <span class="badge bg-green">已发货</span>
                        {else}
                            <span class="badge bg-blue">待发货</span>    
                        {/if}
                    {else}
                        <span class="badge bg-red">待付款</span>
                    {/if}
                {/if}
            </td>
        </tr>
        <tr>
            <td>收货人：{$rs.express_name}&nbsp;/&nbsp;{$rs.express_phone}<br />收货地址：{$rs.express_address}</td>
            <td colspan="2">{if $rs.express_status}物流公司：{$rs.express_company}<br />{if $rs.express_no}快递单号：<a href="https://www.baidu.com/s?wd={$rs.express_no}" target="_blank" class="badge">{$rs.express_no}</a>{/if}{/if}</td>
        </tr>
        <tr><th>商品</th><th class="w180 fn-tac">小计</th></tr>
    </thead>
    <tbody>
        <tr>
            <td>
                <?php $shop = json_decode($rs->shop_cache,true);?>
                <div class="fn-clear order">
                    <div class="img fn-left"><img src="{$shop.img}?x-oss-process=style/80" /></div>
                    <div class="info">{$shop.name}<br ><span class="gray">{$shop.note}</span></div>
                    <div class="number fn-right">￥{$shop.points} x 1</div>
                </div>
            </td>
            <td class="fn-tac">{$rs.points}</td>
        </tr>
    </tbody>
</table>
{/foreach}
<style type="text/css">
    .order {border-bottom: 1px #e9ecf3 solid;display: flex;}
    .order:last-child{border-bottom:none}
    .order div {margin: 5px;}
    .order .img {width: 80px;height: 80px;overflow: hidden;border: 1px dotted #e9ecf3;padding: 2px;}
    .order .img img {width: 78px;}
    .order .info {line-height: 25px;margin-top: 10px;display: block;flex: 1px;}
    .order .info .gray {color: #9e9e9e;font-size: 12px;}
    .order .number {line-height: 50px;margin: 10px 20px;}
</style>