order.hbs 21 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403
{{> sign-header}}
<div class="shopping-order-page blk-page">
    {{# content}}
        <div class="center-content">
            {{> bc-nav}}

            <div class="address-info order-block">
                <p class="title">
                    收货信息
                    <span class="right new-address">
                        新增收货地址
                        <i class="iconfont">&#xe61f;</i>
                    </span>
                </p>
                <div class="content">
                    <ul id="address-list" class="clearfix address-list shrink"></ul>
                    <p class="address-all vhide">
                        显示全部地址
                        <span class="iconfont">&#xe616;</span>
                    </p>
                </div>
            </div>
            <div class="payment-type order-block">
                <p class="title">支付方式</p>
                <ul class="content">
                    <li class="chose-row clearfix focus">
                        <span class="chose-block">在线支付</span>
                        <span class="tip-text">支持主流银行卡、微信、支付宝、银联等平台付款,方便快捷</span>
                    </li>
                </ul>
            </div>
            <div class="dispatch-type order-block">
                <p class="title">配送方式</p>
                <ul class="content">
                    <li class="chose-row clearfix focus">
                        <span class="chose-block">普通快递:运费¥10.00</span>
                    </li>
                </ul>
            </div>
            <div class="order-info order-block">
                <div class="order-inner">
                    <p class="title">
                        订单信息
                        <a class="right go-cart-link" href="{{goCartLink}}">
                            返回购物袋修改
                            <span class="iconfont">&#xe61e;</span>
                        </a>
                    </p>
                    {{#with shopping_cart_data}}
                        {{#isY is_multi_package}}
                            <div class="multi-package-row">
                                温馨提示:您购买的商品<em class="blue">分属不同仓库</em>,需要调拨,将被拆分成多个包裹送达
                                <span class="iconfont show-package">&#xe643;</span>
                                <div class="package-list hide">
                                    <div class="package-up-icon"></div>
                                    {{#each ../package_list}}
                                        <div class="package-item">
                                            <p class="package-title bold">包裹{{math @index '+' 1}}:{{#if @first}}总仓发货{{^}}异地调拨{{/if}}</p>
                                            {{#if showToggle}}
                                                <span class="iconfont toggle-icon left-icon">&#xe607;</span>
                                                <span class="iconfont toggle-icon right-icon">&#xe61e;</span>
                                            {{/if}}
                                            <div class="package-goods-wrap">
                                                <ul class="package-goods clearfix">
                                                    {{#each goods_list}}
                                                        <li class="left">
                                                            <img class="lazy package-goods-img" data-original="{{image goods_images 100 134}}">
                                                        </li>
                                                    {{/each}}
                                                </ul>
                                            </div>
                                            <p class="package-shipping">运费:¥{{shopping_cost}}元(原价{{shopping_orig_cost}}元,优惠{{shopping_cut_cost}}元)</p>
                                        </div>
                                    {{/each}}
                                </div>
                            </div>
                        {{/isY}}
                    {{/with}}
                    <div class="content">
                        <p class="order-table-head clearfix">
                            <span class="info">商品信息</span>
                            <span class="color-size">颜色尺码</span>
                            <span class="price">单价</span>
                            <span class="number">数量</span>
                        </p>
                        <ul class="order-table-body">
                            {{#each goods_list}}
                                <li class="order-goods clearfix">
                                    <a class="goods-img inline-block" href="{{link}}" target="_blank">
                                        <img class="lazy" data-original="{{image goods_images 100 148}}">

                                        {{#if isGift}}
                                            <span class="gift-tag">赠品</span>
                                        {{/if}}
                                    </a>
                                    <p class="brand-and-name inline-block">
                                        <a class="brand-name" href="{{brandUrl}}" target="_blank">{{brand_name}}</a>
                                        <a class="name" href="{{link}}" target="_blank">{{product_name}}</a>
                                    </p>
                                    <p class="color-size">
                                        <span class="color">颜色:{{color_name}}</span>
                                        <span class="size">尺码:{{size_name}}</span>
                                    </p>
                                    <p class="price">
                                        ¥{{round last_price 2}}
                                    </p>
                                    <p class="number">
                                        <span class="iconfont">&#xe61d;</span>
                                        {{buy_number}}
                                    </p>
                                </li>
                            {{/each}}
                        </ul>
                    </div>
                </div>
            </div>
            <div class="invoice-info order-block">
                <p class="title">发票信息</p>
                <div id="invoice-content" class="content">
                    <div class="invoice-radio">
                        {{> icon/radio}}
                        <label>发票开具</label>
                    </div>
                </div>
            </div>
            <div class="coin-and-remark">
                <div class="coin">
                    <p class="title">
                        <span class="iconfont coin-ctrl">&#xe639;</span>
                        <span class="coin-ctrl">使用有货币</span>
                    </p>
                    <div class="content hide">
                        <div class="using-coin">
                            本次使用有货币
                            <input id="input-coin" class="input coin-input" type="text" data-max="{{yoho_coin}}">

                            您当前共有有货币<em class="blue">{{yoho_coin}}</em>

                            <span id="coin-tip" class="coin-tip block blue vhide">抵扣¥<em class="balance-coin"></em></span>
                            <span id="coin-sure" class="btn disable">确定</span>
                        </div>
                        <div class="used-coin hide">
                            本次使用有货币<em id="coin-used" class="blue"></em>个,本次抵扣<span class="blue">¥<em id="coin-deduction"></em></span>

                            <span class="btn white modify">修改</span>
                            <span class="btn white cancel">取消使用</span>
                        </div>
                    </div>
                </div>
                <div class="remark">
                    <p class="title">
                        <span class="iconfont remark-ctrl">&#xe639;</span>
                        <span class="remark-ctrl">添加备注信息</span>
                    </p>
                    <div class="content hide">
                        <textarea id="remark-content" class="remark-content" placeholder="声明:备注中有关收货人信息、支付方式、配送方式、发票信息等购买要求一律以上面的选择为准,备注无效"></textarea>
                        <div id="print-price" class="print-price">
                            是否打印价格:
                            <div class="print-price-radio-group">
                                {{#each printPriceRadio}}
                                    <div class="print-price-radio" data-value="{{value}}">
                                        <label>{{name}}</label>
                                        {{> icon/radio}}
                                    </div>
                                {{/each}}
                                <span class="remark-tip">(如:送朋友的商品可不打印价格哦!)</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="balance clearfix">
                {{# shopping_cart_data}}
                    <div class="balance-info left">
                        <p>
                            收货信息:<em id="receiver"></em>
                            <span class="right">{{selected_goods_count}}件商品</span>
                        </p>
                        <p>
                            支付方式:<em id="balance-pay-type">在线支付</em>
                        </p>
                    </div>
                    <ul id="balance-list"  class="balance-list right">
                        {{#each promotion_formula_list}}
                            <li>
                                <span class="balance-title">
                                    {{promotion}}
                                    {{#if shippingCut}}
                                        <em>(原价:{{shippingOrigin}}元,优惠:{{shippingCut}}元)</em>
                                    {{/if}}
                                </span>
                                <span class="balance-cost">{{promotion_amount}}</span>
                            </li>
                        {{/each}}
                        <li class="need-pay">
                            <span class="balance-title">应付金额{{#if shipping_cost}}(含运费){{/if}}</span>
                            <span id="balance-cost" class="balance-cost" data-cost="{{last_order_amount}}">¥<em>{{round last_order_amount 2}}</em></span>
                        </li>
                        <li>
                            <span id="submit-order" class="btn submit-order">提交订单</span>
                        </li>
                    </ul>
                {{/ shopping_cart_data}}
            </div>

            <script id="balance-tpl" type="text/html">
                \{{#each promotion_formula_list}}
                    <li>
                        <span class="balance-title">\{{promotion}}</span>
                        <span class="balance-cost">\{{promotion_amount}}</span>
                    </li>
                \{{/each}}
                <li class="need-pay">
                    <span class="balance-title">应付金额\{{#if shipping_cost}}(含运费)\{{/if}}:</span>
                    <span id="balance-cost" class="balance-cost" data-cost="{{last_order_amount}}">¥<em>\{{round last_order_amount 2}}</em></span>
                </li>
                <li>
                    <span id="submit-order" class="btn submit-order">提交订单</span>
                </li>
            </script>

            <script id="address-list-tpl" type="text/html">
                \{{#each address}}
                    <li class="address\{{#isY is_default}} default\{{/isY}}\{{#if focus}} focus\{{/if}}"
                        data-id="\{{address_id}}" data-name="\{{consignee}}" data-mobile="\{{mobile}}"
                        data-phone="\{{phone}}" data-areacode="\{{area_code}}" data-area="\{{area}}"" data-address="\{{address}}">
                        <div class="address-header"></div>
                        <div class="address-content">
                            <p class="default-or-not">
                                <span class="default-tag">默认地址</span>
                                <span class="set-default">设为默认</span>
                            </p>

                            <p class="name-and-phone">
                                \{{consignee}}
                                <span class="phone bold">\{{mobile}}</span>
                            </p>

                            <p class="address-area bold">\{{area}}</p>
                            <p class="address-detail">\{{address}}</p>

                            <p class="address-opration">
                                <span class="modify">修改</span>
                                <span class="delete">删除</span>
                            </p>
                        </div>
                        <span class="address-chosed iconfont">&#xe63b;</span>
                    </li>
                \{{/each}}
                \{{#if hasNew}}
                    <li class="new-address-block">
                        <span class="iconfont">&#xe645;</span>
                        增加收货地址
                    </li>
                \{{/if}}
            </script>

            <script id="invoice-dialog-tpl" type="text/html">
                <p class="dialog-title">发票信息</p>
                <ul class="invoice-tab">
                    <li class="btn paper-invoice">纸质发票</li>
                </ul>

                <div class="invoice-entity el">
                    <div class="row clearfix">
                        <span class="label">
                            <em class="required-mark">*</em>
                            发票抬头:
                        </span>
                        <div class="row-content">
                            <div class="invoice-title-radio-group">
                                {{#each invoices.invoiceTitle}}
                                    <div class="invoice-title-radio{{#if myClass}} {{myClass}}{{/if}}" data-value="{{value}}">
                                        {{> icon/radio}}
                                        <label>{{name}}</label>
                                    </div>
                                {{/each}}
                            </div>
                            <div>
                                <input class="input invoice-title-input hide" type="text" maxlength="30" placeholder="请填写单位名称">
                                <span class="input-tip invoice-title-tip blue hide">
                                    <span class="iconfont">&#xe60c;</span>
                                    请填写发票抬头
                                </span>
                            </div>
                        </div>
                    </div>
                    <div class="row clearfix">
                        <span class="label">
                            <em class="required-mark">*</em>
                            发票内容:
                        </span>
                        <div class="row-content">
                            <div class="invoice-content-radio-group">
                                {{#each invoices.invoiceContentList}}
                                    <div class="invoice-content-radio" data-value="{{invoices_type_id}}">
                                        {{> icon/radio}}
                                        <label>{{invoices_type_name}}</label>
                                    </div>
                                {{/each}}
                            </div>
                        </div>
                    </div>
                </div>
            </script>

            <script id="address-dialog-tpl" type="text/html">
                <p class="dialog-title">
                    \{{#if updateAddress}}
                        修改地址
                    \{{^}}
                        新增地址
                    \{{/if}}
                </p>
                <form id="address-form" name="address-form">
                    <div class="address-page">
                        <span class="tip">
                            <em class="blue">
                                \{{#if updateAddress}}
                                    修改地址
                                \{{^}}
                                    新增地址
                                \{{/if}}
                            </em>
                            电话为选填项,其他均为必填项
                        </span>
                        <div class="add-address-detail" data-id="\{{id}}">
                            <div class="form-group">
                                <label class="label-name">
                                    <em class="required-mark">*</em>
                                    收货人:
                                </label>
                                <input class="input address-name" type="text" placeholder="请输入您的姓名" maxlength="12" value="\{{name}}">
                                <span class="blue error-tips">
                                    {{> icon/error-round}}
                                    <em></em>
                                </span>
                            </div>
                            <div class="form-group clearfix">
                                <label class="label-name">
                                    <em class="required-mark">*</em>
                                    所在区域:
                                </label>
                                <div id="address" class="clearfix"></div>
                                <span class="blue error-tips">
                                    {{> icon/error-round}}
                                    请填写完整的省市区信息
                                </span>
                            </div>
                            <div class="form-group">
                                <label class="label-name">
                                    <em class="required-mark">*</em>
                                    详细地址:
                                </label>
                                <input class="input address-detail" type="text" placeholder="街道名称或小区名称" maxlength="60" value="\{{detail}}">
                                <span class="blue error-tips">
                                    {{> icon/error-round}}
                                    <em></em>
                                </span>
                            </div>
                            <div class="form-group">
                                <label class="label-name">
                                    <em class="required-mark">*</em>
                                    手机号码:
                                </label>
                                <input class="input address-mobile" type="text" placeholder="请输入手机号码(重要必填)" maxlength="11" value="\{{mobile}}">
                                <span class="blue error-tips">
                                    {{> icon/error-round}}
                                    <em></em>
                                </span>
                            </div>
                            <div class="form-group">
                                <label class="label-name">电话号码:</label>
                                <input class="input address-phone" type="text" placeholder="请输入电话号码(选填)" value="\{{phone}}" maxlength="15">
                                <span class="blue error-tips">
                                    {{> icon/error-round}}
                                    <em></em>
                                </span>
                            </div>
                        </div>
                    </div>
                </form>
            </script>

            <script id="checked-invoice-show-tpl" type="text/html">
                <div class="invoice-radio">
                    \{{#if checked}}
                        <span class="iconfont radio checked">&#xe603;</span>
                    \{{^}}
                        <span class="iconfont radio">&#xe604;</span>
                    \{{/if}}
                    <label>发票开具</label>
                </div>
                \{{#if invoiceTitle}}
                    <p class="invoice-detail" data-title="\{{invoiceTitle}}" data-content="\{{content}}">
                        <em>\{{invoiceTitle}}</em><em>\{{invoiceContent}}</em>
                        <span class="modify-invoice btn white">修改</span>
                    </p>
                \{{/if}}
            </script>
        </div>
    {{/ content}}
</div>