complain_order_info.html 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <div class="page">
  2. <table class="ds-default-table">
  3. <thead class="thead">
  4. <tr class="space">
  5. <th>{$Think.lang.complain_progress}</th>
  6. </tr>
  7. </thead>
  8. <tbody>
  9. <tr>
  10. <td class="progress"><span id="state_new" class="text">{$Think.lang.complain_state_new}</span> <span class="next-step"></span> <span id="state_appeal" class="text">{$Think.lang.complain_state_appeal}</span> <span class="next-step"></span> <span id="state_talk" class="text">{$Think.lang.complain_state_talk}</span>
  11. <span class="next-step">
  12. </span> <span id="state_handle" class="text">{$Think.lang.complain_state_handle}</span> <span class="next-step"></span> <span id="state_finish" class="text">{$Think.lang.complain_state_finish}</span></td>
  13. </tr>
  14. </tbody>
  15. </table>
  16. <table class="ds-default-table">
  17. <thead class="thead">
  18. <tr class="space">
  19. <th>{$Think.lang.order_detail}</th>
  20. </tr></thead>
  21. <tbody>
  22. <tr class="noborder">
  23. <td><ul>
  24. <li>
  25. <strong>{$Think.lang.ds_store_name}:</strong>
  26. <a href="{:url('home/Store/index',['store_id'=>$order_info.store_id])}">
  27. {$order_info.store_name}
  28. </a>
  29. </li>
  30. <li>
  31. <strong>{$Think.lang.order_state}:</strong>
  32. <b>{$order_info.order_state_text|raw}</b>
  33. </li>
  34. <li>
  35. <strong>{$Think.lang.ds_order_sn}:</strong>
  36. <a href="{:url('Order/show_order',['order_id'=>$order_info.order_id])}" target="_blank">
  37. {$order_info.order_sn}
  38. </a>
  39. </li>
  40. <li>
  41. <strong>{$Think.lang.order_datetime}:</strong>
  42. {$order_info.add_time|date="Y-m-d H:i:s"}
  43. </li>
  44. <li>
  45. <strong>{$Think.lang.order_price}:</strong>
  46. {$Think.lang.currency}{$order_info.order_amount}
  47. {gt name="order_info.refund_amount" value="0"}
  48. ({$Think.lang.order_refund}:{$Think.lang.currency}{$order_info.refund_amount})
  49. {/gt}
  50. </li>
  51. {notempty name="order_info.voucher_price"}
  52. <li>
  53. <strong>{$Think.lang.order_voucher_price}:</strong>
  54. {$Think.lang.currency}{$order_info.voucher_price}
  55. </li>
  56. <li><strong>{$Think.lang.order_voucher_sn}:</strong>{$order_info.voucher_code}</li>
  57. {/notempty}
  58. </ul></td>
  59. </tr>
  60. </tbody>
  61. </table>
  62. <script type="text/javascript">
  63. $(document).ready(function(){
  64. var state = {empty name="complain_info.complain_state"}0{else}{$complain_info.complain_state}{/empty};
  65. if(state <= 10) {
  66. $("#state_new").addClass('red');
  67. }
  68. if(state == 20 ){
  69. $("#state_new").addClass('green');
  70. $("#state_appeal").addClass('red');
  71. }
  72. if(state == 30 ){
  73. $("#state_new").addClass('green');
  74. $("#state_appeal").addClass('green');
  75. $("#state_talk").addClass('red');
  76. }
  77. if(state == 40 ){
  78. $("#state_new").addClass('green');
  79. $("#state_appeal").addClass('green');
  80. $("#state_talk").addClass('green');
  81. $("#state_handle").addClass('red');
  82. }
  83. if(state == 99 ){
  84. $("#state_new").addClass('green');
  85. $("#state_appeal").addClass('green');
  86. $("#state_talk").addClass('green');
  87. $("#state_handle").addClass('green');
  88. $("#state_finish").addClass('green');
  89. }
  90. });
  91. </script>
  92. </div>