tixianorder.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <extend name="Public:pinduoduobase" />
  2. <block name="content">
  3. <link rel="stylesheet" href="__PUBLIC__/pinduoduo/assets/css/tixianorder.css">
  4. <div class="container">
  5. <section class="main-view">
  6. <div class="fixed">
  7. <nav class="tab-bar">
  8. <section class="left-small">
  9. <a href="javascript:history.back(-1);" class="menu-icon"><span></span></a>
  10. </section>
  11. <section class="middle tab-bar-section">
  12. <h1 class="title">提取金额</h1>
  13. </section>
  14. </nav>
  15. </div>
  16. <div class="panel extract">
  17. <div class="commision-total">
  18. <span class="span-title">可提现金额</span>
  19. <span class="number">¥{$member_commiss.money}</span>
  20. <?php if(!empty($commiss_money_limit) && $commiss_money_limit > 0){ ?>
  21. <font>(佣金满<?php echo $commiss_money_limit; ?>元可提现)</font>
  22. <?php } ?>
  23. </div>
  24. <div class="panel extract-account">
  25. <ul class="side-nav">
  26. <li class="account-none">
  27. <span style="line-height: 45px;font-size: 18px;float: left;color: #999;">
  28. <span style="margin-left:10px">
  29. 用户名:{$member_commiss.bankname}<br>
  30. 银行卡号:{$member_commiss.bankaccount}<br>
  31. 银行名称:{$member_commiss.bankusername}<br>
  32. </span>
  33. </span>
  34. </li>
  35. </ul>
  36. </div>
  37. <div class="address_new" style="margin-bottom:10px;">
  38. <input id="money" name="money" style="border-radius:2px;" max-rel="{$member_commiss.money}" value="{$member_commiss.money}" placeholder="提现金额" type="text">
  39. </div>
  40. <a href="javascript:;" id="tixian_btn" class="button [radius round] red">立即申请</a>
  41. <table class="table table-hover" style="width:100%;background-color:#fff;">
  42. <thead class="navbar-inner">
  43. <tr>
  44. <th style="text-align: center;">提现单号</th>
  45. <th style="text-align: center;">提现金额</th>
  46. <th style="text-align: center;">提现状态</th>
  47. <th style="text-align: center;">提现时间</th>
  48. </tr>
  49. </thead>
  50. <tbody id="tbodyshenqing">
  51. <?php foreach($list as $val){ ?>
  52. <tr>
  53. <td style="text-align: center;">
  54. <?php echo $val['id']; ?>
  55. </td>
  56. <td style="text-align: center;">
  57. <?php echo $val['money']; ?>
  58. </td>
  59. <td style="text-align: center;">
  60. <?php if($val['state'] == 0){ ?>
  61. 审核中
  62. <?php }else if($val['state'] ==1){ ?>
  63. 已到账
  64. <?php }else if($val['state'] == 2){ ?>
  65. 被拒绝
  66. <?php } ?>
  67. </td>
  68. <td style="text-align: center;">
  69. <?php echo date('Y-m-d',$val['addtime']); ?>
  70. </td>
  71. </tr>
  72. <?php } ?>
  73. </tbody>
  74. </table>
  75. </div>
  76. </section>
  77. </div>
  78. <div class="center" id="center_pullup" style="display:none;">
  79. <span><img class="img_rotate" src="__PUBLIC__/pinduoduo/assets/img/pull_loading_8eba142.png"/>
  80. </span><span class="orders_text"></span>
  81. </div>
  82. <style>
  83. .center {
  84. width: 170px;
  85. margin: 0 auto;
  86. text-align: center;
  87. }
  88. .img_rotate {
  89. width: 30px;
  90. height: 30px;
  91. margin-top: 7px;
  92. margin-right: 5px;
  93. -webkit-animation: loading 1s linear 0s infinite;
  94. }
  95. @-webkit-keyframes loading {
  96. 0% {
  97. -webkit-transform: rotate(0);
  98. }
  99. 100% {
  100. -webkit-transform: rotate(360deg);
  101. }
  102. }
  103. .orders_text {
  104. line-height: 45px;
  105. font-weight: 700;
  106. font-size: 15px;
  107. }
  108. </style>
  109. <script>
  110. var offset = 0;
  111. var _pa = 2;
  112. var is_can_next = 1;
  113. var cur_url = "{:U('Spike/index')}";
  114. var req_step = 1;
  115. function loaddata()
  116. {
  117. var totalheight = parseFloat($(window).height()) + parseFloat($(window).scrollTop()); //浏览器的高度加上滚动条的高度
  118. if ($(document).height() <= totalheight+200) //当文档的高度小于或者等于总的高度的时候,开始动态加载数据
  119. {
  120. if(is_can_next == 1)//加载数据
  121. {
  122. is_can_next = 0;
  123. nextpage();
  124. }
  125. }
  126. }
  127. function nextpage()
  128. {
  129. $('#center_pullup').show();
  130. $.ajax(
  131. {
  132. url: "{:U('Sharebonus/tixian')}",
  133. type:'post',
  134. data:{page:_pa},
  135. dataType: 'json',
  136. success: function(result){
  137. if(result.code == 1)
  138. {
  139. $('#tbodyshenqing').append(result.html);
  140. $('#center_pullup').hide();
  141. _pa++;
  142. is_can_next = 1;
  143. } else if(result.code == 0) {
  144. $('#center_pullup').hide();
  145. is_can_next = 0;
  146. $('#center_pullup').remove();
  147. }
  148. }
  149. }
  150. );
  151. }
  152. $(function(){
  153. nextpage();
  154. $(window).scroll( function() {
  155. loaddata();
  156. });
  157. })
  158. </script>
  159. <script>
  160. $(function(){
  161. $('#tixian_btn').click(function(){
  162. var t_money = parseFloat($('#money').val());
  163. var m_money = parseFloat($('#money').attr('max-rel'));
  164. if(t_money > m_money)
  165. {
  166. alert('提现金额超出已有金额');
  167. return false;
  168. } else if(t_money <= 0){
  169. alert('提现金额必须大于0');
  170. return false;
  171. }
  172. //
  173. $.ajax({
  174. url:"{:U('Sharebonus/tixian_sub')}",
  175. type:'post',
  176. data:{money:t_money},
  177. dataType:'json',
  178. success:function(ret){
  179. if(ret.code == 1)
  180. {
  181. alert('申请提现成功,等待管理员审核');
  182. location.href = location.href;
  183. } else {
  184. alert(ret.msg);
  185. return false;
  186. }
  187. }
  188. })
  189. })
  190. })
  191. </script>
  192. </block>