order-block.phtml 2.38 KB
<div class="me-orders">
    <p class="order-table-header clearfix">
        <span class="info">商品信息</span>
        <span class="price">单价(元)</span>
        <span class="count">数量</span>
        <span class="pay">实付款(元)</span>
        <span class="order-status">订单状态</span>
        <span class="operation">操作</span>
    </p>

    {{# orders}}
        <div class="order">
            <p class="order-title">
                订单编号:{{orderNum}}
                <span class="right">下单时间:{{orderTime}}</span>
            </p>
            <ul>
                {{# goods}}
                    <li>
                        <div class="info clearfix">
                            <a href="{{href}}">
                                <img class="thumb" src="{{thumb}}">
                            </a>
                            <a class="name" href="{{href}}">{{name}}</a>
                            <span class="color-size">
                                {{#if color}}
                                    <b title="{{color}}">颜色:{{color}}&nbsp;&nbsp;</b>
                                {{/if}}

                                {{#if size}}
                                    尺码:{{size}}
                                {{/if}}
                            </span>
                        </div>
                        <div class="price">{{price}}</div>
                        <div class="count">{{count}}</div>
                        <div class="pay">
                            {{pay}}
                            <span class="pay-tip">(含快递{{fregit}}元)</span>
                        </div>
                        <div class="order-status">
                            {{#if complete}}
                                <span class="complete">订单完成</span>
                            {{/if}}

                            {{#if cancel}}
                                <span class="cancel">订单已取消</span>
                            {{/if}}
                        </div>
                        <div class="operation">
                            {{# operation}}
                                <a class="op-item" href="{{href}}">{{name}}</a>
                            {{/ operation}}
                        </div>
                    </li>
                {{/ goods}}
            </ul>
        </div>
    {{/ orders}}
</div>