buy_invoice.html 1.1 KB

12345678910111213141516171819202122232425262728
  1. <div class="dsc-receipt-info"><div class="dsc-receipt-info-title">
  2. <h3>{$Think.lang.invoice_information}</h3>
  3. <a href="javascript:void(0)" ds_type="buy_edit" id="edit_invoice">[{$Think.lang.modification}]</a></div>
  4. <div id="invoice_list" class="dsc-candidate-items">
  5. <ul>
  6. <li>{$inv_info.content}</li>
  7. </ul>
  8. </div>
  9. </div>
  10. <script type="text/javascript">
  11. //隐藏发票列表
  12. function hideInvList(content) {
  13. $('#edit_invoice').show();
  14. $("#invoice_list").html('<ul><li>' + content + '</li></ul>');
  15. $('.current_box').removeClass('current_box');
  16. ableOtherEdit();
  17. //重新定位到顶部
  18. $("html, body").animate({scrollTop: 0}, 0);
  19. }
  20. //加载发票列表
  21. $('#edit_invoice').on('click', function() {
  22. $(this).hide();
  23. disableOtherEdit('{$Think.lang.save_invoice_information}');
  24. $(this).parent().parent().addClass('current_box');
  25. var url = HOMESITEURL + '/Buy/load_inv.html';
  26. $('#invoice_list').load(url);
  27. });
  28. </script>