index.html 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {extend name="default/base/base_seller" /}
  2. {block name="seller_btn"}
  3. <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>
  4. {/block}
  5. {block name="seller_main"}
  6. <table class="dssc-default-table">
  7. <thead>
  8. <tr>
  9. <th class="w100">{$Think.lang.whether_default}</th>
  10. <th class="w150">{$Think.lang.store_daddress_receiver_name}</th>
  11. <th class="tl">{$Think.lang.store_daddress_deliver_address}</th>
  12. <th class="w150">{$Think.lang.store_daddress_phone}</th>
  13. <th class="w250">{$Think.lang.ds_handle}</th>
  14. </tr>
  15. </thead>
  16. <tbody>
  17. {if $address_list}
  18. {foreach name="address_list" item="address"}
  19. <tr class="bd-line">
  20. <td>
  21. <label for="is_default_{$address.daddress_id}">
  22. <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}
  23. </label>
  24. </td>
  25. <td>{$address.seller_name}</td>
  26. <td class="tl">{$address.area_info}&nbsp{$address.daddress_detail}</td>
  27. <td><span class="tel">{$address.daddress_telphone}</span> <br/>
  28. <td class="dscs-table-handle">
  29. <span>
  30. <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">&#xe731;</i>
  31. <p>{$Think.lang.ds_edit}</p>
  32. </a>
  33. </span>
  34. <span>
  35. <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">&#xe725;</i>
  36. <p>{$Think.lang.ds_del}</p>
  37. </a>
  38. </span>
  39. </td>
  40. </tr>
  41. {/foreach}
  42. {else}
  43. <tr>
  44. <td colspan="20" class="norecord">
  45. <div class="warning-option"><i class="iconfont">&#xe64c;</i><span>{$Think.lang.no_record}</span>
  46. </div>
  47. </td>
  48. </tr>
  49. {/if}
  50. </tbody>
  51. <tfoot>
  52. <tr>
  53. <td colspan="20">&nbsp;</td>
  54. </tr>
  55. </tfoot>
  56. </table>
  57. <script>
  58. $(function () {
  59. $('input[name="is_default"]').on('click', function () {
  60. $.get(HOMESITEURL + '/Sellerdeliverset/daddress_default_set.html?address_id=' + $(this).val(), function (result) {})
  61. });
  62. });
  63. </script>
  64. {/block}