pincommiss_list.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465
  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. tbody tr td{
  46. position: relative;
  47. }
  48. tbody tr .icow-weibiaoti--{
  49. visibility: hidden;
  50. display: inline-block;
  51. color: #fff;
  52. height:18px;
  53. width:18px;
  54. background: #e0e0e0;
  55. text-align: center;
  56. line-height: 18px;
  57. vertical-align: middle;
  58. }
  59. tbody tr:hover .icow-weibiaoti--{
  60. visibility: visible;
  61. }
  62. tbody tr .icow-weibiaoti--.hidden{
  63. visibility: hidden !important;
  64. }
  65. .full .icow-weibiaoti--{
  66. margin-left:10px;
  67. }
  68. .full>span{
  69. display: -webkit-box;
  70. display: -webkit-flex;
  71. display: -ms-flexbox;
  72. display: flex;
  73. vertical-align: middle;
  74. align-items: center;
  75. }
  76. tbody tr .label{
  77. margin: 5px 0;
  78. }
  79. .goods_attribute a{
  80. cursor: pointer;
  81. }
  82. .newgoodsflag{
  83. width: 22px;height: 16px;
  84. background-color: #ff0000;
  85. color: #fff;
  86. text-align: center;
  87. position: absolute;
  88. bottom: 70px;
  89. left: 57px;
  90. font-size: 12px;
  91. }
  92. .a{cursor: pointer;}
  93. </style>
  94. </head>
  95. <body layadmin-themealias="default">
  96. <table id="demo" lay-filter="test"></table>
  97. <div class="layui-fluid">
  98. <div class="layui-card">
  99. <div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">收益明细</span></div>
  100. <div class="layui-card-body" style="padding:15px;">
  101. <form action="" method="get" class="form-horizontal form-search layui-form" role="form">
  102. <input type="hidden" name="c" value="group" />
  103. <input type="hidden" name="a" value="pincommiss_list" />
  104. <input type="hidden" name="m" value="lionfish_comshop" />
  105. <input type="hidden" name="do" value="admin" />
  106. <input type="hidden" name="ok" value="1" />
  107. <input type="hidden" name="id" value="{$member_id}" />
  108. <div class="layui-form-item">
  109. <div class="layui-inline">
  110. <span class="layui-input-inline">
  111. <select name='searchtime' class='form-control' style="width:100px;padding:0 5px;" id="searchtime">
  112. <option value=''>不按时间</option>
  113. <option value='create_time' <?php if( $_GPC['searchtime']=='create_time' ){ ?>selected<?php } ?>>支付时间</option>
  114. </select>
  115. </span>
  116. <span class="layui-input-inline" style="width: 285px;">
  117. {:tpl_form_field_daterange('time', array('starttime'=>date('Y-m-d H:i', $starttime),'endtime'=>date('Y-m-d H:i', $endtime)),true);}
  118. </span>
  119. <div class="layui-input-inline" >
  120. <select name='order_status' class='layui-input layui-unselect' style="width:80px;" >
  121. <option value=''>状态</option>
  122. <option value='0' <?php if( $_GPC['order_status']=='0' ){ ?>selected<?php } ?>>待结算</option>
  123. <option value='1' <?php if( $_GPC['order_status']=='1' ){ ?>selected<?php } ?>>已结算</option>
  124. <option value='2' <?php if( $_GPC['order_status']=='2' ){ ?>selected<?php } ?>>订单取消/退款</option>
  125. </select>
  126. </div>
  127. <div class="layui-input-inline">
  128. <button class="layui-btn layui-btn-sm" type="submit"> 搜索</button>
  129. </div>
  130. </div>
  131. </div>
  132. </form>
  133. <form action="" class="layui-form" lay-filter="example" method="post" >
  134. <div class="row">
  135. <div class="col-md-12">
  136. <div class="page-table-header">
  137. <input type='checkbox' name="checkall" lay-skin="primary" lay-filter="checkboxall" />
  138. </div>
  139. <table class="table table-responsive" lay-even lay-skin="line" lay-size="lg">
  140. <thead>
  141. <tr>
  142. <th style="width:25px;"></th>
  143. <th style="width:160px;">订单编号</th>
  144. <th style="">商品标题</th>
  145. <th style="">订单金额</th>
  146. <th style='width:150px;'>佣金金额</th>
  147. <th style='width:150px;'>状态</th>
  148. <th style='width:200px;'>下单时间</th>
  149. <th style="text-align: center;">操作</th>
  150. </tr>
  151. </thead>
  152. <tbody>
  153. <?php foreach($list as $row){ ?>
  154. <tr>
  155. <td style="position: relative; ">
  156. <input type='checkbox' name="item_checkbox" class="checkone" lay-skin="primary" value="{$row['order_id']}"/>
  157. </td>
  158. <td>
  159. {$row['order_num_alias']}
  160. </td>
  161. <td>
  162. {$row['name']}
  163. </td>
  164. <td>
  165. {$row['total']}
  166. </td>
  167. <td>
  168. {$row['money']}
  169. </td>
  170. <td>
  171. <?php if( $row['state'] == 0 ){ ?>
  172. <span class="layui-badge layui-bg-green">待结算</span>
  173. <?php }else if( $row['state'] == 1 ){ ?>
  174. <span class="layui-badge layui-bg-blue">已结算</span>
  175. <?php }else if( $row['state'] == 2 ){ ?>
  176. <span class="layui-badge layui-bg-gray">订单取消或退款</span>
  177. <?php } ?>
  178. </td>
  179. <td>
  180. {$row['addtime']}
  181. </td>
  182. <td style="overflow:visible;text-align: center;">
  183. <div class="btn-group">
  184. <a class="layui-btn layui-btn-xs" lay-href="{:U('order/detail',array('id' => $row['order_id']));}" target='_blank'>
  185. 查看订单详情
  186. </a>
  187. </div>
  188. </td>
  189. </tr>
  190. <?php } ?>
  191. </tbody>
  192. <tfoot>
  193. <tr>
  194. <td colspan="2">
  195. <div class="page-table-header">
  196. <input type="checkbox" name="checkall" lay-skin="primary" lay-filter="checkboxall">
  197. </div>
  198. </td>
  199. <td colspan="6" style="text-align: right">
  200. {$pager}
  201. </td>
  202. </tr>
  203. </tfoot>
  204. </table>
  205. </div>
  206. </div>
  207. </form>
  208. </div>
  209. </div>
  210. </div>
  211. <script src="/layuiadmin/layui/layui.js"></script>
  212. <script>
  213. layui.config({
  214. base: '/layuiadmin/' //静态资源所在路径
  215. }).extend({
  216. index: 'lib/index' //主入口模块
  217. }).use('index');
  218. </script>
  219. <script>
  220. //由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
  221. var layer = layui.layer;
  222. var $;
  223. layui.use(['jquery', 'layer','form'], function(){
  224. $ = layui.$;
  225. var form = layui.form;
  226. $('.deldom').click(function(){
  227. var s_url = $(this).attr('data-href');
  228. layer.confirm($(this).attr('data-confirm'), function(index){
  229. $.ajax({
  230. url:s_url,
  231. type:'post',
  232. dataType:'json',
  233. success:function(info){
  234. if(info.status == 0)
  235. {
  236. layer.msg(info.result.message,{icon: 1,time: 2000});
  237. }else if(info.status == 1){
  238. var go_url = location.href;
  239. if( info.result.hasOwnProperty("url") )
  240. {
  241. go_url = info.result.url;
  242. }
  243. layer.msg('操作成功',{time: 1000,
  244. end:function(){
  245. location.href = info.result.url;
  246. }
  247. });
  248. }
  249. }
  250. })
  251. });
  252. })
  253. $('.btn-operation').click(function(){
  254. var ids_arr = [];
  255. var obj = $(this);
  256. var s_toggle = $(this).attr('data-toggle');
  257. var s_url = $(this).attr('data-href');
  258. $("input[name=item_checkbox]").each(function() {
  259. if( $(this).prop('checked') )
  260. {
  261. ids_arr.push( $(this).val() );
  262. }
  263. })
  264. if(ids_arr.length < 1)
  265. {
  266. layer.msg('请选择要操作的内容');
  267. }else{
  268. var can_sub = true;
  269. if( s_toggle == 'batch-remove' )
  270. {
  271. can_sub = false;
  272. layer.confirm($(obj).attr('data-confirm'), function(index){
  273. $.ajax({
  274. url:s_url,
  275. type:'post',
  276. dataType:'json',
  277. data:{ids:ids_arr},
  278. success:function(info){
  279. if(info.status == 0)
  280. {
  281. layer.msg(info.result.message,{icon: 1,time: 2000});
  282. }else if(info.status == 1){
  283. var go_url = location.href;
  284. if( info.result.hasOwnProperty("url") )
  285. {
  286. go_url = info.result.url;
  287. }
  288. layer.msg('操作成功',{time: 1000,
  289. end:function(){
  290. location.href = info.result.url;
  291. }
  292. });
  293. }
  294. }
  295. })
  296. });
  297. }else{
  298. $.ajax({
  299. url:s_url,
  300. type:'post',
  301. dataType:'json',
  302. data:{ids:ids_arr},
  303. success:function(info){
  304. if(info.status == 0)
  305. {
  306. layer.msg(info.result.message,{icon: 1,time: 2000});
  307. }else if(info.status == 1){
  308. var go_url = location.href;
  309. if( info.result.hasOwnProperty("url") )
  310. {
  311. go_url = info.result.url;
  312. }
  313. layer.msg('操作成功',{time: 1000,
  314. end:function(){
  315. location.href = info.result.url;
  316. }
  317. });
  318. }
  319. }
  320. })
  321. }
  322. }
  323. })
  324. form.on('switch(statewsitch)', function(data){
  325. var s_url = $(this).attr('data-href')
  326. var s_value = 1;
  327. if(data.elem.checked)
  328. {
  329. s_value = 1;
  330. }else{
  331. s_value = 0;
  332. }
  333. $.ajax({
  334. url:s_url,
  335. type:'post',
  336. dataType:'json',
  337. data:{value:s_value},
  338. success:function(info){
  339. if(info.status == 0)
  340. {
  341. layer.msg(info.result.message,{icon: 1,time: 2000});
  342. }else if(info.status == 1){
  343. var go_url = location.href;
  344. if( info.result.hasOwnProperty("url") )
  345. {
  346. go_url = info.result.url;
  347. }
  348. layer.msg('操作成功',{time: 1000,
  349. end:function(){
  350. location.href = info.result.url;
  351. }
  352. });
  353. }
  354. }
  355. })
  356. });
  357. form.on('checkbox(checkboxall)', function(data){
  358. if(data.elem.checked)
  359. {
  360. $("input[name=item_checkbox]").each(function() {
  361. $(this).prop("checked", true);
  362. });
  363. $("input[name=checkall]").each(function() {
  364. $(this).prop("checked", true);
  365. });
  366. }else{
  367. $("input[name=item_checkbox]").each(function() {
  368. $(this).prop("checked", false);
  369. });
  370. $("input[name=checkall]").each(function() {
  371. $(this).prop("checked", false);
  372. });
  373. }
  374. form.render('checkbox');
  375. });
  376. //监听提交
  377. form.on('submit(formDemo)', function(data){
  378. $.ajax({
  379. url: data.form.action,
  380. type: data.form.method,
  381. data: data.field,
  382. dataType:'json',
  383. success: function (info) {
  384. if(info.status == 0)
  385. {
  386. layer.msg(info.result.message,{icon: 1,time: 2000});
  387. }else if(info.status == 1){
  388. var go_url = location.href;
  389. if( info.result.hasOwnProperty("url") )
  390. {
  391. go_url = info.result.url;
  392. }
  393. layer.msg('操作成功',{time: 1000,
  394. end:function(){
  395. location.href = info.result.url;
  396. }
  397. });
  398. }
  399. }
  400. });
  401. return false;
  402. });
  403. })
  404. </script>
  405. </body>