Blame view

template/m.yohobuy.com/actions/cart/index/order-ensure.phtml 5.42 KB
xuqi authored
1 2 3
{{> layout/header}}
<div class="order-ensure-page yoho-page">
    {{# orderEnsure}}
4 5 6 7
    <a class="address-wrap block" data-id="{{addressId}}" data-support="{{isSupport}}" href="/cart/index/selectAddress">
        <p class="infos">
            收货地址
            <span class="per-info">{{name}} {{phoneNum}}</span>
8
            <span class="address">{{addressInfo}}</span>
9 10 11
        </p>
        <span class="iconfont">&#xe614;</span>
    </a>
xuqi authored
12
13 14 15 16 17 18
    <section class="dispatch block">
        <div class="sub-block">
            <h3 class="title">配送方式</h3>
            <ul class="dispatch-mode clearfix">
                {{#each dispatchMode}}
                <li {{#if isSelected}}class="chosed"{{/if}} data-id="{{id}}">{{name}}</li>
xuqi authored
19
                {{/each}}
20 21
            </ul>
        </div>
xuqi authored
22
23 24 25 26 27 28 29 30 31
        <div class="sub-block">
            <h3 class="title">送货时间</h3>
            <ul class="dispatch-time clearfix">
                {{#each dispatchTime}}
                <li {{#if isSelected}}class="chosed"{{/if}} data-id="{{id}}">{{name}}</li>
                {{/each}}
            </ul>
        </div>
    </section>
xuqi authored
32
33 34 35 36 37 38 39 40
    <section class="block">
        <h3 class="title">商品</h3>
        <div class="goods">
            {{#each goods}}
            {{> me/order/good}}
            {{/each}}
        </div>
    </section>
41
42 43 44 45 46 47 48 49 50 51
    <section class="block">
        <ul class="sale-invoice">
            {{#if isOrdinaryCart}}
            <li class="coupon">
                <a href="/cart/index/selectCoupon">
                    <span class="title">优惠券</span>
                    {{# coupon}}
                    <span class="coupon-count">
                        {{count}}张可用
                    </span>
毕凯 authored
52
53 54 55 56 57
                    {{#if couponName}}
                    <span class="used coupon-use" data-name="{{couponName}}">
                        {{couponName}}
                        <i class="iconfont">&#xe614;</i>
                    </span>
58
                    {{^}}
59 60 61 62
                    <span class="not-used coupon-use">
                        未使用
                        <i class="iconfont">&#xe614;</i>
                    </span>
63
                    {{/if}}
64 65 66 67 68 69
                    {{/coupon}}
                </a>
            </li>
            {{/if}}
            <li class="coin" data-yoho-coin="{{yohoCoin}}">
                <span class="title">YOHO币</span>
xuqi authored
70
71 72 73 74 75 76 77 78 79 80 81 82 83 84
                {{#if yohoCoin}}
                <span class="desc used {{#unless useYohoCoin}}hide{{/if}}">已抵¥{{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-checked"></i>
                </span>
                {{else}}
                <span class="coin-check">
                    <em style="display: none;">- ¥ {{useYohoCoin}}</em>
                    <i class="iconfont checkbox icon-checkbox"></i>
                </span>
毕凯 authored
85
                {{/if}}
86 87 88 89 90 91
                {{^}}
                <span class="not-used coin-check">
                    无YOHO币可用
                </span>
                {{/if}}
            </li>
xuqi authored
92
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
            {{#if invoice}}
            <li class="invoice {{#if needInvoice}}focus{{/if}}">
                <span class="title">发票</span>
                <span class="iconfont checkbox {{#if needInvoice}}icon-cb-checked{{else}}icon-checkbox{{/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>
毕凯 authored
111
112 113 114 115
        <form id="msg" action="" method="post">
            <input type="text" name="msg" value="{{msg}}" maxlength="40" placeholder="留言">
        </form>
    </section>
xuqi authored
116
117 118 119 120 121 122 123 124 125 126
    <section class="price-cal block">
        <ul class="total">
            {{#cartPayData}}
            <li>
                <span>{{promotion}}</span>
                &nbsp;&nbsp;{{promotion_amount}}
            </li>
            {{/cartPayData}}
            <li class="cost">
                应付金额: <em>¥{{price}}</em>
xuqi authored
127 128
            </li>
        </ul>
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
    </section>

    <ul class="pay-mode">
        {{# paymentWay}}
        {{#if isSupport}}
        <li class="{{#if recommend}}default{{/if}}" data-pay-type="{{paymentType}}" data-pay-id="{{id}}">
            <span class="iconfont">
                {{#if recommend}}
                &#xe62f;
                {{else}}
                &#xe62e;
                {{/if}}
            </span>
            {{name}}
        </li>
        {{/if}}
        {{/ paymentWay}}
    </ul>
xuqi authored
147 148
    {{/ orderEnsure}}
</div>
149 150
<script id="tmpl-price" type="text/tmpl">
    <ul class="total">
151 152 153 154 155 156 157 158 159
    \{{#cartPayData}}
    <li>
    <span>\{{promotion}}</span>
    &nbsp;&nbsp;\{{promotion_amount}}
    </li>
    \{{/cartPayData}}
    <li class="cost">
    应付金额: <em>¥\{{price}}</em>
    </li>
160 161
    </ul>
</script>
162
{{> layout/footer}}