latest-walk.hbs 2.62 KB
{{#unless @root.pc.product.removeRecentView}}
    <div class="bottom-tab">
        {{#if latestWalk}}
            <span class="bottom-cur tab-item">最近预览</span>
        {{/if}}
        {{#if goodsInfo.recommendKeywords}}
            <span class="about tab-item">相关推荐</span>
        {{/if}}

        {{# latestWalkExtra}}
            <span class="tab-item extra-tab-item" data-key="{{@index}}">{{extraTabName}}</span>
        {{/ latestWalkExtra}}
        <div class="bottom-line"></div>
    </div>
    <div class="bottom-tab-cont">
        {{#if latestWalk}}
            <div class="latest-walk-area">
                <input id="latest-walk-count" type="hidden" value="{{latestWalk}}">
                <div class="latest-walk">
                    <div id="latest-walk-goods" class="goods clearfix"></div>
                    <p class="null-data">
                        无最近浏览的商品
                    </p>
                </div>

                {{> product/latest-walk-tpl}}

                <div class="lazy-load-object">
                    <textarea class="latest-walk-datalazyload" style="visibility: hidden;">
                        <script> fetchLatestWalk(); </script>
                    </textarea>
                </div>
            </div>
        {{/if}}

        {{#if goodsInfo.recommendKeywords}}
            <div class="recommend-keywords about">
                <p>
                    {{# goodsInfo.recommendKeywords}}
                        <a href="{{url}}" title="{{keyword}}" target="_blank" class="keyword">{{keyword}}</a>
                    {{/ goodsInfo.recommendKeywords}}
                </p>
            </div>
        {{/if}}

        {{# latestWalkExtra}}
            <div class="latest-walk-extra-area extra-area-{{@index}}">
                <div class="goods clearfix">
                    {{# extraGoodsList}}
                        <div class="good">
                            <a href="{{url}}" target="_blank" title="{{product_name}}">
                                <img class="lazy" data-original="{{image2 thumb w=280 h=382}}" alt="{{product_name}}" />
                            </a>
                            <a class="name" href="{{url}}" target="_blank">{{product_name}}</a>
                            <p class="price">
                                <span class="market-price">¥{{round market_price 2}}</span>
                                <span class="sale-price">¥{{round sales_price 2}}</span>
                            </p>
                        </div>
                    {{/ extraGoodsList}}
                </div>
            </div>
        {{/ latestWalkExtra}}
    </div>
{{/unless}}