index.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. {extend name="default/base/base_member" /}
  2. {block name="member_main"}
  3. <form method="get" target="_self">
  4. <table class="dsm-search-table">
  5. <input type="hidden" name= "recycle" value="{$Request.param.recycle}" />
  6. <tr>
  7. <td>&nbsp;</td>
  8. <th>{$Think.lang.member_order_state}</th>
  9. <td class="w100">
  10. <select name="state_type">
  11. <option value="" {if condition="$Request.param.state_type eq ''"}selected{/if}>{$Think.lang.member_order_all}</option>
  12. <option value="state_new" {if condition="$Request.param.state_type eq 'state_new'"}selected{/if}>{$Think.lang.member_order_wait_pay}</option>
  13. <option value="state_pay" {if condition="$Request.param.state_type eq 'state_pay'"}selected{/if}>{$Think.lang.member_order_wait_ship}</option>
  14. <option value="state_send" {if condition="$Request.param.state_type eq 'state_send'"}selected{/if}>{$Think.lang.member_order_shipped}</option>
  15. <option value="state_success" {if condition="$Request.param.state_type eq 'state_success'"}selected{/if}>{$Think.lang.member_order_finished}</option>
  16. <option value="state_noeval" {if condition="$Request.param.state_type eq 'state_noeval'"}selected{/if}>{$Think.lang.member_order_want_evaluate}</option>
  17. <option value="state_cancel" {if condition="$Request.param.state_type eq 'state_cancel'"}selected{/if}>{$Think.lang.member_order_cancel_order}</option>
  18. </select>
  19. </td>
  20. <th>{$Think.lang.member_order_time}</th>
  21. <td class="w240">
  22. <input type="text" class="text w70" name="query_start_date" id="query_start_date" value="{$Request.param.query_start_date}"/>
  23. <label class="add-on"><i class="iconfont">&#xe8d6;</i></label>&nbsp;&#8211;&nbsp;
  24. <input type="text" class="text w70" name="query_end_date" id="query_end_date" value="{$Request.param.query_end_date}"/>
  25. <label class="add-on"><i class="iconfont">&#xe8d6;</i></label>
  26. </td>
  27. <th>{$Think.lang.member_order_sn}</th>
  28. <td class="w160"><input type="text" class="text w150" name="order_sn" value="{$Request.param.order_sn}"></td>
  29. <td class="w70 tc">
  30. <input type="submit" class="submit" value="{$Think.lang.ds_search}"/>
  31. </td>
  32. </tr>
  33. </table>
  34. </form>
  35. <table class="dsm-default-table order">
  36. <thead>
  37. <tr>
  38. <th class="w10"></th>
  39. <th colspan="2">{$Think.lang.site_search_goods}</th>
  40. <th class="w100">{$Think.lang.member_order_price}({$Think.lang.ds_yuan})</th>
  41. <th class="w40">{$Think.lang.member_order_amount}</th>
  42. <th class="w100">{$Think.lang.member_order_service}</th>
  43. <th class="w120">{$Think.lang.order_amount}</th>
  44. <th class="w100">{$Think.lang.transaction_status}</th>
  45. <th class="w150">{$Think.lang.transaction_action}</th>
  46. </tr>
  47. </thead>
  48. <?php if ($order_group_list) { ?>
  49. <?php foreach ($order_group_list as $order_pay_sn => $group_info) { ?>
  50. <?php $p = 0;?>
  51. <tbody order_id="" <?php if (!empty($group_info['pay_amount']) && $p == 0) {?> class="pay" <?php }?>>
  52. <?php foreach($group_info['order_list'] as $order_id => $order_info) {?>
  53. {if empty($group_info['pay_amount'])}
  54. <tr>
  55. <td colspan="19" class="sep-row"></td>
  56. </tr>
  57. {/if}
  58. {if !empty($group_info['pay_amount']) && $p == 0}
  59. <tr>
  60. <td colspan="19" class="sep-row"></td>
  61. </tr>
  62. <tr>
  63. <td colspan="19" class="pay-td"><span class="ml15">{$Think.lang.online_payment_amount}:<em>¥{:ds_price_format($group_info['pay_amount'])}</em></span> <a class="dsm-btn dsm-btn-orange fr mr15" href="{:url('Buy/pay',['pay_sn'=>$order_pay_sn])}"><i class="iconfont">&#xe6f0;</i>{$Think.lang.order_payment}</a></td>
  64. </tr>
  65. {/if}
  66. <?php $p++;?>
  67. <tr>
  68. <th colspan="19"> <span class="ml10">
  69. <!-- order_sn -->
  70. {$Think.lang.member_order_sn}{$Think.lang.ds_colon}{$order_info.order_sn}
  71. {if $order_info.order_from == 2}
  72. <i class="iconfont">&#xe60e;</i>
  73. {/if}
  74. </span>
  75. <!-- order_time -->
  76. <span>{$Think.lang.member_order_time}{$Think.lang.ds_colon}{$order_info.add_time|date="Y-m-d H:i:s"}</span>
  77. <!-- store_name -->
  78. <span><a href="{:url('Store/index',['store_id'=>$order_info.store_id])}" title="{$order_info.store_name}">{$order_info.store_name}</a></span>
  79. <!-- QQ -->
  80. {present name="order_info"}
  81. <span member_id="{$order_info.extend_store.member_id}">
  82. {if !empty($order_info['extend_store']['store_qq'])}
  83. <a target="_blank" href="{$Think.HTTP_TYPE}wpa.qq.com/msgrd?v=3&uin={$order_info.extend_store.store_qq}&site=qq&menu=yes" ><img border="0" src="{$Think.HTTP_TYPE}wpa.qq.com/pa?p=2:{$order_info.extend_store.store_qq}:52" style=" vertical-align: middle;"/></a>
  84. {/if}
  85. <!-- wang wang -->
  86. {if !empty($order_info['extend_store']['store_ww'])}
  87. <a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&uid={$order_info.extend_store.store_ww}&site=cntaobao&s=2&charset=utf-8" class="vm" ><img border="0" src="http://amos.im.alisoft.com/online.aw?v=2&uid={$order_info.extend_store.store_ww}&site=cntaobao&s=2&charset=utf-8" alt="Wang Wang" style=" vertical-align: middle;"/></a>
  88. {/if}
  89. </span>
  90. {/present}
  91. <!-- 放入回收站 -->
  92. {if $order_info.if_delete}
  93. <a href="javascript:void(0);" class="order-trash" onclick="ds_ajaxget_confirm('{:url('Memberorder/change_state',['state_type'=>'order_delete','order_id'=>$order_info.order_id])}','{$Think.lang.delete_recycle_bin_recovery}');"><i class="iconfont">&#xe725;</i>{$Think.lang.ds_delete}</a>
  94. {/if}
  95. <!-- 还原订单 -->
  96. {if $order_info.if_restore}
  97. <a href="javascript:void(0);" class="order-trash" onclick="ds_ajaxget_confirm('{:url('Memberorder/change_state',['state_type'=>'order_restore','order_id'=>$order_info.order_id])}','{$Think.lang.determination_reduction}');"><i class="iconfont">&#xe717;</i>{$Think.lang.restore}</a>
  98. {/if}
  99. </th>
  100. </tr>
  101. <!-- S 商品列表 -->
  102. <?php $i = 0;?>
  103. <?php foreach ($order_info['goods_list'] as $k => $goods_info) {?>
  104. <?php $i++;?>
  105. <tr>
  106. <td class="bdl"></td>
  107. <td class="w70"><div class="dsm-goods-thumb"><a href="{:url('Goods/index',['goods_id'=>$goods_info.goods_id])}" target="_blank"><img src="{:goods_thumb($goods_info,240)}"/></a></div></td>
  108. <td class="tl"><dl class="goods-name">
  109. <dt><a href="{$goods_info.goods_url}" target="_blank">{$goods_info.goods_name}</a></dt>
  110. {notempty name="$goods_info.goods_type_cn"}
  111. <dd><span class="sale-type">{$goods_info.goods_type_cn}</span></dd>
  112. {/notempty}
  113. </dl></td>
  114. <td>{$goods_info.goods_price}</td>
  115. <td>{$goods_info.goods_num}</td>
  116. <td><!-- 退款 -->
  117. {if isset($goods_info['refund']) && $goods_info['refund'] == 1}
  118. <p><a href="{:url('Memberrefund/add_refund',['order_id'=>$order_info.order_id,'goods_id'=>$goods_info.rec_id])}">{$Think.lang.refund_return}</a></p>
  119. {/if}
  120. <!-- 退货退款中 -->
  121. {if isset($goods_info['extend_refund']) && !in_array($goods_info['extend_refund']['refund_state'],[3,4])}
  122. <p><a href="{if $goods_info['extend_refund']['return_type']==1}{:url('Memberrefund/view',['refund_id'=>$goods_info['extend_refund']['refund_id']])}{else}{:url('Memberreturn/view',['return_id'=>$goods_info['extend_refund']['refund_id']])}{/if}">{$Think.lang.refund_in_returns}</a></p>
  123. {/if}
  124. <!-- 投诉 -->
  125. {if $order_info.if_complain}
  126. <p><a href="{:url('Membercomplain/complain_new',['order_id'=>$order_info.order_id,'goods_id'=>$goods_info.rec_id])}">{$Think.lang.trading_complaints}</a></p>
  127. {/if}
  128. </td>
  129. <!-- S 合并TD -->
  130. <?php if (($order_info['goods_count'] > 1 && $k ==0) || ($order_info['goods_count'] == 1)){?>
  131. <td class="bdl" rowspan="{$order_info.goods_count}"><p class=""><strong>{$order_info.order_amount}</strong></p>
  132. <p class="goods-freight">
  133. {if $order_info.shipping_fee > 0}
  134. ({$Think.lang.member_order_shipping_han}{$Think.lang.member_show_order_tp_fee}{$order_info.shipping_fee})
  135. {else /}
  136. {$Think.lang.ds_common_shipping_free}
  137. {/if}
  138. </p>
  139. <p title="{$Think.lang.member_order_pay_method}{$Think.lang.ds_colon}{$order_info.payment_name}">{$order_info.payment_name}</p></td>
  140. <td class="bdl" rowspan="{$order_info.goods_count}"><p>{$order_info.state_desc|raw}</p>
  141. <!-- 订单查看 -->
  142. <p><a href="{:url('Memberorder/show_order',['order_id'=>$order_info.order_id])}" target="_blank">{$Think.lang.member_order_view_order}</a></p>
  143. <!-- 物流跟踪 -->
  144. {if $order_info.if_deliver}
  145. <p><a href="{:url('Memberorder/search_deliver',['order_id'=>$order_info.order_id,'order_sn'=>$order_info.order_sn])}" target="_blank">{$Think.lang.member_order_show_deliver}</a></p>
  146. {/if}
  147. </td>
  148. <td class="bdl bdr" rowspan="{$order_info.goods_count}"><!-- 永久删除 -->
  149. <!-- 锁定-->
  150. {if $order_info.if_lock && isset($order_info['extend_refund'])}
  151. <p><a href="{:url('Memberrefund/view',['refund_id'=>$order_info['extend_refund']['refund_id']])}">{$Think.lang.refund_in_returns}</a></p>
  152. {/if}
  153. <!-- 取消订单 -->
  154. {if $order_info.if_cancel}
  155. <p><a href="javascript:void(0)" class="dsm-btn dsm-btn-red" ds_type="dialog" dialog_width="480" dialog_title="{$Think.lang.member_order_cancel_order}" dialog_id="buyer_order_cancel_order" uri="{:url('Memberorder/change_state',['state_type'=>'order_cancel','order_id'=>$order_info.order_id])}" id="order{$order_info.order_id}_action_cancel"><i class="iconfont">&#xe754;</i>{$Think.lang.member_order_cancel_order}</a></p>
  156. {/if}
  157. <!-- 退款取消订单 -->
  158. {if $order_info.if_refund_cancel}
  159. <p><a href="{:url('Memberrefund/add_refund_all',['order_id'=>$order_info.order_id])}" class="dsm-btn"><i class="iconfont">&#xe6f3;</i>{$Think.lang.order_refund}</a></p>
  160. {/if}
  161. <!-- 收货 -->
  162. {if $order_info.if_receive}
  163. <p><a href="javascript:void(0)" class="dsm-btn" ds_type="dialog" dialog_id="buyer_order_confirm_order" dialog_width="480" dialog_title="{$Think.lang.member_order_ensure_order}" uri="{:url('Memberorder/change_state',['state_type'=>'order_receive','order_id'=>$order_info.order_id,'order_sn'=>$order_info.order_sn])}" id="order{$order_info.order_id}_action_confirm">{$Think.lang.member_order_ensure_order}</a></p>
  164. {/if}
  165. <!-- 评价 -->
  166. {if $order_info.if_evaluation}
  167. <p><a class="dsm-btn dsm-btn-acidblue" href="{:url('Memberevaluate/add',['order_id'=>$order_info.order_id])}"><i class="iconfont">&#xe67e;</i>{$Think.lang.member_order_want_evaluate}</a></p>
  168. {/if}
  169. <!-- 已经评价 -->
  170. {if $order_info.evaluation_state == 1}{$Think.lang.order_state_eval|raw}{/if}
  171. {if $order_info.if_drop}
  172. <p><a href="javascript:void(0);" onclick="ds_ajaxget_confirm('{:url('Memberorder/change_state',['state_type'=>'order_drop','order_id'=>$order_info.order_id])}','{$Think.lang.delete_cannot_view_order}');" class="dsm-btn dsm-btn-red mt5"><i class="iconfont">&#xe725;</i>{$Think.lang.permanent_deletion}</a></p>
  173. {/if}
  174. </td>
  175. <!-- E 合并TD -->
  176. <?php } ?>
  177. </tr>
  178. <!-- S 赠品列表 -->
  179. <?php if (!empty($order_info['zengpin_list']) && $i == count($order_info['goods_list'])) { ?>
  180. <tr>
  181. <td class="bdl"></td>
  182. <td colspan="5" class="tl"><div class="dsm-goods-gift"> {$Think.lang.freebies}:
  183. <ul>
  184. {foreach name="$order_info.zengpin_list" item="zengpin_info" }
  185. <li><a title="{$Think.lang.freebies}:{$zengpin_info.goods_name} * {$zengpin_info.goods_num}" href="{$zengpin_info.goods_url}" target="_blank"><img src="{:goods_thumb($zengpin_info,240)}" /></a></li>
  186. {/foreach}
  187. </ul>
  188. </div></td>
  189. </tr>
  190. <?php } ?>
  191. <!-- E 赠品列表 -->
  192. <?php } ?>
  193. <!-- E 商品列表 -->
  194. <?php } ?>
  195. </tbody>
  196. <?php } ?>
  197. <?php } else { ?>
  198. <tbody>
  199. <tr>
  200. <td colspan="20" class="norecord"><div class="warning-option"><i>&nbsp;</i><span>{$Think.lang.no_record}</span></div></td>
  201. </tr>
  202. </tbody>
  203. <?php } ?>
  204. {if $order_pay_list}
  205. <tfoot>
  206. <tr>
  207. <td colspan="19"><div class="pagination">{$show_page|raw}</div></td>
  208. </tr>
  209. </tfoot>
  210. {/if}
  211. </table>
  212. <script type="text/javascript">
  213. $(function(){
  214. $('#query_start_date').datepicker({dateFormat: 'yy-mm-dd'});
  215. $('#query_end_date').datepicker({dateFormat: 'yy-mm-dd'});
  216. });
  217. </script>
  218. {/block}