table-body.hbs 2.32 KB
<div class="table table-body{{#unless orderList}} empty{{/unless}}">
{{#if orderList}}
{{#orderList}}
    <div class="order" data-code="{{orderCode}}">
        {{> order/order-header}}
        <div class="table-body">
            {{> order/goods-box}}
            <div class="common-column special-border">
                <p class="bold">¥{{amount}}</p>
                <p class="subtext">{{paymentTypeStr}}</p>
            </div>
            <div class="common-column special-border status">
                <p class="bold status-str">{{statusStr}}</p>
                <a href="/me/order/detail?code={{orderCode}}">
                    <p class="subtext check-detail">查看详情</p>
                </a>
            </div>
            <div class="common-column special-border operation">
                {{#if showPayButton}}
                <div class="pay-operation">
                    {{#if isOnlinePaid}}
                        <p class="left-time" data-left="{{payLefttime}}"></p>
                        <span class="btn red">立即付款</span>
                    {{/if}}
                    <p class="subtext cancel">取消订单</p>
                </div>
                {{/if}}
                {{#if showEditOption}}
                <p class="subtext">评价晒单</p>
                <p class="subtext">申请退货</p>
                <a href="/return/exchange?code={{orderCode}}&id={{productId}}&skn={{productSkn}}">
                    <p class="subtext">申请换货</p>
                </a>
                <p class="subtext delete">删除订单</p>
                {{/if}}
                {{#if showGetBtn}}
                <span class="btn black">确认收货</span>
                <p class="subtext express">物流进度</p>
                {{/if}}

                <div class="buy-operation{{#unless showBuyBtn}} hide{{/unless}}">
                    <span class="btn black">再次购买</span>
                    <p class="subtext delete">删除订单</p>
                </div>

            </div>
        </div>
    </div>
{{/orderList}}
{{#if paginationOpts}}
{{{ pagination paginationOpts }}}
{{/if}}
{{^}}
<div class="bg"></div>
<div class="msg">
    <p class="msg-zh bold">您暂时还没有订单</p>
    <p class="msg-en">You do not have an order for the time being</p>
    <span class="btn">去购物</span>
</div>
{{/if}}
</div>