67d40489a97bd6c8b7b2927ecc1d4082.php 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <?php /*a:3:{s:62:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\finance\shenhe.html";i:1592300540;s:61:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\common\header.html";i:1591579556;s:61:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\common\footer.html";i:1591579556;}*/ ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <title><?php echo config('admin.sys_name'); ?>后台管理</title>
  7. <meta name="renderer" content="webkit">
  8. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  9. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  10. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  11. <meta name="apple-mobile-web-app-capable" content="yes">
  12. <meta name="format-detection" content="telephone=no">
  13. <link rel="stylesheet" href="/static/plugins/layui/css/layui.css" media="all" />
  14. <link rel="stylesheet" href="/static/admin/css/main.css?v=<?php echo time(); ?>" media="all">
  15. <link rel="stylesheet" href="/static/plugins/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
  16. <style id="LM-bg-color">
  17. </style>
  18. </head>
  19. <style>
  20. .upload-wrap {
  21. position: relative;
  22. display: inline-block;
  23. overflow: hidden;
  24. border: 1px solid #2d78f4;
  25. border-radius: 3px;
  26. }
  27. .upload-wrap .file-ele {
  28. position: absolute;
  29. top: 0;
  30. right: 0;
  31. opacity: 0;
  32. height: 100%;
  33. width: 100%;
  34. cursor: pointer;
  35. }
  36. .upload-wrap .file-open {
  37. width: 90px;
  38. height: 30px;
  39. line-height: 30px;
  40. text-align: center;
  41. color: #fff;
  42. background: #3385ff;
  43. }
  44. </style>
  45. <div class="LM-container">
  46. <div class="LM-main">
  47. <fieldset class="layui-elem-field layui-field-title">
  48. <legend>财务统计</legend>
  49. <blockquote class="layui-elem-quote">
  50. <div class="LM-table">
  51. </div>
  52. </blockquote>
  53. </fieldset>
  54. <table class="layui-table" id="list" lay-filter="list">
  55. </table>
  56. </div>
  57. </div>
  58. <script type="text/html" id="barDemo">
  59. {{# if(d.status ===0 ){ }}
  60. <input type="button" class="layui-btn layui-btn-xs" lay-event="tongguo" value="审核通过">
  61. <input type="button" class="layui-btn layui-btn-danger layui-btn-xs" lay-event="jujue" value="拒绝">
  62. {{# }}}
  63. </script>
  64. <script type="text/html" id="avatar">
  65. <img src="/static/admin/images/image.gif"
  66. onmouseover="layer.tips('<img src={{d.image}}>',this,{tips: [1, '#fff']});"
  67. onmouseout="layer.closeAll();">
  68. </script>
  69. <script src="/static/plugins/layui/layui.js" charset="utf-8"></script>
  70. <script src="/static/plugins/jquery-3.4.1/jquery-3.4.1.min.js"></script>
  71. <script src="/static/plugins/jquery-3.4.1/jquery-3.4.1.min.js"></script>
  72. <script>
  73. layui.use(['form', 'table'], function () {
  74. var $ = layui.jquery,
  75. form = layui.form,
  76. table = layui.table;
  77. var tableIn = table.render({
  78. elem: '#list',
  79. url: '<?php echo url("shenhe"); ?>',
  80. method: 'post',
  81. title: '反馈意见',
  82. loading: true,
  83. toolbar: '#toolbar', //开启头部工具栏,并为其绑定左侧模板
  84. defaultToolbar: ['filter', 'exports', 'print', "excel", { //自定义头部工具栏右侧图标。如无需自定义,去除该参数即可
  85. title: '提示'
  86. , layEvent: 'LAYTABLE_TIPS'
  87. , icon: 'layui-icon-tips'
  88. }],
  89. cols: [[
  90. // {checkbox: true, fixed: true},
  91. {field: 'id', title: 'ID', width: 80, fixed: true, sort: true},
  92. {field: 'user_id', title: '用户id', width: 120, sort: true},
  93. {field: 'user_name', title: '用户', width: 120, sort: true},
  94. {field: 'money', title: '充值数量', width: 120, sort: true},
  95. {field: 'actual_money', title: '实际充值金额', width: 200, sort: true},
  96. {field: 'charge_money', title: '优惠金额', width: 120, sort: true},
  97. {field: 'statuss', title: '状态', width:200, sort: true},
  98. {field: 'image', title: '上传凭证', width:200, sort: true,templet: "#avatar"},
  99. {title: '操作', width: 300, align: "center", toolbar: "#barDemo"},
  100. ]],
  101. limits: [10, 15, 20, 25, 50, 100],
  102. limit: 10,
  103. page: true
  104. });
  105. table.on('tool(list)', function (obj) {
  106. var data = obj.data;
  107. let event = obj.event;
  108. switch (event) {
  109. case "jujue":
  110. layer.confirm('您确定要拒绝吗', function (index) {
  111. loading = layer.load(1, {shade: [0.1, '#fff']});
  112. $.post("<?php echo url('jujue'); ?>", {id: data.id}, function (res) {
  113. layer.close(loading);
  114. layer.close(index);
  115. if (res.code == 200) {
  116. layer.msg(res.msg, {time: 1000, icon: 1});
  117. tableIn.reload();
  118. } else {
  119. layer.msg(res.msg, {time: 1000, icon: 2});
  120. }
  121. }, "json")
  122. })
  123. break;
  124. case "tongguo":
  125. // layer.confirm('确定要进行这样的操作码', function (index) {
  126. loading = layer.load(1, {shade: [0.1, '#fff']});
  127. $.post("<?php echo url('czcg'); ?>", {id: data.id}, function (res) {
  128. layer.close(loading);
  129. // layer.close(index);
  130. if (res.code == 200) {
  131. layer.msg(res.msg, {time: 1000, icon: 1});
  132. tableIn.reload();
  133. } else {
  134. layer.msg(res.msg, {time: 1000, icon: 2});
  135. }
  136. }, "json")
  137. // })
  138. break;
  139. }
  140. });
  141. form.on('switch(status)', function (data) {
  142. });
  143. $('#search').click(function () {
  144. var $keys = $('#name').val();
  145. if (!$keys) {
  146. return layer.msg('请输入关键词');
  147. }
  148. tableIn.reload({page: {page: 1}, where: {name: $keys}});
  149. })
  150. // setInterval(function () {
  151. // tableIn.reload();
  152. // }, 50000)
  153. });
  154. </script>