address-dialog.hbs 2.84 KB
<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">
                    {{> 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">
                    {{> 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">
                    {{> 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">
                    {{> 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">
                    {{> error-round}}
                    <em></em>
                </span>
            </div>
        </div>
    </div>
</form>