refund.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2. <input type="hidden" name="updatetime" value="{$row.updatetime}" />
  3. <ul class="list-group">
  4. <li class="list-group-item">
  5. 订单金额:¥{$row.order_price}
  6. </li>
  7. <li class="list-group-item">
  8. 实付金额:¥{$row.total_price}元 (包含优惠¥{$row.discount_price},物流费用¥{$row.delivery_price})
  9. </li>
  10. {if $row.had_refund}
  11. <li class="list-group-item">
  12. 退款时间:{:date('Y-m-d H:i:s', $row.had_refund)}
  13. </li>
  14. <li class="list-group-item">
  15. 已退款:{:__('Yes')}
  16. </li>
  17. {else/}
  18. <li class="list-group-item">
  19. 已退款:{:__('No')}
  20. </li>
  21. {/if}
  22. {if $refund.service_type > 0}
  23. <li class="list-group-item">
  24. 客户退货物流单号:{$refund.express_number}
  25. </li>
  26. {/if}
  27. </ul>
  28. <style>
  29. .media {
  30. border-bottom: 1px solid #f1f1f1;
  31. }
  32. .media-left img {
  33. width: 100px;
  34. height: 100px;
  35. }
  36. .total-price {
  37. color: #ff5f17;
  38. }
  39. </style>
  40. {foreach $product as $key => $item}
  41. <div class="media">
  42. <div class="media-left media-middle">
  43. <a href="#">
  44. <img class="media-object" src="{$config.upload.cdnurl . $item.image}" alt="...">
  45. </a>
  46. </div>
  47. <div class="media-body">
  48. <div>商品ID:{$item.product_id}</div>
  49. <h4 class="media-heading">{$item.title}</h4>
  50. <div>规格:{$item.spec}</div>
  51. <div>{$item.number} ✖ {$item.price}</div>
  52. <div class="total-price">总共:{$item.price * $item.number} 元</div>
  53. </div>
  54. <div class="media-body">
  55. <h4 class="media-heading">{$item.choose == 1?'参与售后':'不参与售后'}</h4>
  56. </div>
  57. </div>
  58. {/foreach}
  59. <ul class="list-group" style="margin-top: 20px; margin-bottom: 50px">
  60. <li class="list-group-item">
  61. 货物状态:{$refund.receiving_status_text[$refund.receiving_status]}
  62. </li>
  63. <li class="list-group-item">
  64. 服务类型:{$refund.service_type_text[$refund.service_type]}
  65. </li>
  66. <li class="list-group-item">
  67. 退款金额:¥{$refund.amount}
  68. </li>
  69. <li class="list-group-item">
  70. 换货原因:{$refund.reason_type}
  71. </li>
  72. <li class="list-group-item">
  73. 退货说明:{$refund.refund_explain}
  74. </li>
  75. </ul>
  76. <style>
  77. .footer{
  78. background: #ecf0f1;
  79. height: auto;
  80. position: fixed;
  81. bottom: 0;
  82. padding: 10px !important;
  83. overflow: hidden;
  84. width: 100%;
  85. margin-bottom: 0px;
  86. }
  87. </style>
  88. <div class="form-group footer">
  89. <div class="col-xs-12 col-sm-8">
  90. <div class="radio">
  91. {:__('Refund status')}:
  92. {foreach name="refundStatusList" item="vo"}
  93. {if $key > 0}
  94. <label for="row[refund_status]-{$key}">
  95. <input id="row[refund_status]-{$key}" name="row[refund_status]" type="radio"
  96. value="{$key}" {in name="key" value="$row.refund_status" }checked{/in} /> {$vo}
  97. </label>
  98. {/if}
  99. {/foreach}
  100. </div>
  101. </div>
  102. <div class="col-xs-12 col-sm-4">
  103. <button type="button" class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-sm">{:__('OK')}</button>
  104. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  105. </div>
  106. </div>
  107. <div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
  108. <div class="modal-dialog modal-sm" role="document">
  109. <div class="modal-content">
  110. <div class="modal-header">
  111. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  112. <h4 class="modal-title" id="myModalLabel">{:__('Choose')}</h4>
  113. </div>
  114. <div class="alert alert-warning" role="alert">如果是货到付款的,请联系用户</div>
  115. <div class="alert alert-warning" role="alert">如果是在线支付的,请确认收到货再退钱</div>
  116. <div class="modal-body">
  117. <label for="row[refund_action]-0">
  118. <input id="row[refund_action]-0" name="row[refund_action]" type="radio" value="0" checked />
  119. {:__('Not withdraw money')}
  120. </label>
  121. <label for="row[refund_action]-1">
  122. <input id="row[refund_action]-1" name="row[refund_action]" type="radio" value="1" />
  123. {:__('Withdraw money')}
  124. </label>
  125. </div>
  126. <div class="modal-footer">
  127. <button type="button" class="btn btn-default" data-dismiss="modal">{:__('Close')}</button>
  128. <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
  129. </div>
  130. </div>
  131. </div>
  132. </div>
  133. </form>