Blame view

public/hbs/cart/index/index.hbs 2.08 KB
陈峰 authored
1 2 3 4 5
{{#if isEmptyCart}}
<div class="cart-zero">
    <i class="iconfont">&#xe640;</i>
    <p>您的购物车暂无商品</p>
    <a href="/product/new">随便逛逛</a>
陈峰 authored
6
</div>
陈峰 authored
7
{{^}}
陈峰 authored
8 9 10
    <div class="cart-nav clearfix{{#if cartNav}} more{{/if}}">
        {{#if commonGoodsCount}}
        <div class="nav-item{{#if ordinaryCart}} active{{/if}}" id="common-cart-nav" data-type="ordinary">
陈峰 authored
11
            <span>普通商品({{commonGoodsCount}})</span>
陈峰 authored
12 13 14 15
        </div>
        {{/if}}
        {{#if presellGoodsCount}}
        <div class="nav-item{{#if advanceCart}} active{{/if}}" id="presell-cart-nav" data-type="advance">
陈峰 authored
16 17 18 19 20
            <span >预售商品({{presellGoodsCount}})</span>
            <div id="presell-tip" class="presell-tip hide">
                <div class="triangle"></div>
                <p class="pt-content">预售商品点这里结算哦~</p>
            </div>
陈峰 authored
21 22
        </div>
        {{/if}}
陈峰 authored
23
        <button class="btn-edit"></button>
陈峰 authored
24 25
    </div>
   
陈峰 authored
26 27 28
    {{#if ordinaryCart}}
    <div class="cart-content normal-good active">
        {{#commonCart}}
陈峰 authored
29
            {{#if shipCost.shippingTip}}
李靖 authored
30
                <a class="tips clearfix" href="/product/boys-new/">
李靖 authored
31 32 33 34 35
                    <div>
                        {{shipCost.shippingTip}}
                    </div>
                    <span class="iconfont free-shipping">{{#if shipCost.freeShipping}}去凑单{{/if}}&nbsp;&#xe604;</span>
                </a>
陈峰 authored
36
            {{/if}}
陈峰 authored
37 38 39 40 41 42
            {{> cart-content}}
        {{/commonCart}}
    </div>
    {{/if}}
    {{#if advanceCart}}
    <div class="cart-content advance-good active">
李靖 authored
43
        {{#preSellCart}}
李靖 authored
44 45 46 47 48 49 50
            <div class="tips clearfix">
                <div>
                    {{#if shipCost.shippingTip}}
                    {{shipCost.shippingTip}}
                    <br />
                    {{/if}}
                    <span class="precell-dia">预售商品购物预知&nbsp;<span class="iconfont">&#xe73b;</span></span>
李靖 authored
51
                </div>
李靖 authored
52
            </div>
陈峰 authored
53 54 55 56 57 58
            {{> cart-content}}
        {{/preSellCart}}
    </div>
    {{/if}}
    <input id="cartType" type="hidden" value="{{cartType}}">
{{/if}}