index.phtml 2.44 KB
{{> layout/header}}
<div class="shopping-cart-page yoho-page">
    {{# shoppingCart}}
        {{#if cartNav}}
            <ul class="cart-nav">
                <li class="active">
                    <span>
                        普通商品({{commonGoodsCount}})
                    </span>
                </li>
                <li>
                    <span>
                        预售商品({{presellGoodsCount}})
                    </span>
                </li>
            </ul>
        {{/if}}

        <div class="cart-goods">
            {{# goods}}
                {{> shopping-cart/good}}
            {{/ goods}}
        </div>

        {{#if freebieOrAdvanceBuy}}
            <ul class="freebie-and-advance-buy">
                {{# freebie}}
                    <li class="freebie">
                        <span class="iconfont">&#xe620;</span>
                        赠品
                        <a href={{url}}>
                            <span class="count">{{count}}</span>
                            <span class="iconfont icon-right-arrow">&#xe614;</span>
                        </a>
                    </li>
                {{/ freebie}}
                {{# advanceBuy}}
                    <li class="advance-buy">
                        <span class="iconfont">&#xe61b;</span>
                        加价购
                        <a href={{url}}>
                            <span class="count">{{count}}</span>
                            <span class="iconfont icon-right-arrow">&#xe614;</span>
                        </a>
                    </li>
                {{/ advanceBuy}}
            </ul>
        {{/if}}

        <div class="price-compute">
            <p class="sum-price">
                <span class="title">总价</span>
                {{price}}
            </p>
            <p class="activity-price">
                <span class="title">
                    活动价
                    <i class="minus">-</i>
                </span>
                {{activityPrice}}
            </p>
        </div>

        <div class="balance">
            <span class="iconfont icon-cb-checked"></span>
            <p>
                <span>
                    {{count}}件总计:¥{{sumPrice}}
                </span>
                <span class="tip">(不含运费)</span>
            </p>
            <button class="btn-balance">
                结算
            </button>
        </div>
    {{/ shoppingCart}}
</div>
{{> layout/footer}}