cancel.html 2.3 KB

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