address.phtml 4.38 KB
{{> layout/header}}
<div class="user-me-page me-page yoho-page clearfix">
    {{# address}}
        {{> home/path}}
        {{> home/navigation}}
        <div class="me-main">
            <div class="address block">
                <div class="title">
                    <h2 ></h2>
                </div>
                <div class="main">
                    <ul class="address-list">
                        {{#each addressList}}
                        <li class="address-content {{#if isPreferred}}preferred{{/if}}" addressId={{id}}>
                            <div class="address-detail">
                                <strong>收货人:{{addressee}}</strong>
                                <br>
                                收货地址:{{address}}
                                <br>
                                联系电话:{{phone}}
                                <br>
                            </div>
                            <div class="address-edit">
                                <a href="javascript:void(0);" class="address-modify">修改</a>
                                <a href="javascript:void(0);" class="address-del">删除</a>
                                <br>
                                {{#if isPreferred}}
                                <a href="javascript:void(0);" class="btn-c2 default-btn">
                                    <span>
                                        已设为常用地址
                                    </span>
                                </a>
                                {{else}}
                                <a href="javascript:void(0);" class="btn-c3 set-default-btn">
                                    <span>
                                        设为常用地址
                                    </span>
                                </a>
                                {{/if}}
                            </div>
                        </li>
                        {{#if @last}}
                        <li class="clear"></li>
                        {{/if}}
                        {{/each}}
                    </ul>
                    <form id="address-form" name="address-form">
                        <div class="add-address">
                            <h2>
                                <span id="form-status">添加新地址</span>
                            </h2>
                            <div class="add-address-detail">
                                {{#each data}}
                                    <div class="form-group">
                                    {{#if isSelect}}
                                        <label>{{labelText}}</label>
                                        {{#each selects}}
                                            <select id="{{key}}" name="{{key}}">
                                                
                                            </select>
                                        {{/each}}
                                    {{else}}
                                        <label for="{{key}}">{{labelText}}</label>
                                        <input type="text" name='{{key}}' id="{{key}}" class="input-1 width-150" value="{{value}}">
                                    {{/if}}
                                    <span class="form-prompt form-info" id="{{key}}-tip">
                                        {{tips}}
                                        {{#isSelect}}
                                        <a href="{{tipsUrl}}" class="a-underline" target="_blank">
                                            查看货到付款地区
                                        </a>
                                        {{/isSelect}}
                                    </span>
                                    </div>
                                {{/each}}
                            </div>
                            <div class="dzgl-form-submit">
                                <input type="hidden" name="addrId" id="addrId" value="">
                                <input type="button" value="提交信息" class="btn-b1" id="{{submitId}}">
                                <input type="button" value="重置" class="btn-b1" id="btn-reset" style="display:none">
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    {{/ address}}
</div>
{{> layout/footer}}