member_orders.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
  6. <title><?php echo $shoname; ?></title>
  7. <link rel="shortcut icon" href="" />
  8. <meta name="renderer" content="webkit">
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  11. <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
  12. <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
  13. <!--[if lt IE 9]>
  14. <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
  15. <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
  16. <![endif]-->
  17. <link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
  18. <link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
  19. <script type="text/javascript">
  20. window.sysinfo = {
  21. <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '{$_W['uniacid']}',<?php } ?>
  22. <?php if( !empty($_W['acid']) ){ ?>'acid': '{$_W['acid']}',<?php } ?>
  23. <?php if (!empty($_W['openid']) ) { ?>'openid': '{$_W['openid']}',<?php } ?>
  24. <?php if( !empty($_W['uid']) ) { ?>'uid': '{$_W['uid']}',<?php } ?>
  25. 'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php }else{ ?>0<?php } ?>,
  26. 'siteroot': '{$_W['siteroot']}',
  27. 'siteurl': '{$_W['siteurl']}',
  28. 'attachurl': '{$_W['attachurl']}',
  29. 'attachurl_local': '{$_W['attachurl_local']}',
  30. 'attachurl_remote': '{$_W['attachurl_remote']}',
  31. 'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
  32. 'cookie' : {'pre': ''},
  33. 'account' : {:json_encode($_W['account'])},
  34. };
  35. </script>
  36. <script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
  37. <script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
  38. <script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
  39. <script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
  40. <script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
  41. <script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
  42. <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
  43. <link href="/static/css/snailfish.css" rel="stylesheet">
  44. <style>
  45. .layui-table[lay-size=lg] td, .layui-table[lay-size=lg] th {
  46. padding: 15px 10px;
  47. }
  48. .product-info{padding-left: 80px;padding-top: 20px;}
  49. .tDiv img{float:left;}
  50. .hxBtn{color:#428bca;}
  51. </style>
  52. </head>
  53. <body layadmin-themealias="default">
  54. <div class="layui-fluid">
  55. <div class="layui-card">
  56. <div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">({$smember_info['username']})核销记录</span></div>
  57. <div class="layui-card-body" style="padding:15px;">
  58. <form action="" method="get" class="form-horizontal form-search layui-form" role="form">
  59. <input type="hidden" name="c" value="salesroom_order" />
  60. <input type="hidden" name="a" value="member_orders" />
  61. <input type="hidden" name="smember_id" value="{$smember_info['id']}" />
  62. <div class="layui-form-item">
  63. <div class="layui-inline">
  64. <div class="layui-input-inline" style="width: 300px;">
  65. <input type="text" class="layui-input" name='keyword' value="{$keyword}" placeholder="请输入订单号/商品名称/收货人/手机号">
  66. </div>
  67. <div class="layui-input-inline" >
  68. <select name='payment_code' class='layui-input layui-unselect' style="width:80px;" >
  69. <option value=''>支付方式</option>
  70. <option value='weixin' <?php if( $payment_code=='weixin' ){ ?>selected<?php } ?>>微信支付</option>
  71. <option value='yuer' <?php if( $payment_code=='yuer' ){ ?>selected<?php } ?>>余额支付</option>
  72. <option value='admin' <?php if( $payment_code=='admin' ){ ?>selected<?php } ?>>后台付款</option>
  73. </select>
  74. </div>
  75. <div class="layui-input-inline">
  76. <select name='searchtime' class='form-control' style="width:100px;padding:0 5px;" id="searchtime">
  77. <option value=''>不按时间</option>
  78. <option value='create_time' <?php if( $searchtime =='create_time' ){ ?>selected<?php } ?>>下单时间</option>
  79. </select>
  80. </div>
  81. <div class="layui-input-inline" style="width: 285px;">
  82. {:tpl_form_field_daterange('time', array('starttime'=>date('Y-m-d H:i', $starttime),'endtime'=>date('Y-m-d H:i', $endtime)),true);}
  83. </div>
  84. <div class="layui-input-inline">
  85. <button class="layui-btn layui-btn-sm" type="submit"> 搜索</button>
  86. </div>
  87. </div>
  88. </div>
  89. </form>
  90. <form action="" class="layui-form" lay-filter="example" method="post" >
  91. <div class="row">
  92. <div class="col-md-12">
  93. <table class="layui-table" lay-skin="line" lay-size="lg">
  94. <thead>
  95. <tr>
  96. <th style="width:20%">商品</th>
  97. <th style="width:10%;">收货姓名/电话</th>
  98. <th style="width:10%;">配送/支付</th>
  99. <th style="width:10%;">到店核销方式</th>
  100. <th style="width:10%;">核销时间</th>
  101. <th style="width:10%;">核销门店</th>
  102. <th style="width:10%;">核销人员</th>
  103. <th style="width:10%;">订单状态</th>
  104. <th style="width: 250px;">操作</th>
  105. </tr>
  106. </thead>
  107. <tbody>
  108. <?php if(!empty($list)){ ?>
  109. <?php foreach( $list as $item ){ ?>
  110. <tr class="tr-order-sn">
  111. <td colspan="8">
  112. <div class="tDiv ml10">
  113. <span class="words">订单号: {$item['order_num_alias']}</span>
  114. <span class="words">下单时间:{$item['date_added']}</span>
  115. </div>
  116. </td>
  117. </tr>
  118. <tr>
  119. <td>
  120. <div class="tDiv relative tpinfo last ">
  121. <div class="img">
  122. <img width="70" src="<?php echo tomedia($item['goods_images']);?>" alt="">
  123. </div>
  124. <div class="product-info">
  125. <div class="name mb5">{$item['goods_name']}</div>
  126. </div>
  127. </div>
  128. </td>
  129. <td>
  130. 姓名:{$item['shipping_name']}<br/>
  131. 电话:{$item['telephone']}<br/>
  132. </td>
  133. <td>
  134. <?php if( $item['payment_code']=='yuer'){ ?>
  135. <span> <i class="text-warning" style="font-size: 17px;"></i><span>余额支付</span></span>
  136. <?php }else if( $item['payment_code']=='admin' ){ ?>
  137. <span> <i class=" text-danger" style="font-size: 17px"></i>后台付款</span>
  138. <?php }else{ ?>
  139. <span class="line-text"> 微信支付</span>
  140. <?php } ?>
  141. </td>
  142. <td>
  143. <div class="tDiv" style="text-align: left;">
  144. <div style='margin-top:5px;display:block;'>
  145. <?php if($item['hexiao_type'] == 0){ ?>
  146. 订单核销
  147. <?php }else{ ?>
  148. 按次核销
  149. <?php } ?>
  150. </div>
  151. <div style='margin-top:5px;display:block;'>
  152. <?php if($item['is_hexiao_over'] == 1){ ?>
  153. <a class="hxBtn" href="javascript:;" data-href="{:U('order/view_hexiao_history', array('id' => $item['order_id'],'order_goods_id'=>$item['order_goods_id']))}">(核销记录)</a>
  154. <?php }else if($item['is_hexiao_over'] == 0 && $item['hexiao_count'] > $item['remain_hexiao_count']){ ?>
  155. <a class="hxBtn" href="javascript:;" data-href="{:U('order/view_hexiao_history', array('id' => $item['order_id'],'order_goods_id'=>$item['order_goods_id']))}">(部分使用)</a>
  156. <?php } ?>
  157. </div>
  158. </div>
  159. </td>
  160. <td>
  161. <?php echo date('Y-m-d H:i:s',$item['hexiao_time']);?>
  162. </td>
  163. <td>
  164. {$item['salesroom_name']}
  165. </td>
  166. <td>
  167. {$item['smember_name']}
  168. </td>
  169. <td>
  170. <?php if($item['is_hexiao_over'] == 1){ ?>
  171. <span style="color:#428bca;">已完成</span><br/>
  172. <?php }else{ ?>
  173. <span style="color:#428bca;">待核销</span>
  174. <?php } ?>
  175. </td>
  176. <td style="overflow:visible;position:relative">
  177. <a class='layui-btn layui-btn-xs' href="{:U('order/detail', array('id'=>$item['order_id']))}" >
  178. 查看详情
  179. </a>
  180. </td>
  181. </tr>
  182. <?php }}else{ ?>
  183. <tr>
  184. <td colspan="9" style="text-align: center;color:red;">
  185. 暂无记录!
  186. </td>
  187. </tr>
  188. <?php } ?>
  189. </tbody>
  190. <tfoot>
  191. <tr>
  192. <td colspan="9" style="text-align: right">
  193. {$pager}
  194. </td>
  195. </tr>
  196. </tfoot>
  197. </table>
  198. </div>
  199. </div>
  200. </form>
  201. </div>
  202. </div>
  203. </div>
  204. <script src="/layuiadmin/layui/layui.js"></script>
  205. <script>
  206. layui.config({
  207. base: '/layuiadmin/' //静态资源所在路径
  208. }).extend({
  209. index: 'lib/index' //主入口模块
  210. }).use('index');
  211. </script>
  212. <script>
  213. //由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
  214. var layer = layui.layer;
  215. var $;
  216. layui.use(['jquery', 'layer','form'], function(){
  217. $ = layui.$;
  218. var form = layui.form;
  219. $('.hxBtn').click(function(){
  220. var url = $(this).attr('data-href');
  221. $.post(url, {}, function(shtml){
  222. layer.open({
  223. type: 1,
  224. area: '930px',
  225. content: shtml //注意,如果str是object,那么需要字符拼接。
  226. });
  227. });
  228. return false;
  229. })
  230. })
  231. </script>
  232. </body>
  233. </html>