order.hbs 1.64 KB
<div class="order-page yoho-page">
    {{# order}}
        <ul id="order-nav" class="order-nav clearfix">
            {{#each navs}}
                <li class="tap-hightlight {{#if active}}active{{/if}}" data-type="{{typeId}}">
                    <a class="nav-tap" data-url="{{url}}">{{name}}</a>
                </li>
            {{/each}}
        </ul>

        <div id="order-container" class="order-container">
            {{#if @root.walkwayUrl}}
                <div class="no-order">
                    <div class="icon"></div>
                    <span>你还没有订单!</span>
                    <a class="walk-way" href="{{@root.walkwayUrl}}">随便逛逛</a>
                </div>
            {{^}}
                <div class="firstscreen-orders">
                    {{#each @root.firstPageOrdersList}}
                        {{> order/order}}
                    {{/each}}
                </div>
            {{/if}}


            {{#each navs}}
                <div class="orders{{#unless active}} hide{{/unless}}"></div>
            {{/each}}
        </div>

        <div class="reason-mask">
            <div class="reason-box" >
                <div class="box-head"><span class="box-cmp">完成</span></div>
                <div class="swiper-container box-main">

                    <ul class="swiper-wrapper">
                        {{#cancelReason}}
                        <li class="swiper-slide" data-reason-id="{{id}}"><span >{{reason}}</span></li>
                        {{/cancelReason}}
                    </ul>
                    <div class="active-mask"></div>
                </div>
            </div>
        </div>
    {{/ order}}
</div>