free_freight.html 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {extend name="default/base/base_seller" /}
  2. {block name="seller_main"}
  3. <div class="dssc-form-default">
  4. <form method="post" action="{:url('Sellerdeliverset/free_freight')}" id="my_store_form">
  5. <dl>
  6. <dt>{$Think.lang.free_freight}{$Think.lang.ds_colon}</dt>
  7. <dd>
  8. <input class="text w60" name="store_free_price" maxlength="10" type="text" id="store_free_price" value="{$store_free_price}" /><em class="add-on">
  9. <i class="iconfont">&#xe65c;</i>
  10. </em>
  11. <p class="hint"> {$Think.lang.notes_free_freight_amount}</p>
  12. </dd>
  13. <dt>{$Think.lang.estimated_delivery_time}{$Think.lang.ds_colon}</dt>
  14. <dd>
  15. <input class="text w60" name="store_free_time" maxlength="10" type="text" id="store_free_time" value="{$store_free_time}" /><em class="add-on">
  16. {$Think.lang.day}</em>
  17. <p class="hint">{$Think.lang.notice_estimated_delivery_time}</p>
  18. </dd>
  19. </dl>
  20. <div class="bottom">
  21. <input type="submit" class="submit" value="{$Think.lang.ds_common_button_save}" />
  22. </div>
  23. </form>
  24. </div>
  25. <script type="text/javascript">
  26. $(function () {
  27. $('#my_store_form').validate({
  28. submitHandler: function (form) {
  29. ds_ajaxpost('my_store_form');
  30. },
  31. rules: {
  32. store_free_price: {
  33. required: true,
  34. number: true
  35. },
  36. store_free_time: {
  37. required: true,
  38. digits: true
  39. },
  40. },
  41. messages: {
  42. store_free_price: {
  43. required: '{$Think.lang.please_fill_amount}',
  44. number: '{$Think.lang.please_fill_correctly}'
  45. },
  46. store_free_time: {
  47. required: '{$Think.lang.please_fill_days}',
  48. digits: '{$Think.lang.please_fill_correctly}'
  49. }
  50. }
  51. });
  52. });
  53. </script>
  54. {/block}