infodata.hbs 2.57 KB
{{# cartInfo}}
<div class="cart-bar">
    {{#unless @root.wap.common.removeCartCount}}
        <input type="hidden" id="remove-cart-count" value="1">
    {{/unless}}
    <a class="new-foot-ico" href="{{cartUrl}}">
        <div class="num-incart iconfont">
            <span class="num-tag {{#unless @root.cartCount}}hide{{/unless}}">{{@root.cartCount}}</span>
            &#xe62c;
        </div>
        <div class="tip">购物车</div>
    </a>
    <a class="new-foot-ico store{{#unless storeUrl}} opa{{/unless}}"{{#if storeUrl}} href="{{storeUrl}}"{{/if}}>
        <div class="iconfont"></div>
        <div class="tip">品牌店铺</div>
    </a>
    <a href="javascript:;" class="new-foot-ico fav">
        <div id="likeBtn" class="favorite iconfont {{#if @root.isCollect}}liked{{/if}}">&#xe605;</div>
        <div class="tip{{#unless @root.isCollect}} opa{{/unless}}">{{#if @root.isCollect}}已收藏{{else}}收藏{{/if}}</div>
    </a>
    {{#if addToCartUrl}}
        <a id="addtoCart" href="javascript:;" class="addto-cart add-to-cart-url">{{#if tickets}}立即购买{{else}}加入购物车{{/if}}</a>
    {{/if}}
    {{#if soldOut}}
        <a id="soldOut" href="javascript:;" class="sold-out">已售罄</a>
    {{/if}}
    {{#if notForSale}}
        <a id="notForSale" href="javascript:;" class="sold-out">非卖品</a>
    {{/if}}
    {{#if limitNotForSale}}
        <a id="limitNotForSale" href="javascript:;" class="sold-out limit">即将发售</a>
    {{/if}}
    {{#if preSale}}
        <a id="preSale" href="javascript:;" class="sold-out limit">即将开售</a>
    {{/if}}
    {{#if canBuyLimit}}
        <a href="javascript:;" id="addtoCart" class="addto-cart can-buy-limit">立即购买</a>
    {{/if}}
    {{#if canNotBuy}}
        <a href="javascript:;" class="addto-cart can-not-buy">立即购买</a>
    {{/if}}
    {{#if noLimitCode}}
        <a id="noLimitCode" href="javascript:;" class="sold-out limit">立即购买</a>
    {{/if}}

    <input type="hidden" id="limitCodeUrl" name="limitCodeUrl" value="{{limitCodeUrl}}">
    <input type="hidden" id="limitProductPay" name="limitProductPay" value="{{limitProductPay}}">
    {{#if limitProductCode}}
        <input type="hidden" id="limitProductCode" name="limitProductCode" value="{{limitProductCode}}">
    {{/if}}
</div>
{{/ cartInfo}}

{{#if loginUrl}}
<input type="hidden" name="loginUrl" id="loginUrl" value="{{loginUrl}}">
{{/if}}

{{# tickets}}
<form id="buyNowForm" method="post" action="{{ticketsConfirm}}">
    <input type="hidden" name="productSku" id="productSku">
    <input type="hidden" name="buyNumber" id="buyNumber">
</form>
{{/ tickets}}