table.hbs 1.84 KB
<div class="address-table">

    <span class="blue table-title">已保存了{{data.length}}条地址,还能保存{{data.leftLength}}条地址</span>
    <table class="a-table">
        <tr class="table-head">
            <th class="width-name">收货人</th>
            <th class="width-address">所在区域</th>
            <th class="width-fulladdress">详细地址</th>
            <th class="width-mobile">手机/电话</th>
            <th class="width-opearte">操作</th>
        </tr>
        {{#each data}}
            <tr class="table-body ">
                <input type="hidden" id="tr_{{address_id}}" value="{{address_id}}">
                <input type="hidden" id="tr_{{area_code}}" value="{{area_code}}">
                <td class="width-name">{{consignee}}</td>
                <td class="width-address">{{area}}</td>
                <td class="width-fulladdress">{{address}}</td>
                <td class="width-mobile"><p>{{mobile}}</p>
                    <p>{{phone}}</p></td>
                <td class="width-opearte">
                    <div>
                        <span class="blue opreation update-address" data-id="{{address_id}}">修改</span>
                           
                        <em class="op-sep {{#if default}}hide{{/if}}">|</em>
                        <span class="blue opreation del-address {{#if default}}hide{{/if}}" data-id="{{address_id}}">删除</span>
                        {{#if default}}
                        <span class="btn set-default opreation current-default" data-id={{address_id}}>默认地址</span>
                        {{else}}
                        <span class="btn set-default opreation set" data-id={{address_id}}>设为默认</span>
                        {{/if}}
                        
                    </div>
                </td>
            </tr>
        {{/each}}
    </table>

</div>