index.hbs 3.55 KB
<div class="default-me-page me-page yoho-page clearfix">
    {{> path}}
    {{> navigation}}

    {{# me}}
    <div class="me-main">
        {{# content}}
        {{#if messages}}
        <p class="message-tip">
            消息提示:
            {{# messages}}
            <a href="{{href}}">{{name}}</a>
            <b id="{{id}}">({{count}})</b>
            {{/ messages}}

            <span id="close-message" class="close iconfont">&#xe60d;</span>
        </p>
        {{/if}}

        <input type="hidden" name="_csrf" value="{{@root.csrfToken}}">

        {{# latestOrders}}
        <div class="latest-orders block">
            <h2 class="title">
                <a class="more-orders more" href="{{more}}">
                    更多订单
                </a>
            </h2>

            {{!--防诈骗提示--}}
            {{> swindle-info}}

            {{> home/orders/order-block}}
        </div>
        {{/ latestOrders}}
        <div class="brands block" id="home-brands-box">
        </div>
        <div class="new-arrival block" id="home-new-box">
        </div>
        {{/ content}}
    </div>
    <!--recommend-for-you-->
    <div class="recommend block" id="home-recommend-box">
    </div>
    <!--recommend-for-you-->
    <div class="ho-btm">
        {{{banner}}}
        {{> help-us}}
    </div>
    {{/ me}}
    <script type="text/html" id="home-brands-tpl">
        <h2 class="title">
            <a class="more-orders more" href="\{{more}}">
                更多品牌
            </a>
        </h2>
        <ul class="clearfix">
            \{{# brands}}
                <li>
                    <a href="\{{href}}">
                        <img class="brand-logo" src="\{{logo}}">
                        <span class="brand-name">\{{name}}</span>
                    </a>
                </li>
            \{{/ brands}}
        </ul>
    </script>
    <script type="text/html" id="home-new-tpl">
        \{{#if newArrive}}
        <h2 class="title">
            <p class="na-pager-wrap">
                <span class="na-pager pre no-visible">
                    <i class="iconfont">&#xe618;</i>
                </span>
                <span class="na-pager next">
                    <i class="iconfont">&#xe619;</i>
                </span>
            </p>
        </h2>
        <ul class="clearfix">
            \{{# newArrive}}
                <li>
                    <a href="\{{href}}">
                        <img class="thumb" src="\{{thumb}}">
                        <p class="name">\{{name}}</p>
                        <span class="price">¥\{{price}}</span>
                    </a>
                </li>
            \{{/ newArrive}}
        </ul>
        \{{/if}}
    </script>
    <script type="text/html" id="home-recommend-tpl">
        \{{#if recommend}}
        <h2 class="title">
            <p class="na-pager-wrap">
                <span class="rc-pager pre no-visible">
                    <i class="iconfont">&#xe618;</i>
                </span>
                <span class="rc-pager next">
                    <i class="iconfont">&#xe619;</i>
                </span>
            </p>
        </h2>
        <ul class="clearfix">
            \{{# recommend}}
                <li>
                    <a href="\{{href}}" data-id='\{{productId}}' target="_blank">
                        <img class="thumb" src="\{{thumb}}">
                        <p class="name">\{{name}}</p>
                        <span class="price">¥\{{price}}</span>
                    </a>
                </li>
            \{{/ recommend}}
        </ul>
        \{{/if}}
    </script>
</div>