edit.html 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. {extend name="default/base/base_seller" /}
  2. {block name="seller_main"}
  3. <div class="dssc-flow-layout">
  4. <div class="dssc-flow-container">
  5. <div class="title">
  6. <h3>{$Think.lang.refund_service}</h3>
  7. </div>
  8. <div id="saleRefund">
  9. <div class="dssc-flow-step">
  10. <dl class="step-first current">
  11. <dt>{$Think.lang.buyer_application_refund}</dt>
  12. <dd class="bg"></dd>
  13. </dl>
  14. <dl class="{if $refund.seller_time > 0}current{/if}">
  15. <dt>{$Think.lang.merchant_process_refund_application}</dt>
  16. <dd class="bg"> </dd>
  17. </dl>
  18. <dl class="{if $refund.admin_time > 0}current{/if}">
  19. <dt>{$Think.lang.refund_complete}</dt>
  20. <dd class="bg"> </dd>
  21. </dl>
  22. </div>
  23. </div>
  24. <div class="dssc-form-default">
  25. <h3>{$Think.lang.buyer_refund_application}</h3>
  26. <dl>
  27. <dt>{$Think.lang.refund_order_refundsn}:</dt>
  28. <dd>{$refund.refund_sn}</dd>
  29. </dl>
  30. <dl>
  31. <dt>{$Think.lang.applicant_buyers}:</dt>
  32. <dd>{$refund.buyer_name}</dd>
  33. </dl>
  34. <dl>
  35. <dt>{$Think.lang.refund_buyer_message}{$Think.lang.ds_colon}</dt>
  36. <dd> {$refund.reason_info} </dd>
  37. </dl>
  38. <dl>
  39. <dt>{$Think.lang.refund_order_refund}{$Think.lang.ds_colon}</dt>
  40. <dd><strong class="red">{$Think.lang.currency}{$refund.refund_amount}</strong></dd>
  41. </dl>
  42. <dl>
  43. <dt>{$Think.lang.refund_instructions}:</dt>
  44. <dd> {$refund.buyer_message} </dd>
  45. </dl>
  46. <dl>
  47. <dt>{$Think.lang.credentials_upload}:</dt>
  48. <dd>
  49. {notempty name="pic_list"}
  50. <ul class="dssc-evidence-pic">
  51. {foreach name="pic_list" item="val" key="key" }
  52. {notempty name="val"}
  53. <li><a href="{:ds_get_pic(ATTACH_PATH.'/refund',$val)}" data-lightbox="lightbox-image"> <img class="show_image" src="{:ds_get_pic(ATTACH_PATH.'/refund',$val)}"></a></li>
  54. {/notempty}
  55. {/foreach}
  56. </ul>
  57. {/notempty}
  58. </dd>
  59. </dl>
  60. <form id="post_form" method="post" action="{:url('Sellerrefund/edit',['refund_id'=>$refund.refund_id])}">
  61. <h3>{$Think.lang.business_processing}</h3>
  62. <dl>
  63. <dt><i class="required">*</i>{$Think.lang.refund_seller_confirm}{$Think.lang.ds_colon}</dt>
  64. <dd>
  65. <label class="mr20">
  66. <input type="radio" class="radio vm" name="seller_state" value="2" />
  67. {$Think.lang.refund_state_yes}</label>
  68. <label>
  69. <input type="radio" class="radio vm" name="seller_state" value="3" />
  70. {$Think.lang.refund_state_no}</label>
  71. <span class="error"></span>
  72. </dd>
  73. </dl>
  74. <dl>
  75. <dt><i class="required">*</i>{$Think.lang.refund_message}{$Think.lang.ds_colon}</dt>
  76. <dd>
  77. <textarea name="seller_message" rows="2" class="textarea w300"></textarea>
  78. <span class="error"></span>
  79. <p class="hint">{$Think.lang.refund_seller_desc}<br>
  80. {$Think.lang.return_amount_buyer}<br>
  81. {$Think.lang.platform_complain_reapply}</p>
  82. </dd>
  83. </dl>
  84. <div class="bottom">
  85. <a class="submit" id="confirm_button">{$Think.lang.ds_ok}</a>
  86. </div>
  87. </form>
  88. </div>
  89. </div>
  90. {include file="default/seller/sellerrefund/seller_refund_right" /}
  91. </div>
  92. <link rel="stylesheet" href="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/css/lightbox.min.css">
  93. <script src="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/js/lightbox.min.js"></script>
  94. <script type="text/javascript">
  95. $(function () {
  96. $("#confirm_button").click(function () {
  97. $("#post_form").submit();
  98. });
  99. $('#post_form').validate({
  100. errorPlacement: function (error, element) {
  101. error.appendTo(element.parentsUntil('dl').find('span.error'));
  102. },
  103. submitHandler: function (form) {
  104. ds_ajaxpost('post_form', 'url', "{:url('Sellerrefund/index', ['lock' =>$refund.order_lock])}")
  105. },
  106. rules: {
  107. seller_state: {
  108. required: true
  109. },
  110. seller_message: {
  111. required: true
  112. }
  113. },
  114. messages: {
  115. seller_state: {
  116. required: '<i class="iconfont">&#xe64c;</i>{$Think.lang.refund_seller_confirm_null}'
  117. },
  118. seller_message: {
  119. required: '<i class="iconfont">&#xe64c;</i>{$Think.lang.refund_message_null}'
  120. }
  121. }
  122. });
  123. });
  124. </script>
  125. {/block}