cart-together-item.hbs 1.19 KB
<div class="individual-item individual-item-togetherGoods">
    <ul class="goods clearfix img-list">
        {{#each item}}
            <li class="good img-item" data-id="id" data-skn="skn">
                <a href="{{href}}" target="_blank">
                    <img class="lazy" data-original="{{img}}"/>
                </a>
                <a class="name" href="{{href}}" target="_blank">{{title}}</a>
                <p class="price">
                    <span class="sale-price">{{price}}</span>
                    {{#if marketPrice}}<span class="market-price">{{marketPrice}}</span>{{/if}}
                </p>
                {{#if ../showAdd2Cart}}
                    <a class="btn-add-cart"
                       {{#if id}}data-id="{{id}}"{{/if}}
                       {{#if skn}}data-skn="{{skn}}"{{/if}}
                       data-role="add2cart">加入购物车</a>
                {{/if}}
            </li>
        {{/each}}
    </ul>
    <div class="img-brand-switch">
        {{#hasPrev}}
            <a class="prev iconfont" href="javascript:;"></a>
        {{/hasPrev}}
        {{#hasNext}}
            <a class="next iconfont" href="javascript:;"></a>
        {{/hasNext}}
    </div>
</div>