complain_info.html 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. {include file="public/header" /}
  2. <div class="page">
  3. {include file="complain/complain_order_info" /}
  4. {include file="complain/complain_complain_info" /}
  5. {notempty name="complain_info.appeal_message"}
  6. {include file="complain/complain_appeal_info" /}
  7. {/notempty}
  8. {gt name="complain_info.complain_state" value="20"}
  9. {include file="complain/complain_talk_info" /}
  10. {/gt}
  11. {eq name="complain_info.complain_state" value="99"}{notempty name="complain_info.final_handle_message"}
  12. {include file="complain/complain_finish_info" /}
  13. {/notempty}{/eq}
  14. {neq name="complain_info.complain_state" value="99"}
  15. <table class="ds-default-table">
  16. <thead class="thead">
  17. <tr class="space">
  18. <th>{$Think.lang.complain_handle}</th>
  19. </tr>
  20. </thead>
  21. <tbody>
  22. <tr id="close_complain">
  23. <td>
  24. <form method='post' id="verify_form" action="{:url('Complain/complain_verify')}">
  25. <input name="complain_id" type="hidden" value="{$complain_info.complain_id}" />
  26. {eq name="complain_info.complain_state" value="10"}
  27. <a id="verify_button" class="btn" href="javascript:void(0)"><span>{$Think.lang.complain_text_verify}</span></a>
  28. {/eq}
  29. {neq name="complain_info.complain_state" value="99"}
  30. <a id="close_button" class="btn" href="javascript:void(0)"><span>{$Think.lang.complain_text_close}</span></a>
  31. {/neq}
  32. <a href="JavaScript:void(0);" class="btn" onclick="history.go(-1)"><span>{$Think.lang.ds_back}</span></a>
  33. </form>
  34. </td>
  35. </tr>
  36. <form method='post' id="close_form" action="{:url('Complain/complain_close')}">
  37. {notempty name="refund_goods"}
  38. <tr class="complain_dialog">
  39. <th>{$Think.lang.complain_refund_goods}</th>
  40. </tr>
  41. <tr class="complain_dialog">
  42. <td>
  43. <p> {$Think.lang.complain_refund_goods_tips}</p>
  44. <table class="ds-default-table">
  45. <tr>
  46. <th width="30">&nbsp;</th>
  47. <th colspan="2">{$Think.lang.ds_goods_name}</th>
  48. <th>{$Think.lang.complain_currency_refund_amount}</th>
  49. <th>{$Think.lang.complain_goods_pay_price}</th>
  50. <th>{$Think.lang.complain_goods_num}</th>
  51. <th>{$Think.lang.complain_text_price}</th>
  52. </tr>
  53. {foreach name="refund_goods" item="val"}
  54. <tr>
  55. <td width="30">
  56. {gt name="val.goods_refund" value="0"}
  57. <input class="checkitem" name="checked_goods[{$val.rec_id}]" type="checkbox" value="{$val.rec_id}" />
  58. {/gt}
  59. </td>
  60. <td width="65" align="center" valign="middle"><a style="text-decoration:none;" href="{:url('Goods/index',['goods'=>$val.goods_id])}" target="_blank">
  61. <img width="50" src="{:goods_cthumb($val.goods_image)}" />
  62. </a></td>
  63. <td class="intro">
  64. <p><a href="{:url('Goods/index',['goods'=>$val.goods_id])}" target="_blank">{$val.goods_name}</a></p>
  65. <p>{:get_order_goodstype($val.goods_type)}</p>
  66. </td>
  67. <td width="10%">{$Think.lang.currency}{$val.goods_refund}</td>
  68. <td width="10%">{$Think.lang.currency}{$val.goods_pay_price}</td>
  69. <td width="10%">{$val.goods_num}</td>
  70. <td width="10%">{$Think.lang.currency}{$val.goods_price}</td>
  71. </tr>
  72. {/foreach}
  73. </table></td>
  74. </tr>
  75. {/notempty}
  76. <tr class="complain_dialog">
  77. <th>{$Think.lang.final_handle_message}:</th>
  78. </tr>
  79. <input name="complain_id" type="hidden" value="{$complain_info.complain_id}" />
  80. <tr class="noborder complain_dialog">
  81. <td><textarea id="final_handle_message" name="final_handle_message" class="tarea"></textarea></td>
  82. </tr>
  83. <tr class="complain_dialog">
  84. <td>
  85. <a id="btn_handle_submit" class="btn" href="javascript:void(0)"><span>{$Think.lang.ds_submit}</span></a>
  86. <a id="btn_close_cancel" class="btn" href="javascript:void(0)"><span>{$Think.lang.ds_cancel}</span></a>
  87. </td>
  88. </tr>
  89. </form>
  90. </tbody>
  91. </table>
  92. {/neq}
  93. </div>
  94. <script type="text/javascript">
  95. $(document).ready(function () {
  96. $(".complain_dialog").hide();
  97. $("#verify_button").click(function () {
  98. layer.confirm("{$Think.lang.verify_submit_message}", {
  99. btn: ['{$Think.lang.ds_ok}', '{$Think.lang.ds_cancel}'],
  100. title: false,
  101. }, function () {
  102. $("#verify_form").submit();
  103. });
  104. });
  105. $("#close_button").click(function () {
  106. $("final_handle_message").text('');
  107. $(".complain_dialog").show();
  108. $("#close_complain").hide();
  109. });
  110. $("#btn_handle_submit").click(function () {
  111. if ($("#final_handle_message").val() == '') {
  112. layer.alert("{$Think.lang.final_handle_message_error}");
  113. } else {
  114. layer.confirm("{$Think.lang.complain_close_confirm}", {
  115. btn: ['{$Think.lang.ds_ok}', '{$Think.lang.ds_cancel}'],
  116. title: false,
  117. }, function () {
  118. $("#close_form").submit();
  119. });
  120. }
  121. });
  122. $("#btn_close_cancel").click(function () {
  123. $(".complain_dialog").hide();
  124. $("#close_complain").show();
  125. });
  126. });
  127. </script>