delay_receive.html 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <div class="eject_con">
  2. <div id="warning"></div>
  3. {if $order_info}
  4. <form id="changeform" method="post" action="{:url('Sellerdeliver/delay_receive',['order_id'=>$order_info.order_id])}">
  5. <dl>
  6. <dt>{$Think.lang.store_order_sn}{$Think.lang.ds_colon}</dt>
  7. <dd><span class="num">{$order_info.order_sn}</span></dd>
  8. </dl>
  9. <dl>
  10. <dt>{$Think.lang.store_order_buyer_with}{$Think.lang.ds_colon}</dt>
  11. <dd>{$order_info.buyer_name}</dd>
  12. </dl>
  13. <dl>
  14. <dt>{$Think.lang.latest_time_delivery}{$Think.lang.ds_colon}</dt>
  15. <dd>{$order_info.delay_time|date="Y-m-d H:i:s"}<br/>{$Think.lang.automatic_change_receiving_state} </dd>
  16. </dl>
  17. <dl>
  18. <dt>{$Think.lang.store_deliver_delay}{$Think.lang.ds_colon}</dt>
  19. <dd>
  20. <select name="delay_date">
  21. <option value="5">5</option>
  22. <option value="10">10</option>
  23. <option value="15">15</option>
  24. </select> {$Think.lang.day}
  25. </dd>
  26. </dl>
  27. <div class="bottom">
  28. <input type="submit" class="submit" id="confirm_button" value="{$Think.lang.ds_ok}" />
  29. </div>
  30. </form>
  31. {else /}
  32. <p style="line-height:80px;text-align:center">{$Think.lang.check_parameters_correct}</p>
  33. {/if}
  34. </div>
  35. <script type="text/javascript">
  36. $(function () {
  37. $('#changeform').validate({
  38. errorLabelContainer: $('#warning'),
  39. invalidHandler: function (form, validator) {
  40. var errors = validator.numberOfInvalids();
  41. if (errors) {
  42. $('#warning').show();
  43. } else {
  44. $('#warning').hide();
  45. }
  46. },
  47. submitHandler: function (form) {
  48. ds_ajaxpost('changeform');
  49. },
  50. rules: {
  51. order_amount: {
  52. required: true,
  53. number: true
  54. }
  55. },
  56. messages: {
  57. order_amount: {
  58. required: '{$Think.lang.store_order_modify_price_gpriceerror}',
  59. number: '{$Think.lang.store_order_modify_price_gpriceerror}'
  60. }
  61. }
  62. });
  63. });
  64. </script>