chose-panel.hbs 4.85 KB
{{#cartInfo}}
<div class="chose-panel">
    <div class="main">
        <div class="infos {{#if ../tickets}}tickets-info{{/if}}">
            <div class="basic-info" >
                {{#thumbs}}
                <img class="thumb {{#unless @first}}hide{{/unless}}" src={{image img 60 60}}>
                {{/thumbs}}
                <div class="text-info">
                    <p class="name">{{name}}</p>
                    <p class="price">
                        <span class="sale-price{{^price}} no-price{{/price}}">{{salePrice}}</span>
                        {{#if price}}
                        <span class="market-price">{{price}}</span>
                        {{/if}}
                    </p>
                    {{#if ../isSecKill/startIng}}
                    <div class="seckill-time seckill-time-border seckill-chose">
                        <span>距结束 </span>
                        <span class="end-time">
                            <i class="tick hour">00</i>:
                            <i class="tick minute">00</i>:
                            <i class="tick second">00</i>
                        </span>
                    </div>
                    {{/if}}
                </div>
            </div>
            <div class="chose-items">
                <div class="color-list block-list">
                    <span>{{#if ../tickets}}日期{{else}}颜色{{/if}}</span>
                    {{# colors}}
                    <ul id="{{id}}" data-index="{{@index}}" class="size-row clearfix  {{#unless @first}}hide{{/unless}}">
                        {{# color}}
                        <li class="block {{#if chosed}}chosed{{/if}} {{#unless colorNum}}zero-stock{{/unless}}" data-num="{{colorNum}}">
                            {{name}}
                        </li>
                        {{/ color}}
                    </ul>
                    {{/ colors}}
                </div>
                <div class="size-list block-list {{#if ../single}}hide{{/if}}">
                    <span>{{#if ../tickets}}区域{{else}}尺码{{/if}}</span>
                    {{# sizes}}
                    <ul class="size-row clearfix  {{#unless @first}}hide{{/unless}}">
                        {{# size}}
                        <li class="block {{#if chosed}}chosed{{/if}} {{#unless sizeNum}}zero-stock{{/unless}}" data-num="{{sizeNum}}" data-id="{{id}}" data-skuid="{{skuId}}">
                            {{name}}
                        </li>
                        {{/ size}}
                    </ul>
                    {{/ sizes}}
                </div>

                <div class="num">
                    <span>数量</span>
                    <div class="clearfix">
                        {{#if ../isSecKill/startIng}}
                            <a class="btn" href="javascript:void(0);">
                                <span class="iconfont {{#if promotionId}}disabled{{/if}}">&#xe625;</span>
                            </a>
                            <input id="good-num" class="good-num disabled" type="text" value="1" disabled="true">
                            <a class="btn" href="javascript:void(0);">
                                <span class="iconfont {{#if promotionId}}disabled{{/if}}">&#xe624;</span>
                            </a>
                            <span class="limit-num-text">限购1件</span>
                        {{else}}
                            <a class="btn btn-minus" href="javascript:void(0);">
                                <span class="iconfont {{#if promotionId}}disabled{{/if}}">&#xe625;</span>
                            </a>
                            <input id="good-num" class="good-num disabled" type="text" value="1" disabled="true">
                            <a class="btn btn-plus" href="javascript:void(0);">
                                <span class="iconfont {{#if promotionId}}disabled{{/if}}">&#xe624;</span>
                            </a>
                        {{/if}}
                    </div>
                    <span class="left-num {{#if ../isSecKill}}hide{{/if}}"></span>
                    <input id="left-num" type="hidden" value="0">
                    <input id="limitNum" type="hidden" value="{{limit}}">
                </div>

            </div>
        </div>
        <div class="btn-wrap">

            {{#if ../isSecKill/startIng}}
                <button id="chose-btn-sure" class="btn btn-sure go-pay isSecKill">
                立即抢购
                </button>
            {{else}}
                <button id="chose-btn-sure" class="btn btn-sure go-pay">
                {{#if ../tickets}}
                    立即购买
                {{else}}
                    加入购物车
                {{/if}}
                </button>
            {{/if}}
        </div>
    </div>
</div>
        {{/cartInfo}}
<input id="promotionId" type="hidden" value="{{promotionId}}">
<input id="single" type="hidden" value="{{single}}">