complain_appeal.html 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. {extend name="default/base/base_seller" /}
  2. {block name="seller_main"}
  3. <div class="dssc-flow-layout" id="dsscComplainFlow">
  4. <div class="dssc-flow-container">
  5. <div class="title">
  6. <h3>{$Think.lang.complain_trade_complaint}</h3>
  7. </div>
  8. <div class="dssc-flow-step">
  9. <dl id="state_new" class="step-first current">
  10. <dt>{$Think.lang.complain_state_new}</dt>
  11. <dd class="bg"></dd>
  12. </dl>
  13. <dl id="state_appeal" class="">
  14. <dt>{$Think.lang.complain_state_appeal}</dt>
  15. <dd class="bg"></dd>
  16. </dl>
  17. <dl id="state_talk" class="">
  18. <dt>{$Think.lang.complain_state_talk}</dt>
  19. <dd class="bg"></dd>
  20. </dl>
  21. <dl id="state_handle" class="">
  22. <dt>{$Think.lang.complain_state_handle}</dt>
  23. <dd class="bg"></dd>
  24. </dl>
  25. <dl id="state_finish" class="">
  26. <dt>{$Think.lang.complain_state_finish}</dt>
  27. </dl>
  28. </div>
  29. <div class="dssc-form-default">
  30. <h3>{$Think.lang.complain_message}</h3>
  31. <dl>
  32. <dt>{$Think.lang.complain_state}{$Think.lang.ds_colon}</dt>
  33. <dd>{$complain_info.complain_state_text}</dd>
  34. <dt>{$Think.lang.complain_subject_content}{$Think.lang.ds_colon}</dt>
  35. <dd>{$complain_info.complain_subject_content}</dd>
  36. <dt>{$Think.lang.complain_evidence}{$Think.lang.ds_colon}</dt>
  37. <dd>
  38. {if empty($complain_info.complain_pic1) && empty($complain_info.complain_pic2) && empty($complain_info.complain_pic3)}
  39. {$Think.lang.complain_pic_none}
  40. {else/}
  41. {notempty name="$complain_info.complain_pic1"}
  42. <a href="{:ds_get_pic(ATTACH_PATH.'/complain',$complain_info.complain_pic1)}" target="_blank" data-lightbox="lightbox-image"><img class="show_image" src="{:ds_get_pic(ATTACH_PATH.'/complain',$complain_info.complain_pic1)}" width="50"></a>
  43. {/notempty}
  44. {notempty name="$complain_info.complain_pic2"}
  45. <a href="{:ds_get_pic(ATTACH_PATH.'/complain',$complain_info.complain_pic2)}" target="_blank" data-lightbox="lightbox-image"><img class="show_image" src="{:ds_get_pic(ATTACH_PATH.'/complain',$complain_info.complain_pic2)}" width="50"></a>
  46. {/notempty}
  47. {notempty name="$complain_info.complain_pic3"}
  48. <a href="{:ds_get_pic(ATTACH_PATH.'/complain',$complain_info.complain_pic3)}" target="_blank" data-lightbox="lightbox-image"><img class="show_image" src="{:ds_get_pic(ATTACH_PATH.'/complain',$complain_info.complain_pic3)}" width="50"></a>
  49. {/notempty}
  50. {/if}
  51. </dd>
  52. <dt>{$Think.lang.complain_datetime}{$Think.lang.ds_colon}</dt>
  53. <dd>{$complain_info.complain_datetime|date="Y-m-d H:i:s"}</dd>
  54. <dt>{$Think.lang.complain_content}{$Think.lang.ds_colon}</dt>
  55. <dd>{$complain_info.complain_content}</dd>
  56. </dl>
  57. <h3>{$Think.lang.complain_appeal_detail}</h3>
  58. <form action="{:url('Sellercomplain/appeal_save')}" method="post" id="appeal_add_form" enctype="multipart/form-data">
  59. <input name="input_complain_id" type="hidden" value="{$complain_info.complain_id}"/>
  60. <dl>
  61. <dt>{$Think.lang.complain_appeal_content}{$Think.lang.ds_colon}</dt>
  62. <dd>
  63. <textarea class="w600" name="input_appeal_message" rows="3"></textarea>
  64. </dd>
  65. </dl>
  66. <dl>
  67. <dt>{$Think.lang.complain_appeal_evidence_upload}{$Think.lang.ds_colon}</dt>
  68. <dd>
  69. <p>
  70. <input name="input_appeal_pic1" type="file"/>
  71. </p>
  72. <p>
  73. <input name="input_appeal_pic2" type="file"/>
  74. </p>
  75. <p>
  76. <input name="input_appeal_pic3" type="file"/>
  77. </p>
  78. </dd>
  79. </dl>
  80. <div class="bottom">
  81. <input id="submit_button" type="submit" class="submit" value="{$Think.lang.ds_submit}">
  82. </div>
  83. </form>
  84. </div>
  85. </div>
  86. {include file="default/seller/sellercomplain/complain_order_info" /}
  87. </div>
  88. <link rel="stylesheet" href="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/css/lightbox.min.css">
  89. <script src="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/js/lightbox.min.js"></script>
  90. <script type="text/javascript">
  91. $(document).ready(function () {
  92. var state = '{$complain_info.complain_state|default=0}';
  93. if (state <= 10) {
  94. $("#state_new").addClass('current');
  95. }
  96. if (state == 20) {
  97. $("#state_new").addClass('current');
  98. $("#state_appeal").addClass('current');
  99. }
  100. if (state == 30) {
  101. $("#state_new").addClass('current');
  102. $("#state_appeal").addClass('current');
  103. $("#state_talk").addClass('current');
  104. }
  105. if (state == 40) {
  106. $("#state_new").addClass('current');
  107. $("#state_appeal").addClass('current');
  108. $("#state_talk").addClass('current');
  109. $("#state_handle").addClass('current');
  110. }
  111. if (state == 99) {
  112. $("#state_new").addClass('current');
  113. $("#state_appeal").addClass('current');
  114. $("#state_talk").addClass('current');
  115. $("#state_handle").addClass('current');
  116. $("#state_finish").addClass('current');
  117. }
  118. });
  119. </script>
  120. <script type="text/javascript">
  121. $(document).ready(function () {
  122. //页面输入内容验证
  123. $("#appeal_add_form").validate({
  124. errorPlacement: function (error, element) {
  125. $(element).next('.field_notice').hide();
  126. $(element).after(error);
  127. },
  128. rules: {
  129. input_appeal_message: {
  130. required: true,
  131. maxlength: 100
  132. },
  133. input_appeal_pic1: {
  134. accept: 'image/jpg,image/jpeg,image/gif,image/png'
  135. },
  136. input_appeal_pic2: {
  137. accept: 'image/jpg,image/jpeg,image/gif,image/png'
  138. },
  139. input_appeal_pic3: {
  140. accept: 'image/jpg,image/jpeg,image/gif,image/png'
  141. }
  142. },
  143. messages: {
  144. input_appeal_message: {
  145. required: '{$Think.lang.appeal_message_error}',
  146. maxlength: '{$Think.lang.appeal_message_error}'
  147. },
  148. input_appeal_pic1: {
  149. accept: '{$Think.lang.complain_pic_error}'
  150. },
  151. input_appeal_pic2: {
  152. accept: '{$Think.lang.complain_pic_error}'
  153. },
  154. input_appeal_pic3: {
  155. accept: '{$Think.lang.complain_pic_error}'
  156. }
  157. }
  158. });
  159. });
  160. </script>
  161. {/block}