order-ensure.phtml 6.17 KB
{{> layout/header}}
<div class="order-ensure-page yoho-page">
    {{# orderEnsure}}
    <div class="address block address-wrap {{#if pageHeader.boys}} boys{{/if}}{{#if pageHeader.girls}} girls{{/if}}{{#if pageHeader.kids}} kids{{/if}}{{#if pageHeader.lifeStyle}} life-style{{/if}}" data-id ="{{addressId}}">
        <div class="info">
            <span class="info-name">{{name}}</span>
            <span class="info-phone">{{phoneNum}}</span>
            <span class="info-address">{{addressInfo}}</span>
            <i class="iconfont">&#xe637;</i>
        </div>
        <a href="/cart/index/selectAddress">其他地址<span class="iconfont">&#xe614;</span></a>
    </div>
    <section class="dispatch block">
        <div class="sub-block payment-type">
            <h3>
                <p>支付方式</p>
                <span>在线支付 (推荐)</span>
                <i class="iconfont">&#xe616;</i>
            </h3>
            <ul>
                {{#each dispatchMode}}
                <li {{#if isSelected}}class="chosed"{{/if}}>
                    <span>{{name}}</span>
                    <i class="right iconfont {{#if isSelected}}icon-cb-radio{{else}}icon-radio{{/if}}"  data-id="{{id}}"></i>
                </li>
                {{/each}}
            </ul>
        </div>
        <div class="sub-block delivery-id">
            <h3>
                <p>配送方式</p>
                <span>普通快递</span>
                <i class="iconfont">&#xe616;</i>
            </h3>
            <ul>
                {{#each dispatchMode}}
                <li {{#if isSelected}}class="chosed"{{/if}}>
                    <span>{{name}}</span>
                    <i class="right iconfont {{#if isSelected}}icon-cb-radio{{else}}icon-radio{{/if}}"  data-id="{{id}}"></i>
                </li>
                {{/each}}
            </ul>
        </div>
        <div class="sub-block delivery-time">
            <h3>
                <p>送货时间</p>
                <span>工作日、双休日和节假日均送货</span>
                <i class="iconfont">&#xe616;</i>
            </h3>
            <ul>
                {{#each dispatchTime}}
                <li {{#if isSelected}}class="chosed"{{/if}} >
                    <span>{{name}}</span>
                    <i class="right iconfont radio {{#if isSelected}}icon-cb-radio{{else}}icon-radio{{/if}}" data-id="{{id}}"></i>
                </li>
                {{/each}}
            </ul>
        </div>
    </section>
    <section class="block" style="margin-bottom: 0;">
        <div class="goods">
            {{#each goods}}
            {{> me/order/good}}
            {{/each}}
        </div>
    </section>
    <div class="goods-num">共{{num}}件商品  合计<span>¥{{price}}</span></div>

    <section class="block">
        <ul class="sale-invoice">
            {{#if isOrdinaryCart}}
            <li class="coupon">
                <a href="{{#if isLimit}}javascript:void(0);{{else}}/cart/index/selectCoupon{{/if}}">
                    <span class="title">优惠券</span>
                    {{# coupon}}
                    {{#if couponName}}
                    <span class="used coupon-use" data-name="{{couponName}}">
                        {{couponName}}
                        <i class="iconfont">&#xe614;</i>
                    </span>
                    {{^}}
                    <span class="not-used coupon-use">
                        {{#if isLimit}}该商品不可使用优惠券{{else}}未使用{{/if}}
                        <i class="iconfont">&#xe614;</i>
                    </span>
                    {{/if}}
                    {{/coupon}}
                </a>
            </li>
            {{/if}}
            <li class="coin" data-yoho-coin="{{yohoCoin}}">
                <span class="title">YOHO币</span>

                {{#if yohoCoin}}
                <span class="desc used {{#unless useYohoCoin}}hide{{/unless}}">已抵¥{{useYohoCoin}}</span>
                <span class="desc can-use {{#if useYohoCoin}}hide{{/if}}">可抵¥{{yohoCoin}}</span>

                {{#if useYohoCoin}}
                <span class="coin-check">
                    <em>- ¥ {{useYohoCoin}}</em>
                    <i class="iconfont checkbox icon-cb-radio"></i>
                </span>
                {{else}}
                <span class="coin-check">
                    <em style="display: none;">- ¥ {{useYohoCoin}}</em>
                    <i class="iconfont checkbox icon-radio"></i>
                </span>
                {{/if}}
                {{^}}
                <span class="not-used coin-check">
                    无YOHO币可用
                </span>
                {{/if}}
            </li>

            {{#if invoice}}
            <li class="invoice {{#if needInvoice}}focus{{/if}}">
                <span class="title">发票</span>
                <span class="iconfont checkbox {{#if needInvoice}}icon-cb-radio{{else}}icon-radio{{/if}}"></span>
                <form id="invoice">
                    <input type="text" name="invoice-title" value="{{invoiceText}}" maxlength="30" placeholder="发票抬头">
                    <label>
                        发票类型
                        <select class="invoice-type" name="invoice-type">
                            {{# invoice}}
                            <option value="{{id}}" {{#if isSelected}}selected{{/if}}>{{name}}</option>
                            {{/ invoice}}
                        </select>
                    </label>
                </form>
            </li>
            {{/if}}
        </ul>

        <form id="msg" action="" method="post">
            <input type="text" name="msg" value="{{msg}}" maxlength="40" placeholder="留言">
        </form>
    </section>
    <section  class="price-cal block">
        <ul>
            {{#cartPayData}}
            <li>
                <p>{{promotion}}</p>
                <span>{{promotion_amount}}</span>
            </li>
            {{/cartPayData}}
        </ul>
        <div class="price-cost">
            实付金额:
            <span>¥{{price}}</span>
        </div>
    </section>
    <div class="bill">
        您需要支付<span>¥{{price}}</span>
        <a href="#">结算</a>
    </div>
    {{/ orderEnsure}}
</div>
{{> layout/footer}}