Blame view

public/hbs/common/chose-panel-new.hbs 3.84 KB
陈峰 authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
{{# cartInfo}}
<div class="chose-panel" data-skn="{{productSkn}}">
    <div class="main">
        <div class="close iconfont">&#xe626;</div>
        <div class="infos {{#if @root.tickets}} tickets-info {{/if}}">
            <div class="basic-info">
                <div class="thumb-img">
                    <img class="thumb" src="{{defaultThumb}}">
                </div>
                <div class="text-info">
                    <p class="price">
                        {{#if price}}
                        <span class="sale-price">{{salePrice}}</span>
                        <span class="market-price">{{price}}</span> {{else}} {{# isY isSecKill}}
                        <span class="sale-price">{{salePrice}}</span>
                        <span class="market-price">{{salePrice}}</span> {{else}}
                        <span class="sale-price no-price">{{salePrice}}</span> {{/ isY}} {{/if}}
                    </p>
19
                    <p class="not-choose">{{@root.noChoseText}}</p>
陈峰 authored
20 21
                    <p class="choosed-info hide"></p>
                    <p class="size-info hide"></p>
毕凯 authored
22
                    <p class="size-rec hide"></p>
陈峰 authored
23 24 25 26
                </div>
            </div>
            <div class="chose-items">
                {{#each props}}
李靖 authored
27
                    <div class="block-list">
毕凯 authored
28
                        <span class="name">{{name}}</span>
陈峰 authored
29 30
                        <ul class="size-row clearfix">
                            {{#each values}}
31
                            <li class="block{{#if chosed}} chosed{{/if}}" data-prop-id="{{../type}}" data-value-id="{{id}}">{{name}}</li>
陈峰 authored
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
                            {{/each}}
                        </ul>
                    </div>
                {{/each}}
                <div class="num">
                    <span class="name">数量</span>
                    <div class="clearfix">
                        <a class="btn btn-minus {{#if @root.discountBuy}}discount-gray{{/if}}" href="javascript:void(0);">
                            <span class="iconfont {{#if @root.disableNum}}disabled{{/if}}">&#xe625;</span>
                            {{!--TODO promotionId => disabled--}}
                        </a>
                        <input id="good-num" class="good-num disabled" type="text" value="{{@root.buyNum}}" disabled="true">
                            <a class="btn btn-plus" href="javascript:void(0);">
                                <span class="iconfont {{#if @root.disableNum}}disabled{{/if}}">&#xe624;</span>
                            </a>
                    </div>
                    {{#if @root.discountBuy}}
毕凯 authored
49
                        <input id="mnum" type="hidden" value="{{@root.discountBuy.num}}">
陈峰 authored
50
                        {{#if @root.discountBuy.discount}}
毕凯 authored
51
                        <span class="left-num-discount">{{@root.discountBuy.num}}件起购享{{@root.discountBuy.discount}}</span>
陈峰 authored
52
                        {{^}}
毕凯 authored
53 54
                        <span class="left-num-discount">{{@root.discountBuy.num}}件起购</span>
                        {{/if}}
陈峰 authored
55
                    {{^}}
毕凯 authored
56
                    <span class="left-num"></span>
陈峰 authored
57 58 59 60 61 62 63
                    {{/if}}
                    <input id="left-num" type="hidden" value="0">
                    <input id="limitNum" type="hidden" value="{{limit}}">
                </div>
            </div>
        </div>
        <div class="btn-wrap">
郭成尧 authored
64 65 66 67 68 69
            {{#if @root.buttonText.double}}
                <button id="chose-btn-buynow" class="btn btn-sure-buynow">立即购买</button>
                <button id="chose-btn-sure" class="btn btn-sure-addtocart">加入购物车</button>
            {{^}}
                <button id="chose-btn-sure" class="btn btn-sure">{{@root.buttonText.text}}</button>
            {{/if}}
陈峰 authored
70 71 72 73 74 75
        </div>
    </div>
</div>
{{/ cartInfo}}
<input id="promotionId" type="hidden" value="{{promotionId}}">
<input id="single" type="hidden" value="{{@root.single}}">