tixianlist.html 16 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. </head>
  45. <body layadmin-themealias="default">
  46. <div class="layui-fluid">
  47. <div class="layui-card">
  48. <div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">提现列表</span></div>
  49. <div class="layui-card-body" style="padding:15px;">
  50. <div class="page-content">
  51. <div class="summary_box">
  52. <div class="summary_title">
  53. <div class="title_inner">
  54. 已提现金额:<span class="text-danger">{$supply_commiss['getmoney']}</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;提现中金额:<span class="text-danger"><?php echo $supply_commiss['dongmoney']<0 ?0:$supply_commiss['dongmoney'];?></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;可提现金额:<span class="text-danger">{$supply_commiss['money']}</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;提现手续费:<span class="text-danger">{$supply_tixian_moneyfree}%</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  55. <a href="{:U('supply/apply_money')}" class="btn btn-primary">申请提现</a>
  56. </div>
  57. </div>
  58. </div>
  59. <form action="" class="layui-form" lay-filter="example" method="post" >
  60. <div class="row">
  61. <div class="col-md-12">
  62. <div class="page-table-header">
  63. </div>
  64. <table class="table table-responsive" lay-even lay-skin="line" lay-size="lg">
  65. <thead>
  66. <tr>
  67. <th style="width:25px;"></th>
  68. <th style="width:60px;">ID</th>
  69. <th style="">账户信息</th>
  70. <th style="">提现金额</th>
  71. <th style="">手续费</th>
  72. <th style="">到账金额</th>
  73. <th style='width:150px;'>状态</th>
  74. <th style=''>提现申请时间/处理时间</th>
  75. </tr>
  76. </thead>
  77. <tbody>
  78. <?php foreach( $list as $row ){ ?>
  79. <tr>
  80. <td style="position: relative; ">
  81. </td>
  82. <td>
  83. {$row['id']}
  84. </td>
  85. <td>
  86. <?php echo '转账类型:'.$row['bankname'];?><br/>
  87. <?php if( $row['supply_apply_type'] == 1 ){ ?>
  88. <?php echo '微信真实姓名:'.$row['bankaccount']; ?><br/>
  89. <?php }else{ ?>
  90. <?php echo '账户:'.$row['bankaccount']; ?><br/>
  91. <?php } ?>
  92. <?php echo empty($row['bankusername']) ? '': '持卡人姓名:'.$row['bankusername'];?><br/>
  93. </td>
  94. <td >
  95. {$row['money']}
  96. </td>
  97. <td >
  98. {$row['service_charge']}
  99. </td>
  100. <td>
  101. {:round($row['money'] - $row['service_charge'], 2)}
  102. </td>
  103. <td>
  104. <?php if( $row['state'] ==2 ){ ?>
  105. 提现失败
  106. <?php }elseif($row['state'] ==1){ ?>
  107. <text class="text-green">提现成功,已打款</text>
  108. <?php }else{ ?>
  109. <text class='text-danger'>提现中</text>
  110. <?php } ?>
  111. </td>
  112. <td>
  113. {:date('Y-m-d H:i:s', $row['addtime'])}<br/>
  114. <?php echo empty($row['shentime']) ? '': date('Y-m-d H:i:s', $row['shentime']);?><br/>
  115. </td>
  116. </tr>
  117. <?php } ?>
  118. </tbody>
  119. <tfoot>
  120. <tr>
  121. <td colspan="5" style="text-align: right">
  122. {$pager}
  123. </td>
  124. </tr>
  125. </tfoot>
  126. </table>
  127. </div>
  128. </div>
  129. </form>
  130. </div>
  131. </div>
  132. </div>
  133. <script language="javascript">
  134. require(['bootstrap'], function () {
  135. $("[rel=pop]").popover({
  136. trigger: 'manual',
  137. placement: 'right',
  138. title: $(this).data('title'),
  139. html: 'true',
  140. content: $(this).data('content'),
  141. animation: false
  142. }).on("mouseenter", function () {
  143. var _this = this;
  144. $(this).popover("show");
  145. $(this).siblings(".popover").on("mouseleave", function () {
  146. $(_this).popover('hide');
  147. });
  148. }).on("mouseleave", function () {
  149. var _this = this;
  150. setTimeout(function () {
  151. if (!$(".popover:hover").length) {
  152. $(_this).popover("hide")
  153. }
  154. }, 100);
  155. });
  156. });
  157. $("[data-toggle='batch-group'], [data-toggle='batch-level']").click(function () {
  158. var toggle = $(this).data('toggle');
  159. $("#modal-change .modal-title").text(toggle=='batch-group'?"批量修改分组":"批量修改会员等级");
  160. $("#modal-change").find("."+toggle).show().siblings().hide();
  161. $("#modal-change-btn").attr('data-toggle', toggle=='batch-group'?'group':'level');
  162. $("#modal-change").modal();
  163. });
  164. $("#modal-change-btn").click(function () {
  165. var _this = $(this);
  166. if(_this.attr('stop')){
  167. return;
  168. }
  169. var toggle = $(this).data('toggle');
  170. var ids = [];
  171. $(".checkone").each(function () {
  172. var checked = $(this).is(":checked");
  173. var id = $(this).val();
  174. if(checked && id){
  175. ids.push(id);
  176. }
  177. });
  178. if(ids.length<1){
  179. tip.msgbox.suc("请选择要批量操作的会员");
  180. return;
  181. }
  182. var option = $("#modal-change .batch-"+toggle+" option:selected");
  183. level = '';
  184. if (toggle=='group'){
  185. for(i=0;i<option.length;i++){
  186. if (level == ''){
  187. level += $(option[i]).val();
  188. }else{
  189. level += ','+$(option[i]).val();
  190. }
  191. }
  192. }else{
  193. var level = option.val();
  194. }
  195. var levelname = option.text();
  196. tip.confirm("确定要将选中会员移动到 "+levelname+" 吗?", function () {
  197. _this.attr('stop', 1).text("操作中...");
  198. $.post(biz.url('user/changelevel'),{
  199. level: level,
  200. ids: ids,
  201. toggle: toggle
  202. }, function (ret) {
  203. $("#modal-change").modal('hide');
  204. if(ret.status==1){
  205. tip.msgbox.suc("操作成功");
  206. setTimeout(function () {
  207. location.reload();
  208. },1000);
  209. }else{
  210. tip.msgbox.err(ret.result.message);
  211. }
  212. }, 'json')
  213. });
  214. });
  215. </script>
  216. <script src="/layuiadmin/layui/layui.js"></script>
  217. <script>
  218. layui.config({
  219. base: '/layuiadmin/' //静态资源所在路径
  220. }).extend({
  221. index: 'lib/index' //主入口模块
  222. }).use('index');
  223. </script>
  224. <script>
  225. var layer = layui.layer;
  226. var $;
  227. layui.use(['jquery', 'layer','form'], function(){
  228. $ = layui.$;
  229. var form = layui.form;
  230. $('.deldom').click(function(){
  231. var s_url = $(this).attr('data-href');
  232. layer.confirm($(this).attr('data-confirm'), function(index){
  233. $.ajax({
  234. url:s_url,
  235. type:'post',
  236. dataType:'json',
  237. success:function(info){
  238. if(info.status == 0)
  239. {
  240. layer.msg(info.result.message,{icon: 1,time: 2000});
  241. }else if(info.status == 1){
  242. var go_url = location.href;
  243. if( info.result.hasOwnProperty("url") )
  244. {
  245. go_url = info.result.url;
  246. }
  247. layer.msg('操作成功',{time: 1000,
  248. end:function(){
  249. location.href = info.result.url;
  250. }
  251. });
  252. }
  253. }
  254. })
  255. });
  256. })
  257. $('.btn-operation').click(function(){
  258. var ids_arr = [];
  259. var obj = $(this);
  260. var s_toggle = $(this).attr('data-toggle');
  261. var s_url = $(this).attr('data-href');
  262. $("input[name=item_checkbox]").each(function() {
  263. if( $(this).prop('checked') )
  264. {
  265. ids_arr.push( $(this).val() );
  266. }
  267. })
  268. if(ids_arr.length < 1)
  269. {
  270. layer.msg('请选择要操作的内容');
  271. }else{
  272. var can_sub = true;
  273. if( s_toggle == 'batch-remove' )
  274. {
  275. can_sub = false;
  276. layer.confirm($(obj).attr('data-confirm'), function(index){
  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. }else{
  302. $.ajax({
  303. url:s_url,
  304. type:'post',
  305. dataType:'json',
  306. data:{ids:ids_arr},
  307. success:function(info){
  308. if(info.status == 0)
  309. {
  310. layer.msg(info.result.message,{icon: 1,time: 2000});
  311. }else if(info.status == 1){
  312. var go_url = location.href;
  313. if( info.result.hasOwnProperty("url") )
  314. {
  315. go_url = info.result.url;
  316. }
  317. layer.msg('操作成功',{time: 1000,
  318. end:function(){
  319. location.href = info.result.url;
  320. }
  321. });
  322. }
  323. }
  324. })
  325. }
  326. }
  327. })
  328. form.on('switch(statewsitch)', function(data){
  329. var s_url = $(this).attr('data-href')
  330. var s_value = 1;
  331. if(data.elem.checked)
  332. {
  333. s_value = 1;
  334. }else{
  335. s_value = 0;
  336. }
  337. $.ajax({
  338. url:s_url,
  339. type:'post',
  340. dataType:'json',
  341. data:{state:s_value},
  342. success:function(info){
  343. if(info.status == 0)
  344. {
  345. layer.msg(info.result.message,{icon: 1,time: 2000});
  346. }else if(info.status == 1){
  347. var go_url = location.href;
  348. if( info.result.hasOwnProperty("url") )
  349. {
  350. go_url = info.result.url;
  351. }
  352. layer.msg('操作成功',{time: 1000,
  353. end:function(){
  354. location.href = info.result.url;
  355. }
  356. });
  357. }
  358. }
  359. })
  360. });
  361. form.on('checkbox(checkboxall)', function(data){
  362. if(data.elem.checked)
  363. {
  364. $("input[name=item_checkbox]").each(function() {
  365. $(this).prop("checked", true);
  366. });
  367. $("input[name=checkall]").each(function() {
  368. $(this).prop("checked", true);
  369. });
  370. }else{
  371. $("input[name=item_checkbox]").each(function() {
  372. $(this).prop("checked", false);
  373. });
  374. $("input[name=checkall]").each(function() {
  375. $(this).prop("checked", false);
  376. });
  377. }
  378. form.render('checkbox');
  379. });
  380. //监听提交
  381. form.on('submit(formDemo)', function(data){
  382. $.ajax({
  383. url: data.form.action,
  384. type: data.form.method,
  385. data: data.field,
  386. dataType:'json',
  387. success: function (info) {
  388. if(info.status == 0)
  389. {
  390. layer.msg(info.result.message,{icon: 1,time: 2000});
  391. }else if(info.status == 1){
  392. var go_url = location.href;
  393. if( info.result.hasOwnProperty("url") )
  394. {
  395. go_url = info.result.url;
  396. }
  397. layer.msg('操作成功',{time: 1000,
  398. end:function(){
  399. location.href = info.result.url;
  400. }
  401. });
  402. }
  403. }
  404. });
  405. return false;
  406. });
  407. })
  408. </script>
  409. </body>
  410. </html>