assets.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <extend name="Public:base" />
  2. <block name="content">
  3. <div class="row">
  4. <div class="col-xs-12">
  5. <div class="alert alert-block alert-success">
  6. 1、状态显示已打款只是系统标记状态,线下还需平台给商家账户打款。以实际打款凭证为准
  7. </div>
  8. </div>
  9. <table class="table table-striped table-bordered table-hover search-form">
  10. <thead>
  11. <th><input name="name" type="text" placeholder="输入商家名称" value="{:I('name')}" />
  12. &nbsp;&nbsp;
  13. <a class="btn btn-primary" href="javascript:;" id="search" url="{:U('Balance/assets')}">查询</a>
  14. </th>
  15. </thead>
  16. </table>
  17. <div class="col-xs-12">
  18. <div class="table-responsive">
  19. <table class="table table-striped table-bordered table-hover">
  20. <thead>
  21. <tr>
  22. <th>ID</th>
  23. <th>卖家</th>
  24. <th>提现金额</th>
  25. <th>状态</th>
  26. <th>收款银行</th>
  27. <th>收款账号</th>
  28. <th>收款名称</th>
  29. <th>提现时间</th>
  30. <th>操作</th>
  31. </tr>
  32. </thead>
  33. <tbody>
  34. <volist name="list" id="data" empty="$empty">
  35. <tr>
  36. <td>{$data.id}</td>
  37. <td>
  38. <?php echo $data['seller']['s_true_name']; ?>
  39. </td>
  40. <td>
  41. <?php echo round($data['money'],2); ?>
  42. </td>
  43. <td>
  44. <?php if($data['state'] == 0){ ?>
  45. <span class="blue">申请中</span>
  46. <?php }else if($data['state'] == 1){ ?>
  47. <span class="red">已打款</span>
  48. <?php } ?>
  49. </td>
  50. <td>
  51. <?php echo $data['seller']['s_cardname']; ?>
  52. </td>
  53. <td>
  54. <?php echo $data['seller']['s_cardnumber']; ?>
  55. </td>
  56. <td>
  57. <?php echo $data['seller']['s_cardrealname']; ?>
  58. </td>
  59. <td>
  60. <?php echo date('Y-m-d H:i:s',$data['addtime']); ?>
  61. </td>
  62. <td>
  63. <?php if($data['state'] == 0){ ?>
  64. <a class="delete btn btn-xs btn-danger" href='{:U("Balance/suretixianmoney",array("id"=>$data["id"]))}' >
  65. <i class="icon-edit bigger-120">确认打款</i>
  66. </a>
  67. <?php } ?>
  68. </td>
  69. </tr>
  70. </volist>
  71. <tr>
  72. <td colspan="20" class="page">{$page}</td>
  73. </tr>
  74. </tbody>
  75. </table>
  76. </div>
  77. </div>
  78. </div>
  79. </block>
  80. <block name="javascript">
  81. <script>
  82. var shenurl = "{:U('Balance/shenqing')}";
  83. $(function(){
  84. $("#search").click(function () {
  85. var url = $(this).attr('url');
  86. var query = $('.search-form').find('input,select').serialize();
  87. query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
  88. query = query.replace(/^&/g, '');
  89. if (url.indexOf('?') > 0) {
  90. url += '&' + query;
  91. } else {
  92. url += '?' + query;
  93. }
  94. window.location.href = url;
  95. });
  96. //关闭弹出层
  97. $('#dialog').on('click','.ks-ext-close',function(){
  98. $("#dialog").css('display','none');
  99. $('.ks-ext-mask').css('display','none');
  100. return false;
  101. });
  102. //关闭弹出层
  103. $('#dialog').on('click','.J_Cancel',function(){
  104. $("#dialog").css('display','none');
  105. $('.ks-ext-mask').css('display','none');
  106. return false;
  107. });
  108. $('#shenqing').click(function(){
  109. $("#dialog").css({'position' : 'fixed','display' : 'block', 'z-index' : '9999'});
  110. });
  111. $('.J_SubmitPL').click(function(){
  112. var shenmoney = parseFloat($('#shenmoney').val());
  113. var max_shenmoney = parseFloat($('#shenmoney').attr('data-max-money'));
  114. if(shenmoney == 0) {
  115. alert('申请金额必须大于0元');
  116. return false;
  117. }
  118. if(max_shenmoney < shenmoney){
  119. alert('申请金额不能大于可提现金额');
  120. return false;
  121. }
  122. $.ajax({
  123. url:shenurl,
  124. type:'post',
  125. dataType:'json',
  126. data:{shenmoney:shenmoney},
  127. success:function(ret){
  128. if(ret.code == 1) {
  129. alert('提现成功');
  130. location.href = location.href;
  131. return false;
  132. } else {
  133. alert('提现失败');
  134. }
  135. }
  136. })
  137. })
  138. //shenmoney data-max-money
  139. })
  140. </script>
  141. </block>