address-list.hbs 1.21 KB
{{#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">
                <em class="consignee">{{consignee}}</em>
                <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}}