123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- {extend name="default/base/base_seller" /}
- {block name="seller_btn"}
- <a href="javascript:void(0)" class="dssc-btn dssc-btn-green" ds_type="dialog" dialog_title="{$Think.lang.store_daddress_new_address}" dialog_id="my_address_add" uri=" {:url('Sellerdeliverset/daddress_add')}" dialog_width="550" title="{$Think.lang.store_daddress_new_address}">{$Think.lang.store_daddress_new_address}</a>
- {/block}
- {block name="seller_main"}
- <table class="dssc-default-table">
- <thead>
- <tr>
- <th class="w100">{$Think.lang.whether_default}</th>
- <th class="w150">{$Think.lang.store_daddress_receiver_name}</th>
- <th class="tl">{$Think.lang.store_daddress_deliver_address}</th>
- <th class="w150">{$Think.lang.store_daddress_phone}</th>
- <th class="w250">{$Think.lang.ds_handle}</th>
- </tr>
- </thead>
- <tbody>
- {if $address_list}
- {foreach name="address_list" item="address"}
- <tr class="bd-line">
- <td>
- <label for="is_default_{$address.daddress_id}">
- <input type="radio" id="is_default_{$address.daddress_id}" name="is_default"{if $address.daddress_isdefault eq '1'} checked {/if} value="{$address.daddress_id}">{$Think.lang.store_daddress_default}
- </label>
- </td>
- <td>{$address.seller_name}</td>
- <td class="tl">{$address.area_info} {$address.daddress_detail}</td>
- <td><span class="tel">{$address.daddress_telphone}</span> <br/>
- <td class="dscs-table-handle">
- <span>
- <a href="javascript:void(0);" dialog_id="my_address_edit" dialog_width="640" dialog_title="{$Think.lang.store_daddress_edit_address}" ds_type="dialog" uri="{:url('Sellerdeliverset/daddress_add',['address_id'=>$address.daddress_id])}" class="btn-blue"><i class="iconfont"></i>
- <p>{$Think.lang.ds_edit}</p>
- </a>
- </span>
- <span>
- <a href="javascript:void(0)" onclick="ds_ajaxget_confirm('{:url('Sellerdeliverset/daddress_del',['address_id'=>$address.daddress_id])}','{$Think.lang.ds_common_op_confirm}');" class="btn-red"><i class="iconfont"></i>
- <p>{$Think.lang.ds_del}</p>
- </a>
- </span>
- </td>
- </tr>
- {/foreach}
- {else}
- <tr>
- <td colspan="20" class="norecord">
- <div class="warning-option"><i class="iconfont"></i><span>{$Think.lang.no_record}</span>
- </div>
- </td>
- </tr>
- {/if}
- </tbody>
- <tfoot>
- <tr>
- <td colspan="20"> </td>
- </tr>
- </tfoot>
- </table>
- <script>
- $(function () {
- $('input[name="is_default"]').on('click', function () {
- $.get(HOMESITEURL + '/Sellerdeliverset/daddress_default_set.html?address_id=' + $(this).val(), function (result) {})
- });
- });
- </script>
- {/block}
|