chose-panel.phtml 4.03 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{{/if}}" src={{img}}>
                {{/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>
                </div>
            </div>
            <div class="chose-items">
                <div class="color-list block-list">
                    <span>{{colorName}}</span>
                    {{# colors}}
                    <ul id="{{id}}" data-index="{{@index}}" class="size-row clearfix  {{#unless @first}}hide{{/if}}">
                        {{# 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>{{sizeName}}</span>
                    {{# sizes}}
                    <ul class="size-row clearfix  {{#unless @first}}hide{{/if}}">
                        {{# 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>
                <p>
                <div class="num">
                    <span>数量</span>
                    <div class="clearfix">
                        <a class="btn btn-minus {{#if discountBuy}}discount-gray{{/if}}" href="javascript:void(0);">
                            <span class="iconfont {{#if promotionId}}disabled{{/if}}">&#xe625;</span>
                        </a>
                        {{#if discountBuy}}
                        <input id="good-num" class="good-num disabled" type="text" value="{{discountBuy.mnum}}" disabled="true">
                        {{^}}
                        <input id="good-num" class="good-num disabled" type="text" value="1" disabled="true">
                        {{/if}}
                        <a class="btn btn-plus" href="javascript:void(0);">
                            <span class="iconfont {{#if promotionId}}disabled{{/if}}">&#xe624;</span>
                        </a>
                    </div>
                    {{#unless discountBuy.discount}}
                    <span class="left-num"></span>
                    {{/unless}}
                    <input id="left-num" type="hidden" value="0">
                    <input id="limitNum" type="hidden" value="{{limit}}">
                    {{# discountBuy}}
                        {{if discount}}
                        <span class="left-num-discount" style="color: #e10;position: absolute;top: 0.5rem;left: 9.5rem;overflow: hidden;white-space: nowrap;width: 5.2rem;-o-text-overflow: ellipsis;text-overflow: ellipsis;">{{mnum}}件起购享{{discount}}折</span>
                        {{/if}}
                    <input id="mnum" type="hidden" value="{{mnum}}">
                    {{/ discountBuy}}
                </div>
            </div>
        </div>
        <div class="btn-wrap">
            <button id="chose-btn-sure" class="btn btn-sure">{{#if ../tickets}}立即购买{{else}}加入购物车{{/if}}</button>
        </div>
    </div>
</div>
        {{/cartInfo}}
<input id="promotionId" type="hidden" value="{{promotionId}}">
<input id="single" type="hidden" value="{{single}}">