Blame view

public/hbs/product/detail/infodata.hbs 2.91 KB
沈志敏 authored
1
{{# cartInfo}}
李靖 authored
2
<div class="cart-bar{{#if storeGood}} store-good{{/if}}">
沈志敏 authored
3 4 5
    {{#unless @root.wap.common.removeCartCount}}
        <input type="hidden" id="remove-cart-count" value="1">
    {{/unless}}
张孝茹 authored
6
    <a class="new-foot-ico" href="{{cartUrl}}" rel="nofollow">
7 8 9 10 11 12 13
        <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}}>
lijing authored
14
        <div class="iconfont">&#xe705;</div>
15 16
        <div class="tip">品牌店铺</div>
    </a>
李靖 authored
17
    <a href="javascript:;" class="new-foot-ico fav like-btn-c">
18
        <div id="likeBtn" class="favorite iconfont {{#if @root.isCollect}}liked{{/if}}">&#xe605;</div>
lijing authored
19
        <div class="tip{{#unless @root.isCollect}} opa{{/unless}}">{{#if @root.isCollect}}已收藏{{else}}收藏{{/if}}</div>
20
    </a>
李靖 authored
21
    <span class="btn-c">
沈志敏 authored
22
    {{#if addToCartUrl}}
李靖 authored
23 24 25 26
        <a id="addtoCart" href="javascript:;" class="addto-cart add-to-cart-url">加入购物车</a>
    {{/if}}
    {{#if tickets}}
        <a id="ticketsToCart" href="javascript:;" class="addto-cart add-to-cart-url">立即购买</a>
沈志敏 authored
27
    {{/if}}
28 29 30
    {{#if isDepositAdvance}}
        <a id="isDepositAdvance" href="javascript:;" class="addto-cart add-to-cart-url">立即购买</a>
    {{/if}}
沈志敏 authored
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
    {{#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}}
沈志敏 authored
46 47 48
    {{#if canNotBuy}}
        <a href="javascript:;" class="addto-cart can-not-buy">立即购买</a>
    {{/if}}
沈志敏 authored
49 50 51
    {{#if noLimitCode}}
        <a id="noLimitCode" href="javascript:;" class="sold-out limit">立即购买</a>
    {{/if}}
李靖 authored
52
    </span>
沈志敏 authored
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
    <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>
姜枫 authored
70
{{/ tickets}}