index.phtml 1.79 KB
{{> layout/header}}
<div id="mainCart" class="shopping-cart-page yoho-page">
    {{# shoppingCart}}
    {{#if showLoginInfo}}
    <p class="login-info">
        <span class="iconfont">&#xe628;</span>
        请您先
        <a class="btn btn-login" href="{{signurl}}">登录</a>
        可以同步电脑和手机中的商品
    </p>
    {{/if}}
    {{#if isEmptyCart}}
    <div class="cart-zero">
        <i class="iconfont">&#xe640;</i>
        <p>您的购物车暂无商品</p>
        <a href="/product/new">随便逛逛</a>
    </div>
    {{> product/recommend-for-you}}
    {{^}}
    {{#if cartNav}}
    <ul class="cart-nav clearfix">
        
        <li class="active" id="common-cart-nav">
            <span >
                普通商品({{commonGoodsCount}})
            </span>
        </li>
        <li id="presell-cart-nav">
            <span >
                预售商品({{presellGoodsCount}})
            </span>
            <div id="presell-tip" class="presell-tip hide">
                <div class="triangle"></div>
                <p class="pt-content">预售商品点这里结算哦~</p>
            </div>
        </li>
        
    </ul>
    {{/if}}
    {{# commonCart}}
    <div class="cart-content common">
        {{> cart/cart-content}}
    </div>
    {{/ commonCart}}
    {{# preSellCart}}
    <div class="cart-content presell hide">
        <p class="presell-info">
            <span class="iconfont">&#xe61a;</span>
            <span class="txt">预售商品全场包邮,到货后立即发货</span>
            <span class="txt">预售商品不参加活动,不可使用优惠券</span>
        </p>
        {{> cart/cart-content}}
    </div>
    {{/ preSellCart}}
    {{/if}}
    <input id="cartType" type="hidden" value="{{cartType}}">
    {{/ shoppingCart}}
</div>
{{> layout/footer}}