ensure-tpl.hbs 5.7 KB


<script id="address-tpl" type="text/html">
    <div class="title">\{{title}}</div>
    <p class="prompt">\{{title}}、电话为选填项,其他均为必填项</p>
    <ul class="info-wrap">
        <li>
            <span class="left-rd"><i class="red">*</i>收货人:</span>
            <input type="text" name="consignee" value="\{{info.consignee}}" placeholder="请输入您的姓名">
            <p class="caveat-tip"></p>
        </li>
        <li>
            <span class="left-rd"><i class="red">*</i>所在区域:</span>
            <div class="area-box">
                <span>请选择省市区</span>
                <span class="area-text">\{{info.areaText}}</span>
                <div class="area-select">
                    <ul class="clearfix">
                        <li class="area-sel-tab tab-on">
                            省份
                            <div class="province-list opt-list"></div>
                        </li>
                        <li class="area-sel-tab">
                            城市
                            <div class="city-list opt-list"></div>
                        </li>
                        <li class="area-sel-tab">
                            区县
                            <div class="area-list opt-list"></div>
                        </li>
                    </ul>
                </div>
            </div>
            <p class="caveat-tip"></p>
        </li>
        <li>
            <span class="left-rd"><i class="red">*</i>详细地址:</span>
            <input type="text" name="address" value="\{{info.address}}" placeholder="街道名称或小区名称">
            <p class="caveat-tip"></p>
        </li>
        <li>
            <span class="left-rd"><i class="red">*</i>手机号码:</span>
            <input type="text" name="mobile" value="\{{info.mobile}}" placeholder="请输入手机号码(重要必填)">
            <p class="caveat-tip"></p>
        </li>
        <li>
            <span class="left-rd">电话号码:</span>
            <input type="text" name="phone" value="\{{info.phone}}" placeholder="请输入电话号码(选填)">
            <p class="caveat-tip"></p>
        </li>
        <li>
            <span class="left-rd \{{#if info.default}} on\{{/if}}"></span>
            <label class="radio-btn">设置为默认收货地址</label>
        </li>
    </ul>
</script>

<script id="address-item-tpl" type="text/html">
    <div class="addr-item" data-id="\{{id}}">
        <p class="name">
            \{{consignee}}
            <span class="right">\{{mobile}}</span>
        </p>
        <p class="area">
            <span>\{{area}}</span>
        </p>
        <p class="street">\{{address}}</p>
        <p class="option">
            <label class="set-default">设为默认</label>
            <label class="default-tip">默认地址</label>
            <span class="delete-addr">删除</span>
            <span class="modify-addr">修改</span>
        </p>
    </div>
</script>

<script id="invoice-chose-tpl" type="text/html">
    <p class="invoice-header">发票信息</p>
    <ul class="invoice-type">
        <li class="el-invoice focus">电子发票</li>
        <li class="pa-invoice">纸质发票</li>
    </ul>
    <div class="invoice-content el-content">
        <p class="el-tip">
            ※ 电子发票是税务局认可的有效凭证,其法律效力、基本用途及使用规定同纸质发票,如需纸质发票可自行下载打印。<br>
            <a href="//www.yohobuy.com/help?category_id=99">什么是电子发票?</a>
        </p>

        <ul>
            <li class="invoice-title invoice-row">
                <span class="row-title">
                    <em>*</em>
                    发票抬头
                </span>
                <div class="row-content">
                    <span class="radio-wrap">
                        <label class="rbt-1 radio-btn on" data-id="1"></label> 个人
                    </span>
                    <span class="radio-wrap">
                        <label class="rbt-2 radio-btn" data-id="2"></label> 单位
                    </span>

                    <div class="company-row hide">
                        <input id="company-name" class="company-name" type="text" placeholder="请填写单位名称">
                        <span class="input-tip invoice-title-tip red hide">
                            <span class="iconfont">&#xe629;</span>
                            请填写发票抬头
                        </span>
                    </div>
                </div>
            </li>
            <li class="invoice-goods-type invoice-row">
                <span class="row-title">
                    <em>*</em>
                    发票内容:
                </span>
                <div class="row-content">
                    {{#each invoices.invoiceContentList}}
                        <span class="radio-wrap">
                            <label class="radio-btn rbc-{{invoices_type_id}}{{#if @first}} on{{/if}}" data-id="{{invoices_type_id}}" data-name="{{invoices_type_name}}"></label> {{invoices_type_name}}
                        </span>
                    {{/each}}
                </div>
            </li>
            <li class="receiver invoice-row">
                <span class="row-title">
                    <em>*</em>
                    手机号码:
                </span>
                <div class="row-content">
                    <input id="receiver-phone" class="receiver-phone" type="text">
                    <span class="input-tip receiver-tip red hide">
                        <span class="iconfont">&#xe629;</span>
                        <em></em>
                    </span>
                </div>
            </li>
        </ul>
    </div>
</script>