table-body.hbs 2.2 KB
<div class="table table-body">
{{#if orderList}}
{{#orderList}}
    <div class="order">
        <ul class="header">
            <li class="content">下单时间:{{createTime}}</li>
            <li class="content">订单编号:{{orderCode}}</li>
            {{#if showMobile}}
            <li class="content">手机订单</li>
            {{/if}}
        </ul>
        <div class="table-body">
            <div class="goods-container special-border">
                {{#orderGoods}}
                <div class="good-info {{#if @last}}last{{/if}}">
                    <img src="{{image goodsImage 65 90}}">
                    <div class="detail">
                        <p class="with-bottom-space">{{productName}}</p>
                        <span class="with-space">颜色:{{colorName}}</span>
                        <span>尺码:
                            <span class="bold">{{sizeName}}</span>
                        </span>
                        <p class="bold">{{> icon/error-round}}{{buyNumber}}</p>

                    </div>
                </div>
                <div class="price bold">
                    <p class="{{#if @last}}last{{/if}}">{{goodsAmount}}</p>
                </div>
                {{/orderGoods}}
            </div>
            <div class="common-column special-border">
                <p class="bold">{{amount}}</p>
                <p class="subtext">{{paymentTypeStr}}</p>
            </div>
            <div class="common-column special-border">
                <p class="bold">{{statusStr}}</p>
                <p class="subtext">查看详情</p>
            </div>
            <div class="common-column special-border">
                {{#if payLeftTime}}
                <p class="left-time">剩余{{payLeftTime}}</p>
                {{/if}}
                {{#if showPayButton}}
                <button>立即付款</button>
                {{/if}}
                {{#if showEditOption}}
                <p class="subtext">修改订单</p>
                <p class="subtext no-space">删除订单</p>
                {{^}}
                <p class="subtext">查看详情</p>
                {{/if}}
            </div>
        </div>
    </div>
{{/orderList}}
{{^}}
数据为空
{{/if}}
</div>