detail_good.html 1.03 KB
<!-- 相关推荐 -->
{{#if group}}
<div class="newGood">
    <div class="newGoodTitle tag-box">推荐商品</div>
    <div class="newGoodbody">
    {{#each group}}
        <ul>
        {{#each goods}}
            <li>
                <a href="{{ link}}">
                    {{# top}}
                        {{# is_sale}}
                            <span class="SALE">SALE</span>
                        {{/ is_sale}}
                        {{# is_new}}
                            <span class="NEW">NEW</span>
                        {{/ is_new}}
                    {{/ top}}
                    <div class="newImg">
                        <img src="{{ img}}" alt="{{ name}}">
                        {{# bottom}}
                            <span>即将售罄</span>
                        {{/ bottom}}
                    </div>
                    <p>{{ name}}</p>
                    <p><i>{{ price}}</i><i>{{ salePrice}}</i></p>
                </a>
            </li>
        {{/each}}
        </ul> 
        {{/each}} 
    </div>
</div>
{{/if}}