c5ee2fca9ee5a418de10d4105e0048bd.php 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  1. <?php /*a:6:{s:71:"D:\phpstudy_pro\WWW\CRMEB\app\admin\view\finance\user_extract\index.php";i:1595820902;s:61:"D:\phpstudy_pro\WWW\CRMEB\app\admin\view\public\container.php";i:1595820902;s:62:"D:\phpstudy_pro\WWW\CRMEB\app\admin\view\public\frame_head.php";i:1595820902;s:57:"D:\phpstudy_pro\WWW\CRMEB\app\admin\view\public\style.php";i:1595820902;s:62:"D:\phpstudy_pro\WWW\CRMEB\app\admin\view\public\inner_page.php";i:1595820902;s:64:"D:\phpstudy_pro\WWW\CRMEB\app\admin\view\public\frame_footer.php";i:1595820902;}*/ ?>
  2. <!DOCTYPE html>
  3. <html lang="zh-CN">
  4. <head>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <?php if(empty($is_layui) || (($is_layui instanceof \think\Collection || $is_layui instanceof \think\Paginator ) && $is_layui->isEmpty())): ?>
  8. <link href="/system/frame/css/bootstrap.min.css?v=3.4.0" rel="stylesheet">
  9. <?php endif; ?>
  10. <link href="/static/plug/layui/css/layui.css" rel="stylesheet">
  11. <link href="/system/css/layui-admin.css" rel="stylesheet">
  12. <link href="/system/frame/css/font-awesome.min.css?v=4.3.0" rel="stylesheet">
  13. <link href="/system/frame/css/animate.min.css" rel="stylesheet">
  14. <link href="/system/frame/css/style.min.css?v=3.0.0" rel="stylesheet">
  15. <script src="/system/frame/js/jquery.min.js"></script>
  16. <script src="/system/frame/js/bootstrap.min.js"></script>
  17. <script src="/static/plug/layui/layui.all.js"></script>
  18. <script>
  19. $eb = parent._mpApi;
  20. window.controlle="<?php echo strtolower(trim(preg_replace("/[A-Z]/", "_\\0", app('request')->controller()), "_"));?>";
  21. window.module="<?php echo app('http')->getName();?>";
  22. </script>
  23. <title></title>
  24. <link rel="stylesheet" href="/static/plug/daterangepicker/daterangepicker.css">
  25. <script src="/static/plug/moment.js"></script>
  26. <script src="/static/plug/daterangepicker/daterangepicker.js"></script>
  27. <!--<script type="text/javascript" src="/static/plug/basket.js"></script>-->
  28. <script type="text/javascript" src="/static/plug/requirejs/require.js"></script>
  29. <?php /* <script type="text/javascript" src="/static/plug/requirejs/require-basket-load.js"></script> */ ?>
  30. <script>
  31. var hostname = location.hostname;
  32. if(location.port) hostname += ':' + location.port;
  33. requirejs.config({
  34. map: {
  35. '*': {
  36. 'css': '/static/plug/requirejs/require-css.js'
  37. }
  38. },
  39. shim:{
  40. 'iview':{
  41. deps:['css!iviewcss']
  42. },
  43. 'layer':{
  44. deps:['css!layercss']
  45. }
  46. },
  47. baseUrl:'//'+hostname+'/',
  48. paths: {
  49. 'static':'static',
  50. 'system':'system',
  51. 'vue':'static/plug/vue/dist/vue.min',
  52. 'axios':'static/plug/axios.min',
  53. 'iview':'static/plug/iview/dist/iview.min',
  54. 'iviewcss':'static/plug/iview/dist/styles/iview',
  55. 'lodash':'static/plug/lodash',
  56. 'layer':'static/plug/layer/layer',
  57. 'layercss':'static/plug/layer/theme/default/layer',
  58. 'jquery':'static/plug/jquery/jquery.min',
  59. 'moment':'static/plug/moment',
  60. 'sweetalert':'static/plug/sweetalert2/sweetalert2.all.min',
  61. 'formCreate':'/static/plug/form-create/form-create.min',
  62. },
  63. basket: {
  64. excludes:['system/js/index','system/util/mpVueComponent','system/util/mpVuePackage']
  65. // excludes:['system/util/mpFormBuilder','system/js/index','system/util/mpVueComponent','system/util/mpVuePackage']
  66. }
  67. });
  68. </script>
  69. <script type="text/javascript" src="/system/util/mpFrame.js"></script>
  70. </head>
  71. <body class="gray-bg">
  72. <div class="wrapper wrapper-content">
  73. <div class="row">
  74. <div class="col-sm-12">
  75. <div class="ibox">
  76. <div class="ibox-content">
  77. <div class="row">
  78. <div class="m-b m-l">
  79. <form action="" class="form-inline">
  80. <div class="search-item" data-name="date">
  81. <span>选择时间:</span>
  82. <button type="button" class="btn btn-outline btn-link" data-value="">全部</button>
  83. <button type="button" class="btn btn-outline btn-link" data-value="<?php echo htmlentities($limitTimeList['today']); ?>">今天</button>
  84. <button type="button" class="btn btn-outline btn-link" data-value="<?php echo htmlentities($limitTimeList['week']); ?>">本周</button>
  85. <button type="button" class="btn btn-outline btn-link" data-value="<?php echo htmlentities($limitTimeList['month']); ?>">本月</button>
  86. <button type="button" class="btn btn-outline btn-link" data-value="<?php echo htmlentities($limitTimeList['quarter']); ?>">本季度</button>
  87. <button type="button" class="btn btn-outline btn-link" data-value="<?php echo htmlentities($limitTimeList['year']); ?>">本年</button>
  88. <div class="datepicker" style="display: inline-block;">
  89. <button type="button" class="btn btn-outline btn-link" data-value="<?php echo !empty($where['date']) ? htmlentities($where['date']) : 'no'; ?>">自定义时间</button>
  90. </div>
  91. <input class="search-item-value" type="hidden" name="date" value="<?php echo htmlentities($where['date']); ?>" />
  92. </div>
  93. <select name="status" aria-controls="editable" class="form-control input-sm">
  94. <option value="">提现状态</option>
  95. <option value="-1" <?php if($where['status'] == '-1'): ?>selected="selected"<?php endif; ?>>未通过</option>
  96. <option value="0" <?php if($where['status'] == '0'): ?>selected="selected"<?php endif; ?>>未提现</option>
  97. <option value="1" <?php if($where['status'] == '1'): ?>selected="selected"<?php endif; ?>>已通过</option>
  98. </select>
  99. <select name="extract_type" class="form-control input-sm">
  100. <option value="">提现方式</option>
  101. <option value="alipay" <?php if($where['extract_type'] == 'alipay'): ?>selected="selected"<?php endif; ?>>支付宝</option>
  102. <option value="bank" <?php if($where['extract_type'] == 'bank'): ?>selected="selected"<?php endif; ?>>银行卡</option>
  103. <option value="weixin" <?php if($where['extract_type'] == 'weixin'): ?>selected="selected"<?php endif; ?>>微信</option>
  104. </select>
  105. <div class="input-group">
  106. <span class="input-group-btn">
  107. <input type="text" name="nireid" value="<?php echo htmlentities($where['nireid']); ?>" placeholder="微信昵称/姓名/支付宝账号/银行卡号" class="input-sm form-control" size="38"/>
  108. <button type="submit" class="btn btn-sm btn-primary"> 搜索</button>
  109. </span>
  110. </div>
  111. </form>
  112. </div>
  113. <div class="col-sm-3 ui-sortable">
  114. <div class="ibox float-e-margins">
  115. <div class="ibox-title">
  116. <span class="label label-success pull-right">¥</span>
  117. <h5>已提现金额</h5>
  118. </div>
  119. <div class="ibox-content">
  120. <h1 class="no-margins"><?php echo htmlentities($data['priced']); ?></h1>
  121. </div>
  122. </div>
  123. </div>
  124. <div class="col-sm-3 ui-sortable">
  125. <div class="ibox float-e-margins">
  126. <div class="ibox-title">
  127. <span class="label label-danger pull-right">急</span>
  128. <h5>待提现金额</h5>
  129. </div>
  130. <div class="ibox-content">
  131. <h1 class="no-margins"><?php echo htmlentities($data['price']); ?></h1>
  132. </div>
  133. </div>
  134. </div>
  135. <div class="col-sm-3 ui-sortable">
  136. <div class="ibox float-e-margins">
  137. <div class="ibox-title">
  138. <span class="label label-success pull-right">待</span>
  139. <h5>佣金总金额</h5>
  140. </div>
  141. <div class="ibox-content">
  142. <h1 class="no-margins"><?php echo htmlentities($data['brokerage_count']); ?></h1>
  143. </div>
  144. </div>
  145. </div>
  146. <div class="col-sm-3 ui-sortable">
  147. <div class="ibox float-e-margins">
  148. <div class="ibox-title">
  149. <span class="label label-success pull-right">待</span>
  150. <h5>未提现金额</h5>
  151. </div>
  152. <div class="ibox-content">
  153. <h1 class="no-margins"><?php echo htmlentities($data['brokerage_not']); ?></h1>
  154. </div>
  155. </div>
  156. </div>
  157. </div>
  158. <div class="table-responsive">
  159. <table class="table table-striped table-bordered">
  160. <thead>
  161. <tr>
  162. <th class="text-center">编号</th>
  163. <th class="text-center">用户信息</th>
  164. <th class="text-center">提现金额</th>
  165. <th class="text-center">提现方式</th>
  166. <th class="text-center">添加时间</th>
  167. <th class="text-center">备注</th>
  168. <th class="text-center">审核状态</th>
  169. <th class="text-center">操作</th>
  170. </tr>
  171. </thead>
  172. <tbody class="">
  173. <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
  174. <tr>
  175. <td class="text-center">
  176. <?php echo htmlentities($vo['id']); ?>
  177. </td>
  178. <td class="text-center">
  179. 用户昵称: <?php echo htmlentities($vo['nickname']); ?>/用户id:<?php echo htmlentities($vo['uid']); ?>
  180. </td>
  181. <td class="text-center" style="color: #00aa00;">
  182. <?php echo htmlentities($vo['extract_price']); ?>
  183. </td>
  184. <td class="text-left">
  185. <?php if($vo['extract_type'] == 'bank'): ?>
  186. 姓名:<?php echo htmlentities($vo['real_name']); ?><br>
  187. 银行卡号:<?php echo htmlentities($vo['bank_code']); ?>
  188. <br/>
  189. 银行名称:<?php echo htmlentities($vo['bank_address']); elseif($vo['extract_type'] == 'weixin'): ?>
  190. 昵称:<?php echo htmlentities($vo['nickname']); ?><br>
  191. 微信号:<?php echo htmlentities($vo['wechat']); else: ?>
  192. 姓名:<?php echo htmlentities($vo['real_name']); ?><br>
  193. 支付宝号:<?php echo htmlentities($vo['alipay_code']); ?>
  194. <?php endif; ?>
  195. </td>
  196. <td class="text-center">
  197. <?php echo htmlentities(date('Y-m-d H:i:s',!is_numeric($vo['add_time'])? strtotime($vo['add_time']) : $vo['add_time'])); ?>
  198. </td>
  199. <td class="text-center">
  200. <?php echo htmlentities($vo['mark']); ?>
  201. </td>
  202. <td class="text-center">
  203. <?php if($vo['status'] == 1): ?>
  204. 提现通过<br/>
  205. <?php elseif($vo['status'] == -1): ?>
  206. 提现未通过<br/>
  207. 未通过原因:<?php echo htmlentities($vo['fail_msg']); ?>
  208. <br>
  209. 未通过时间:<?php echo htmlentities(date('Y-m-d H:i:s',!is_numeric($vo['fail_time'])? strtotime($vo['fail_time']) : $vo['fail_time'])); else: ?>
  210. 未提现<br/>
  211. <button data-url="<?php echo url('fail',['id'=>$vo['id']]); ?>" class="j-fail btn btn-danger btn-xs" type="button"><i class="fa fa-close"></i> 无效</button>
  212. <button data-url="<?php echo url('succ',['id'=>$vo['id']]); ?>" class="j-success btn btn-primary btn-xs" type="button"><i class="fa fa-check"></i> 通过</button>
  213. <?php endif; ?>
  214. </td>
  215. <td class="text-center">
  216. <button class="btn btn-info btn-xs" type="button" onclick="$eb.createModalFrame('编辑','<?php echo Url('edit',array('id'=>$vo['id'])); ?>')"><i class="fa fa-edit"></i> 编辑</button>
  217. </td>
  218. </tr>
  219. <?php endforeach; endif; else: echo "" ;endif; ?>
  220. </tbody>
  221. </table>
  222. </div>
  223. <link href="/system/frame/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">
  224. <div class="row">
  225. <div class="col-sm-6">
  226. <div class="dataTables_info" id="DataTables_Table_0_info" role="alert" aria-live="polite" aria-relevant="all">共 <?php echo htmlentities($total); ?> 项</div>
  227. </div>
  228. <div class="col-sm-6">
  229. <div class="dataTables_paginate paging_simple_numbers" id="editable_paginate">
  230. <?php echo $page;?>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. <script>
  239. $(function init() {
  240. $('.search-item>.btn').on('click', function () {
  241. var that = $(this), value = that.data('value'), p = that.parent(), name = p.data('name'), form = p.parents();
  242. form.find('input[name="' + name + '"]').val(value);
  243. $('input[name=export]').val(0);
  244. form.submit();
  245. });
  246. $('.tag-item>.btn').on('click', function () {
  247. var that = $(this), value = that.data('value'), p = that.parent(), name = p.data('name'), form = p.parents(),list = $('input[name="' + name + '"]').val().split(',');
  248. var bool = 0;
  249. $.each(list,function (index,item) {
  250. if(item == value){
  251. bool = 1
  252. list.splice(index,1);
  253. }
  254. })
  255. if(!bool) list.push(''+value+'');
  256. form.find('input[name="' + name + '"]').val(list.join(','));
  257. $('input[name=export]').val(0);
  258. form.submit();
  259. });
  260. $('.search-item>li').on('click', function () {
  261. var that = $(this), value = that.data('value'), p = that.parent(), name = p.data('name'), form = $('#form');
  262. form.find('input[name="' + name + '"]').val(value);
  263. $('input[name=export]').val(0);
  264. form.submit();
  265. });
  266. $('.search-item>li').each(function () {
  267. var that = $(this), value = that.data('value'), p = that.parent(), name = p.data('name');
  268. if($where[name]) $('.'+name).css('color','#1ab394');
  269. });
  270. $('.search-item-value').each(function () {
  271. var that = $(this), name = that.attr('name'), value = that.val(), dom = $('.search-item[data-name="' + name + '"] .btn[data-value="' + value + '"]');
  272. dom.eq(0).removeClass('btn-outline btn-link').addClass('btn-primary btn-sm')
  273. .siblings().addClass('btn-outline btn-link').removeClass('btn-primary btn-sm')
  274. });
  275. })
  276. $('.j-fail').on('click',function(){
  277. var url = $(this).data('url');
  278. $eb.$alert('textarea',{
  279. title:'请输入未通过原因',
  280. value:'输入信息不完整或有误!',
  281. },function(value){
  282. $eb.axios.post(url,{message:value}).then(function(res){
  283. if(res.data.code == 200) {
  284. $eb.$swal('success', res.data.msg);
  285. setTimeout(function () {
  286. window.location.reload();
  287. },1000);
  288. }else
  289. $eb.$swal('error',res.data.msg||'操作失败!');
  290. });
  291. });
  292. });
  293. $('.j-success').on('click',function(){
  294. var url = $(this).data('url');
  295. $eb.$swal('delete',function(){
  296. $eb.axios.post(url).then(function(res){
  297. if(res.data.code == 200) {
  298. setTimeout(function () {
  299. window.location.reload();
  300. },1000);
  301. $eb.$swal('success', res.data.msg);
  302. }else
  303. $eb.$swal('error',res.data.msg||'操作失败!');
  304. });
  305. },{
  306. title:'确定审核通过?',
  307. text:'通过后无法撤销,请谨慎操作!',
  308. confirm:'审核通过'
  309. });
  310. });
  311. $('.btn-warning').on('click',function(){
  312. window.t = $(this);
  313. var _this = $(this),url =_this.data('url');
  314. $eb.$swal('delete',function(){
  315. $eb.axios.get(url).then(function(res){
  316. if(res.status == 200 && res.data.code == 200) {
  317. $eb.$swal('success',res.data.msg);
  318. _this.parents('tr').remove();
  319. }else
  320. return Promise.reject(res.data.msg || '删除失败')
  321. }).catch(function(err){
  322. $eb.$swal('error',err);
  323. });
  324. })
  325. });
  326. $(".open_image").on('click',function (e) {
  327. var image = $(this).data('image');
  328. $eb.openImage(image);
  329. })
  330. var dateInput = $('.datepicker');
  331. dateInput.daterangepicker({
  332. autoUpdateInput: false,
  333. "opens": "center",
  334. "drops": "down",
  335. "ranges": {
  336. '今天': [moment(), moment().add(1, 'days')],
  337. '昨天': [moment().subtract(1, 'days'), moment()],
  338. '上周': [moment().subtract(6, 'days'), moment()],
  339. '前30天': [moment().subtract(29, 'days'), moment()],
  340. '本月': [moment().startOf('month'), moment().endOf('month')],
  341. '上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')]
  342. },
  343. "locale" : {
  344. applyLabel : '确定',
  345. cancelLabel : '取消',
  346. fromLabel : '起始时间',
  347. toLabel : '结束时间',
  348. format : 'YYYY/MM/DD',
  349. customRangeLabel : '自定义',
  350. daysOfWeek : [ '日', '一', '二', '三', '四', '五', '六' ],
  351. monthNames : [ '一月', '二月', '三月', '四月', '五月', '六月',
  352. '七月', '八月', '九月', '十月', '十一月', '十二月' ],
  353. firstDay : 1
  354. }
  355. });
  356. dateInput.on('apply.daterangepicker', function(ev, picker) {
  357. $("input[name=date]").val(picker.startDate.format('YYYY/MM/DD') + ' - ' + picker.endDate.format('YYYY/MM/DD'));
  358. $('form').submit();
  359. });
  360. </script>
  361. </div>
  362. </body>
  363. </html>