complain_new.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. {extend name="default/base/base_member" /}
  2. {block name="member_main"}
  3. <div class="dsm-flow-layout" id=" dsmComplainFlow">
  4. <div class="dsm-flow-container">
  5. <div class="title">
  6. <h3>{$Think.lang.trade_complaint_application}</h3>
  7. </div>
  8. <div class="dsm-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. <dd class="bg"> </dd>
  28. </dl>
  29. </div>
  30. <div class="dsm-default-form">
  31. <form action="{:url('Membercomplain/complain_save')}" method="post" id="complain_form" enctype="multipart/form-data">
  32. <input name="input_order_id" type="hidden" value="{$return_info.order_id}" />
  33. <input name="input_goods_id" type="hidden" value="{$goods_id}" />
  34. <dl>
  35. <dt>{$Think.lang.complain_subject_select}{$Think.lang.ds_colon}</dt>
  36. <dd>
  37. {notempty name="subject_list"}
  38. {foreach name="subject_list" item="val"}
  39. <input name="input_complain_subject" type="radio" value="{$val.complainsubject_id},{$val.complainsubject_content}" />
  40. <span class="mr30"><strong>{$val.complainsubject_content}</strong></span><p class="hint">{$val.complainsubject_desc} </p>
  41. {/foreach}
  42. {/notempty}
  43. </dd>
  44. </dl>
  45. <dl>
  46. </dl>
  47. <dl>
  48. <dt>{$Think.lang.complain_content}{$Think.lang.ds_colon}</dt>
  49. <dd>
  50. <textarea name="input_complain_content" rows="3" class="textarea w400" id="input_complain_content"></textarea>
  51. </dd>
  52. </dl>
  53. <dl>
  54. <dt>{$Think.lang.complain_evidence_upload}{$Think.lang.ds_colon}</dt>
  55. <dd>
  56. <p>
  57. <input name="input_complain_pic1" type="file" />
  58. </p>
  59. <p>
  60. <input name="input_complain_pic2" type="file" />
  61. </p>
  62. <p>
  63. <input name="input_complain_pic3" type="file" />
  64. </p>
  65. <span class="error">({$Think.lang.complain_pic_error}) </span>
  66. </dd>
  67. </dl>
  68. <div class="bottom">
  69. <input id="submit_button" type="submit" class="submit" value="{$Think.lang.complain_text_submit}" >
  70. <a href="javascript:history.go(-1);" class="dsm-btn ml10">{$Think.lang.cancel_and_return}</a>
  71. </div>
  72. </form>
  73. </div>
  74. </div>
  75. {include file="default/member/membercomplain/complain_order"}
  76. </div>
  77. <script type="text/javascript">
  78. $(function(){
  79. //默认选中第一个radio
  80. $(":radio").first().attr("checked",true);
  81. $("#complain_form").validate({
  82. errorPlacement: function(error, element){
  83. $(element).next('.field_notice').hide();
  84. $(element).after(error);
  85. },
  86. rules : {
  87. input_complain_content : {
  88. required : true
  89. }
  90. },
  91. messages : {
  92. input_complain_content : {
  93. required : '{$Think.lang.please_fill_complaint}'
  94. }
  95. }
  96. });
  97. });
  98. </script>
  99. {/block}