pincommiss.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448
  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. .img-40{width:40px;height:40px;}
  94. </style>
  95. </head>
  96. <body layadmin-themealias="default">
  97. <table id="demo" lay-filter="test"></table>
  98. <div class="layui-fluid">
  99. <div class="layui-card">
  100. <div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">团长佣金列表</span></div>
  101. <div class="layui-card-body" style="padding:15px;">
  102. <form action="" method="get" class="form-horizontal form-search layui-form" role="form">
  103. <input type="hidden" name="c" value="group" />
  104. <input type="hidden" name="a" value="pincommiss" />
  105. <div class="layui-form-item">
  106. <div class="layui-inline">
  107. <div class="layui-input-inline" >
  108. <input type="text" class="layui-input" name="keyword" value="{$_GPC['keyword']}" placeholder="请输入昵称"/>
  109. </div>
  110. <div class="layui-input-inline">
  111. <button class="layui-btn layui-btn-sm" type="submit"> 搜索</button>
  112. </div>
  113. </div>
  114. </div>
  115. </form>
  116. <form action="" class="layui-form" lay-filter="example" method="post" >
  117. <div class="row">
  118. <div class="col-md-12">
  119. <table class="table table-responsive" lay-even lay-skin="line" lay-size="lg">
  120. <thead>
  121. <tr>
  122. <th style="width:25px;"></th>
  123. <th style="width:60px;">ID</th>
  124. <th style="">用户名</th>
  125. <th >累计佣金<br/>打款佣金</th>
  126. <th style="">注册时间</th>
  127. <th style="width: 300px;text-align: center;">操作</th>
  128. </tr>
  129. </thead>
  130. <tbody>
  131. <?php foreach($list as $row){ ?>
  132. <tr>
  133. <td style="position: relative; ">
  134. <input type='checkbox' lay-skin="primary" value="{$row['member_id']}" class="checkone"/>
  135. </td>
  136. <td>
  137. {$row['member_id']}
  138. </td>
  139. <td style="overflow: visible">
  140. <div rel="pop" style="display: flex" >
  141. <img class="img-40" src="{:tomedia($row['avatar'])}" style='border-radius:50%;border:1px solid #efefef;' />
  142. <span style="display: flex;flex-direction: column;justify-content: center;align-items: flex-start;padding-left: 5px">
  143. <span class="nickname">
  144. <?php if( empty($row['username']) ){ ?>
  145. 未更新
  146. <?php }else{ ?>
  147. {$row['username']}<br />
  148. 推荐人:<?php if( empty($row['share_name']) ){ ?>总店<?php }else{ ?>{$row['share_name']}<?php } ?>
  149. <?php } ?>
  150. <br/>
  151. 当前小区:{$row['cur_communityname']}
  152. </span>
  153. <?php if( $row['isblack']==1 ){ ?>
  154. <span class="text-danger">未启用<i class="icow icow-heimingdan1"style="color: #db2228;margin-left: 2px;font-size: 13px;"></i></span>
  155. <?php } ?>
  156. </span>
  157. </div>
  158. </td>
  159. <td>
  160. <span style="color: #5097d3"><?php echo round( $row['pcmoney']+$row['dongmoney']+$row['getmoney'],2); ?></span>
  161. <br/><span class="text-warning"><?php echo round( $row['getmoney'],2); ?></span>
  162. </td>
  163. <td>{:date("Y-m-d",$row['create_time'])}<br/>{:date("H:i:s",$row['create_time'])}</td>
  164. <td style="overflow:visible;text-align: center;">
  165. <div class="btn-group">
  166. <a class="layui-btn layui-btn-xs"
  167. href="{:U('group/pincommiss_list', array('id'=>$row['member_id']))}"
  168. title=''>
  169. 查看佣金流水
  170. </a>
  171. </div>
  172. </td>
  173. </tr>
  174. <?php } ?>
  175. </tbody>
  176. <tfoot>
  177. <tr>
  178. <td colspan="6" style="text-align: right">
  179. {$pager}
  180. </td>
  181. </tr>
  182. </tfoot>
  183. </table>
  184. </div>
  185. </div>
  186. </form>
  187. </div>
  188. </div>
  189. </div>
  190. <script src="/layuiadmin/layui/layui.js"></script>
  191. <script>
  192. layui.config({
  193. base: '/layuiadmin/' //静态资源所在路径
  194. }).extend({
  195. index: 'lib/index' //主入口模块
  196. }).use('index');
  197. </script>
  198. <script>
  199. //由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
  200. var layer = layui.layer;
  201. var $;
  202. layui.use(['jquery', 'layer','form'], function(){
  203. $ = layui.$;
  204. var form = layui.form;
  205. $('.deldom').click(function(){
  206. var s_url = $(this).attr('data-href');
  207. layer.confirm($(this).attr('data-confirm'), function(index){
  208. $.ajax({
  209. url:s_url,
  210. type:'post',
  211. dataType:'json',
  212. success:function(info){
  213. if(info.status == 0)
  214. {
  215. layer.msg(info.result.message,{icon: 1,time: 2000});
  216. }else if(info.status == 1){
  217. var go_url = location.href;
  218. if( info.result.hasOwnProperty("url") )
  219. {
  220. go_url = info.result.url;
  221. }
  222. layer.msg('操作成功',{time: 1000,
  223. end:function(){
  224. location.href = info.result.url;
  225. }
  226. });
  227. }
  228. }
  229. })
  230. });
  231. })
  232. $('.btn-operation').click(function(){
  233. var ids_arr = [];
  234. var obj = $(this);
  235. var s_toggle = $(this).attr('data-toggle');
  236. var s_url = $(this).attr('data-href');
  237. $("input[name=item_checkbox]").each(function() {
  238. if( $(this).prop('checked') )
  239. {
  240. ids_arr.push( $(this).val() );
  241. }
  242. })
  243. if(ids_arr.length < 1)
  244. {
  245. layer.msg('请选择要操作的内容');
  246. }else{
  247. var can_sub = true;
  248. if( s_toggle == 'batch-remove' )
  249. {
  250. can_sub = false;
  251. layer.confirm($(obj).attr('data-confirm'), function(index){
  252. $.ajax({
  253. url:s_url,
  254. type:'post',
  255. dataType:'json',
  256. data:{ids:ids_arr},
  257. success:function(info){
  258. if(info.status == 0)
  259. {
  260. layer.msg(info.result.message,{icon: 1,time: 2000});
  261. }else if(info.status == 1){
  262. var go_url = location.href;
  263. if( info.result.hasOwnProperty("url") )
  264. {
  265. go_url = info.result.url;
  266. }
  267. layer.msg('操作成功',{time: 1000,
  268. end:function(){
  269. location.href = info.result.url;
  270. }
  271. });
  272. }
  273. }
  274. })
  275. });
  276. }else{
  277. $.ajax({
  278. url:s_url,
  279. type:'post',
  280. dataType:'json',
  281. data:{ids:ids_arr},
  282. success:function(info){
  283. if(info.status == 0)
  284. {
  285. layer.msg(info.result.message,{icon: 1,time: 2000});
  286. }else if(info.status == 1){
  287. var go_url = location.href;
  288. if( info.result.hasOwnProperty("url") )
  289. {
  290. go_url = info.result.url;
  291. }
  292. layer.msg('操作成功',{time: 1000,
  293. end:function(){
  294. location.href = info.result.url;
  295. }
  296. });
  297. }
  298. }
  299. })
  300. }
  301. }
  302. })
  303. form.on('switch(statewsitch)', function(data){
  304. var s_url = $(this).attr('data-href')
  305. var s_value = 1;
  306. if(data.elem.checked)
  307. {
  308. s_value = 1;
  309. }else{
  310. s_value = 0;
  311. }
  312. $.ajax({
  313. url:s_url,
  314. type:'post',
  315. dataType:'json',
  316. data:{value:s_value},
  317. success:function(info){
  318. if(info.status == 0)
  319. {
  320. layer.msg(info.result.message,{icon: 1,time: 2000});
  321. }else if(info.status == 1){
  322. var go_url = location.href;
  323. if( info.result.hasOwnProperty("url") )
  324. {
  325. go_url = info.result.url;
  326. }
  327. layer.msg('操作成功',{time: 1000,
  328. end:function(){
  329. location.href = info.result.url;
  330. }
  331. });
  332. }
  333. }
  334. })
  335. });
  336. form.on('checkbox(checkboxall)', function(data){
  337. if(data.elem.checked)
  338. {
  339. $("input[name=item_checkbox]").each(function() {
  340. $(this).prop("checked", true);
  341. });
  342. $("input[name=checkall]").each(function() {
  343. $(this).prop("checked", true);
  344. });
  345. }else{
  346. $("input[name=item_checkbox]").each(function() {
  347. $(this).prop("checked", false);
  348. });
  349. $("input[name=checkall]").each(function() {
  350. $(this).prop("checked", false);
  351. });
  352. }
  353. form.render('checkbox');
  354. });
  355. //监听提交
  356. form.on('submit(formDemo)', function(data){
  357. $.ajax({
  358. url: data.form.action,
  359. type: data.form.method,
  360. data: data.field,
  361. dataType:'json',
  362. success: function (info) {
  363. if(info.status == 0)
  364. {
  365. layer.msg(info.result.message,{icon: 1,time: 2000});
  366. }else if(info.status == 1){
  367. var go_url = location.href;
  368. if( info.result.hasOwnProperty("url") )
  369. {
  370. go_url = info.result.url;
  371. }
  372. layer.msg('操作成功',{time: 1000,
  373. end:function(){
  374. location.href = info.result.url;
  375. }
  376. });
  377. }
  378. }
  379. });
  380. return false;
  381. });
  382. })
  383. </script>
  384. </body>