cancel.html 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <div class="eject_con">
  2. <div id="warning"></div>
  3. {if $order_info }
  4. <form method="post" action="{:url('Memberorder/change_state',['state_type'=>'order_cancel','order_id'=>$order_info.order_id])}" id="order_cancel_form">
  5. <dl>
  6. <dt>{$Think.lang.member_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.member_change_cancel_reason}{$Think.lang.ds_colon}</dt>
  11. <dd>
  12. <ul class="eject_con-list">
  13. <li>
  14. <input type="radio" class="radio" checked name="state_info" id="d1" value="{$Think.lang.member_change_other_goods}" />
  15. <label for="d1">{$Think.lang.member_change_other_goods}</label>
  16. </li>
  17. <li>
  18. <input type="radio" class="radio" name="state_info" id="d2" value="{$Think.lang.member_change_other_shipping}" />
  19. <label for="d2">{$Think.lang.member_change_other_shipping}</label>
  20. </li>
  21. <li>
  22. <input type="radio" class="radio" name="state_info" id="d3" value="{$Think.lang.member_change_other_store}" />
  23. <label for="d3">{$Think.lang.member_change_other_store}</label>
  24. </li>
  25. <li>
  26. <input type="radio" class="radio" name="state_info" flag="other_reason" id="d4" value="" />
  27. <label for="d4">{$Think.lang.member_change_other_reason}</label>
  28. </li>
  29. <li id="other_reason" style="display:none;">
  30. <textarea name="state_info1" class="textarea w300 h50" rows="2" id="other_reason_input"></textarea>
  31. </li>
  32. </ul>
  33. </dd>
  34. </dl>
  35. <div class="bottom">
  36. <input type="submit" id="confirm_button" class="submit" value="{$Think.lang.ds_ok}{$Think.lang.ds_submit}" />
  37. <a class="dsm-btn ml5" href="javascript:DialogManager.close('buyer_order_cancel_order');">{$Think.lang.ds_cancel}</a>
  38. </div>
  39. </form>
  40. {else /}
  41. <p style="line-height:80px;text-align:center">{$Think.lang.check_parameters_correct}</p>
  42. {/if}
  43. </div>
  44. <script type="text/javascript">
  45. $(document).ready(function(){
  46. $('#order_cancel_form').validate({
  47. submitHandler:function(form){
  48. ds_ajaxpost('order_cancel_form','url',"{:url('Memberorder/index')}");
  49. }
  50. });
  51. });
  52. $(function(){
  53. $("input[name='state_info']").click(function(){
  54. if ($(this).attr('flag') == 'other_reason')
  55. {
  56. $('#other_reason').show();
  57. }
  58. else
  59. {
  60. $('#other_reason').hide();
  61. }
  62. });
  63. });
  64. </script>