edit_price.html 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <div class="eject_con">
  2. <div id="warning"></div>
  3. {if $order_info}
  4. <form id="changeform" method="post" action="{:url('Sellerorder/change_state',['state_type'=>'modify_price','order_id'=>$order_info.order_id])}">
  5. <dl>
  6. <dt>{$Think.lang.store_order_buyer_with}{$Think.lang.ds_colon}</dt>
  7. <dd>{$order_info.buyer_name}</dd>
  8. </dl>
  9. <dl>
  10. <dt>{$Think.lang.store_order_sn}{$Think.lang.ds_colon}</dt>
  11. <dd><span class="num">{$order_info.order_sn}</span></dd>
  12. </dl>
  13. <dl>
  14. <dt>{$Think.lang.store_show_order_tp_fee}{$Think.lang.ds_colon}</dt>
  15. <dd>
  16. <input type="text" class="text" id="shipping_fee" name="shipping_fee" value="{$order_info.shipping_fee}"/>
  17. </dd>
  18. </dl>
  19. <dl class="bottom">
  20. <dt>&nbsp;</dt>
  21. <dd>
  22. <input type="submit" class="submit" id="confirm_button" value="{$Think.lang.ds_ok}" />
  23. </dd>
  24. </dl>
  25. </form>
  26. {else /}
  27. <p style="line-height:80px;text-align:center">{$Think.lang.store_order_not_exist}</p>
  28. {/if}
  29. </div>
  30. <script type="text/javascript">
  31. $(function () {
  32. $('#changeform').validate({
  33. errorLabelContainer: $('#warning'),
  34. invalidHandler: function (form, validator) {
  35. var errors = validator.numberOfInvalids();
  36. if (errors) {
  37. $('#warning').show();
  38. } else {
  39. $('#warning').hide();
  40. }
  41. },
  42. submitHandler: function (form) {
  43. ds_ajaxpost('changeform');
  44. },
  45. rules: {
  46. order_amount: {
  47. required: true,
  48. number: true
  49. }
  50. },
  51. messages: {
  52. order_amount: {
  53. required: '{$Think.lang.store_order_modify_price_gpriceerror}',
  54. number: '{$Think.lang.store_order_modify_price_gpriceerror}'
  55. }
  56. }
  57. });
  58. });
  59. </script>