cancel.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <div class="eject_con">
  2. <div id="warning"></div>
  3. <form method="post" id="order_cancel_form" action="{:url('Sellerorder/change_state',['state_type'=>'order_cancel','order_id'=>$order_info.order_id])}">
  4. <dl>
  5. <dt>{$Think.lang.store_order_order_sn}{$Think.lang.ds_colon}</dt>
  6. <dd><span class="num">{$Request.param.order_sn}</span></dd>
  7. </dl>
  8. <dl>
  9. <dt>{$Think.lang.store_order_cancel_reason}{$Think.lang.ds_colon}</dt>
  10. <dd>
  11. <ul class="checked">
  12. <li>
  13. <input type="radio" checked name="state_info" id="d1" value="{$Think.lang.store_order_lose_goods}" />
  14. <label for="d1">{$Think.lang.store_order_lose_goods}</label>
  15. </li>
  16. <li>
  17. <input type="radio" name="state_info" id="d2" value="{$Think.lang.store_order_invalid_order}" />
  18. <label for="d2">{$Think.lang.store_order_invalid_order}</label>
  19. </li>
  20. <li>
  21. <input type="radio" name="state_info" id="d3" value="{$Think.lang.store_order_buy_apply}" />
  22. <label for="d3">{$Think.lang.store_order_buy_apply}</label>
  23. </li>
  24. <li>
  25. <input type="radio" name="state_info" flag="other_reason" id="d4" value="" />
  26. <label for="d4">{$Think.lang.store_order_other_reason}</label>
  27. </li>
  28. <li id="other_reason" style="display:none; height:80px;">
  29. <textarea name="state_info1" rows="2" id="other_reason_input" style="width:200px;"></textarea>
  30. </li>
  31. </ul>
  32. </dd>
  33. </dl>
  34. <dl class="bottom">
  35. <dt>&nbsp;</dt>
  36. <dd>
  37. <input type="submit" class="submit" id="confirm_button" value="{$Think.lang.ds_ok}" />
  38. </dd>
  39. </dl>
  40. </form>
  41. </div>
  42. <script type="text/javascript">
  43. $(document).ready(function(){
  44. $('#order_cancel_form').validate({
  45. submitHandler:function(form){
  46. ds_ajaxpost('order_cancel_form');
  47. }
  48. });
  49. });
  50. $(function(){
  51. $('#cancel_button').click(function(){
  52. DialogManager.close('seller_order_cancel_order');
  53. });
  54. $("input[name='state_info']").click(function(){
  55. if ($(this).attr('flag') == 'other_reason')
  56. {
  57. $('#other_reason').show();
  58. }
  59. else
  60. {
  61. $('#other_reason').hide();
  62. }
  63. });
  64. });
  65. </script>