index.html 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. {extend name="default/base/base_seller" /}
  2. {block name="seller_btn"}
  3. <a href="{:url('Sellervrorder/exchange')}" class="dssc-btn dssc-btn-orange"><i class="iconfont">&#xe731;</i>{$Think.lang.check_exchange_code}</a>
  4. {/block}
  5. {block name="seller_main"}
  6. <form method="get" action="" target="_self">
  7. <table class="search-form">
  8. <input type="hidden" name="state_type" value="{$Request.param.state_type}" />
  9. <tr>
  10. <td>&nbsp;</td>
  11. {if condition="$Request.param.state_type eq 'store_order'"}
  12. <td>
  13. <input type="checkbox" id="skip_off" value="1" {if $Request.get.skip_off==1}checked="checked"{/if} name="skip_off"> <label for="skip_off">{$Think.lang.not_show_closed_orders}</label></td>
  14. {/if}
  15. <th>{$Think.lang.store_order_add_time}</th>
  16. <td class="w240">
  17. <input type="text" class="text w70" name="query_start_date" id="query_start_date" value="{$Request.param.query_start_date}" />
  18. <label class="add-on"><i class="iconfont">&#xe8d6;</i></label>&nbsp;&#8211;&nbsp;
  19. <input id="query_end_date" class="text w70" type="text" name="query_end_date" value="{$Request.param.query_end_date}" />
  20. <label class="add-on"><i class="iconfont">&#xe8d6;</i></label>
  21. </td>
  22. <th>{$Think.lang.store_order_buyer}</th>
  23. <td class="w100"><input type="text" class="text w80" name="buyer_name" value="{$Request.param.buyer_name}" /></td>
  24. <th>{$Think.lang.store_order_order_sn}</th>
  25. <td class="w160"><input type="text" class="text w150" name="order_sn" value="{$Request.param.order_sn}" /></td>
  26. <td class="w70 tc">
  27. <input type="submit" class="submit" value="{$Think.lang.store_order_search}" />
  28. </td>
  29. </tr>
  30. </table>
  31. </form>
  32. <table class="dssc-default-table order">
  33. <thead>
  34. <tr>
  35. <th class="w40 tc"></th>
  36. <th colspan="2">{$Think.lang.store_order_goods_detail}</th>
  37. <th class="w200">{$Think.lang.store_order_goods_single_price}</th>
  38. <th class="w100">{$Think.lang.store_show_order_amount}</th>
  39. <th class="w200">{$Think.lang.store_order_buyer}</th>
  40. <th class="w200">{$Think.lang.store_order_sum}</th>
  41. <th class="w200">{$Think.lang.trading_status}</th>
  42. <th class="w200">{$Think.lang.trading_operations}</th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. {notempty name="order_list"}
  47. {foreach name="order_list" item="order" key="order_id" }
  48. <tr>
  49. <td colspan="9" class="sep-row"></td>
  50. </tr>
  51. <tr>
  52. <th colspan="9"><span class="ml10">{$Think.lang.store_order_order_sn}{$Think.lang.ds_colon}<em>{$order.order_sn}</em>{if $order.order_from == 2}<i class="iconfont">&#xe60e;</i>{/if}</span>
  53. <span>{$Think.lang.store_order_add_time}{$Think.lang.ds_colon}<em class="goods-time">{$order.add_time|date="Y-m-d H:i:s"}</em></span>
  54. </th>
  55. </tr>
  56. <tr>
  57. <td class="bdl"></td>
  58. <td class="w70"><div class="dssc-goods-thumb"><a href="{:url('Goods/index',['goods_id'=>$order.goods_id])}" target="_blank"><img src="{:goods_thumb($order,240)}"/></a></div></td>
  59. <td class="tl">
  60. <dl class="goods-name">
  61. <dt><a target="_blank" href="{:url('Goods/index',['goods_id'=>$order.goods_id])}">{$order.goods_name}</a></dt>
  62. <dd>{if $order.order_promotion_type == 1}<span class="sale-type">{$Think.lang.store_order_group}</span>{/if}</dd>
  63. </dl>
  64. </td>
  65. <td>{$order.goods_price}</td>
  66. <td>{$order.goods_num}</td>
  67. <td class="bdl"><div class="buyer">{$order.buyer_name}
  68. <p member_id="{$order.buyer_id}">
  69. {if $order.extend_member.member_qq}
  70. <a target="_blank" href="{$Think.HTTP_TYPE}wpa.qq.com/msgrd?v=3&uin={$order.extend_member.member_qq}&site=qq&menu=yes" ><img border="0" src="{$Think.HTTP_TYPE}wpa.qq.com/pa?p=2:{$order.extend_member.member_qq}:52" style=" vertical-align: middle;"/></a>
  71. {/if}
  72. {if $order.extend_member.member_ww}
  73. <a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&uid={$order.extend_member.member_ww}&site=cntaobao&s=2&charset=utf-8" ><img border="0" src="http://amos.im.alisoft.com/online.aw?v=2&uid={$order.extend_member.member_ww}&site=cntaobao&s=2&charset=utf-8" alt="Wang Wang" style=" vertical-align: middle;" /></a>
  74. {/if}
  75. </p>
  76. <div class="buyer-info"> <em></em>
  77. <div class="con">
  78. <h3><i></i><span>{$Think.lang.store_order_buyer_info}</span></h3>
  79. <dl>
  80. <dt>{$Think.lang.store_order_receiver}{$Think.lang.ds_colon}</dt>
  81. <dd>{$order.buyer_name}</dd>
  82. </dl>
  83. <dl>
  84. <dt>{$Think.lang.store_order_phone}{$Think.lang.ds_colon}</dt>
  85. <dd>{$order.buyer_phone}</dd>
  86. </dl>
  87. </div>
  88. </div>
  89. </div>
  90. </td>
  91. <td class="bdl">
  92. <p class="dssc-order-amount">{$order.order_amount}</p>
  93. <p class="goods-pay" title="{$Think.lang.store_order_pay_method}{$Think.lang.ds_colon}{$order.payment_name}">{$order.payment_name}</p>
  94. </td>
  95. <td class="bdl bdr">
  96. <p>{$order.state_desc|raw}</p>
  97. <!-- 订单查看 -->
  98. <p><a href="{:url('Sellervrorder/show_order',['order_id'=>$order.order_id])}" target="_blank">{$Think.lang.store_order_view_order}</a></p>
  99. </td>
  100. <td class="bdl bdr">
  101. <!-- 取消订单 -->
  102. {if $order.if_cancel}
  103. <p><a href="javascript:void(0)" class="dssc-btn dssc-btn-red mt5" ds_type="dialog" uri="{:url('Sellervrorder/change_state',['state_type'=>'order_cancel','order_sn'=>$order.order_sn,'order_id'=>$order.order_id])}" dialog_title="{$Think.lang.store_order_cancel_order}" dialog_id="seller_order_cancel_order" dialog_width="400" id="order{$order.order_id}_action_cancel" /><i class="iconfont">&#xe699;</i>{$Think.lang.store_order_cancel_order}</a></p>
  104. {/if}
  105. </td>
  106. </tr>
  107. {/foreach}
  108. {else/}
  109. <tr>
  110. <td colspan="9" class="norecord"><div class="warning-option"><i class="iconfont">&#xe64c;</i><span>{$Think.lang.no_record}</span></div></td>
  111. </tr>
  112. {/notempty}
  113. </tbody>
  114. <tfoot>
  115. {notempty name="order_list"}
  116. <tr>
  117. <td colspan="9">{$show_page|raw}</td>
  118. </tr>
  119. {/notempty}
  120. </tfoot>
  121. </table>
  122. <script type="text/javascript">
  123. $(function(){
  124. $('#query_start_date').datepicker({dateFormat: 'yy-mm-dd'});
  125. $('#query_end_date').datepicker({dateFormat: 'yy-mm-dd'});
  126. $('.checkall_s').click(function(){
  127. var if_check = $(this).prop('checked');
  128. $('.checkitem').each(function(){
  129. if(!this.disabled)
  130. {
  131. $(this).prop('checked', if_check);
  132. }
  133. });
  134. $('.checkall_s').prop('checked', if_check);
  135. });
  136. $('#skip_off').click(function(){
  137. url = location.href.replace(/&skip_off=\d*/g,'');
  138. window.location.href = url + '&skip_off=' + ($('#skip_off').prop('checked') ? '1' : '0');
  139. });
  140. });
  141. </script>
  142. {/block}