details.html 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. {extend name="common/common2" /}
  2. {block name="main"}
  3. <div class="row">
  4. <div class="col-sm-12">
  5. <div class="ibox float-e-margins">
  6. <div class="ibox-content">
  7. <table class="table table-bordered">
  8. <tbody>
  9. <tr>
  10. <th style="width:120px ">订单号</th><td>{$info['order_sn']}</td>
  11. </tr>
  12. <tr>
  13. <th>订单金额</th><td>{$info['amount']}</td>
  14. </tr>
  15. <tr>
  16. <th>收货人</th><td>{$info['name']}</td>
  17. </tr>
  18. <tr>
  19. <th>联系电话</th><td>{$info['phone']}</td>
  20. </tr>
  21. <tr>
  22. <th>详细地址</th><td>{$info['address']}</td>
  23. </tr>
  24. <tr>
  25. <th>创建日期</th><td>{$info['create_time']}</td>
  26. </tr>
  27. {if in_array($info.status,[1,2,3,5])}
  28. <tr>
  29. <th>支付类型</th>
  30. <td>{if $info.pay_type==1}微信支付{/if}</td>
  31. </tr>
  32. <tr>
  33. <th>支付日期</th><td>{$info['pay_time']}</td>
  34. </tr>
  35. {/if}
  36. {if in_array($info.status,[2,3,5])}
  37. <tr>
  38. <th>发货日期</th><td>{$info['send_time']}</td>
  39. </tr>
  40. {/if}
  41. {if in_array($info.status,[3,5])}
  42. <tr>
  43. <th>完成日期</th><td>{$info['finish_time']}</td>
  44. </tr>
  45. {/if}
  46. {if $info.status==4}
  47. <tr>
  48. <th>取消日期</th><td>{$info['cancel_time']}</td>
  49. </tr>
  50. {/if}
  51. <!--<tr>-->
  52. <!--<th>送达时间</th>-->
  53. <!--<td>{$info.delivery_date}</td>-->
  54. <!--</tr>-->
  55. <tr>
  56. <th>配送类型</th>
  57. <td>{if $info.delivery_type==1}商家配送{/if}</td>
  58. </tr>
  59. <tr>
  60. <th>订单备注</th>
  61. <td>{$info.order_remark}</td>
  62. </tr>
  63. <tr>
  64. <th>状态</th>
  65. <td>{$info.status_name}</td>
  66. </tr>
  67. <tr>
  68. <th>订单类型</th>
  69. {if $info.order_type==0}
  70. <td>普通订单</td>
  71. {else}
  72. <td>桶装水订单</td>
  73. {/if}
  74. </tr>
  75. {if $info.order_type==1}
  76. {if $info.is_has_barrel==0}
  77. <tr>
  78. <th>是否有空桶</th>
  79. <td>没有</td>
  80. </tr>
  81. <tr>
  82. <th>押金</th>
  83. <td>{$info.cash_price}</td>
  84. </tr>
  85. <tr>
  86. <th>押金备注</th>
  87. <td>{$info.remark}</td>
  88. </tr>
  89. {else}
  90. <tr>
  91. <th>是否有空桶</th>
  92. <td>有</td>
  93. </tr>
  94. {/if}
  95. {/if}
  96. {if $info['is_can_refund']==1}
  97. <tr>
  98. <th>操作</th><td><a href="javascript:;" url="{:url('WxOrdersRefund/goodsRefund',['id'=>$info['id'],'type'=>1])}" data-title="退款" onclick="layer_open(this,2)" class="btn btn-xs btn-danger">申请退款</a>
  99. </td>
  100. </tr>
  101. {/if}
  102. </tbody>
  103. </table>
  104. </div>
  105. {if $info.status==5}
  106. <div class="ibox-content">
  107. <table class="table table-bordered">
  108. <thead>
  109. <tr>
  110. <th>分值</th>
  111. <th>评价内容</th>
  112. <th>评价时间</th>
  113. </tr>
  114. </thead>
  115. <tbody>
  116. <tr>
  117. <td>{$info['comment']['score']}</td>
  118. <td>{$info['comment']['content']}</td>
  119. <td>{$info['comment']['create_time']}</td>
  120. </tr>
  121. </tbody>
  122. </table>
  123. </div>
  124. {/if}
  125. <div class="ibox-content">
  126. <table class="table table-bordered">
  127. <thead>
  128. <tr>
  129. <th>图片</th>
  130. <th>商品名称</th>
  131. <th>价格</th>
  132. <th>购买数量</th>
  133. <th>售后状态</th>
  134. <th>操作</th>
  135. </tr>
  136. </thead>
  137. <tbody>
  138. {volist name="info['goods']" id='v'}
  139. <tr>
  140. <td><img src="{$v['img']}" alt="" onclick="open_img(this)" style="width: 40px;" ></td>
  141. <td>{$v['title']}</td>
  142. <td>{$v['price']}</td>
  143. <td>{$v['num']}</td>
  144. <td>{if $v['is_refund'] >1}
  145. <a href="javascript:;" url="{:url('WxOrdersRefund/details',['id'=>$info['id'],'goodsId'=>$v['goods_id'],'type'=>0])}" data-title="售后详情" onclick="layer_open(this,2)" class="btn btn-xs {if $v.is_refund==3} btn-danger {else}btn-success {/if} " >{$v['refund_status_name']}</a>
  146. {else}
  147. 暂无售后
  148. {/if}</td>
  149. <td>
  150. {if $v['is_refund'] ==1}
  151. <a href="javascript:;" url="{:url('WxOrdersRefund/goodsRefund',['id'=>$info['id'],'goodsId'=>$v['goods_id']])}" data-title="申请退款" onclick="layer_open(this,2)" class="btn btn-xs btn-danger">申请退款</a>
  152. {/if}
  153. </td>
  154. </tr>
  155. {/volist}
  156. </tbody>
  157. </table>
  158. </div>
  159. </div>
  160. </div>
  161. </div>
  162. {/block}