index.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <extend name="Public:pinduoduobase" />
  2. <block name="content">
  3. <link rel="stylesheet" href="__PUBLIC__/pinduoduo/assets/css/bonus_bonusIndex-9810a4839d.css">
  4. <link rel="stylesheet" href="https://res.wx.qq.com/open/libs/weui/0.4.2/weui.min.css"/>
  5. <div class="text">
  6. <div class="arrow_mask"></div>
  7. <div class="pending_confirmation">
  8. <ul>
  9. <li>
  10. <div class="header">
  11. <div>今日收入(元)</div>
  12. <div class="bill"><a href="{:U('Tuanbonus/listorder')}"><span class="bill_text">账单</span><img class="arrow_img" src="__PUBLIC__/image/arrow-aa73bc1779.png" alt=""></a></div>
  13. </div>
  14. </li>
  15. <li class="mengtuan_earn">
  16. <div>{$today_commiss}</div>
  17. <div class="mengtuan_earn_mes" style="display:none;">
  18. <div class="mengtuan_earn_btn">团长如何赚</div>
  19. <div>
  20. <img class="mengtuan_earn_img" src="__PUBLIC__/image/question3-bffa03f4f9.png" alt="">
  21. </div>
  22. </div>
  23. </li>
  24. <li>
  25. <div class="header_bottom">
  26. <div class="header_month_income">
  27. <div class="month_income">本月收入(元)</div>
  28. <div class="income_data_mes">{$month_commiss}</div>
  29. </div>
  30. <div></div>
  31. <div class="header_total_revenue">
  32. <div class="total_revenue">累计收入(元)</div>
  33. <div class="income_data_mes">{$total_commiss}</div>
  34. </div>
  35. </div>
  36. </li>
  37. <li>
  38. <div class="body_top">
  39. <div>
  40. <div class="money_text">待确认收入(元)
  41. &nbsp;<a href="{:U('tuanbonus/listorder', array('state' => 0))}" style="color:#000;">订单明细</a>
  42. </div>
  43. <div class="data">{$total_wait_commiss}</div>
  44. </div>
  45. <div class="shou_dialog">
  46. <img src="__PUBLIC__/image/btn_question-869f7b1576.png" class="question1" alt="">
  47. <div class="arrow">此金额在购买团员收到货并超过7天维权期后,即可成为可提现金额</div>
  48. </div>
  49. </div>
  50. </li>
  51. <div class="blank_line1"></div>
  52. <li>
  53. <div class="body_bottom" >
  54. <div>
  55. <div class="money_text">可提现金额(元)
  56. &nbsp;<a href="{:U('tuanbonus/listorder', array('state' => 1))}" style="color:#000;">订单明细</a>
  57. &nbsp;|&nbsp;<a href="{:U('tuanbonus/tixian')}" style="color:#000;">提现记录</a>
  58. </div>
  59. <div class="data">{$can_tixian_money}</div>
  60. </div>
  61. <div class="shou_dialog1">
  62. <img src="__PUBLIC__/image/btn_question-869f7b1576.png" class="question2" alt="">
  63. <div class="arrow2">收入已进账,正式团长能够直接提现哦!</div>
  64. </div>
  65. <div></div>
  66. </div>
  67. </li>
  68. <div class="blank_line2"></div>
  69. </ul>
  70. </div>
  71. <div id="toast" style="display: none;">
  72. <div class="weui_mask_transparent"></div>
  73. <div class="weui_toast">
  74. <i class="weui_icon_toast"></i>
  75. <p class="weui_toast_content">申请成功</p>
  76. </div>
  77. </form>
  78. </div>
  79. <?php if($comsiss_flag == 1){ ?>
  80. <footer>
  81. <div class="footer_bonus">
  82. <div class="btn_mes">
  83. <a href="{:U('tuanbonus/tixian')}">
  84. <input type="button" class="withdrawals" value="佣金提现">
  85. </a>
  86. </div>
  87. <div class="money_record"></div>
  88. </div>
  89. </footer>
  90. <?php }?>
  91. <footer>
  92. <div class="footer_bonus">
  93. <?php if($comsiss_flag == 0){ ?>
  94. <div class="btn_mes">
  95. <input type="button" class="withdrawals" id="btn2" value="升级团长可提现">
  96. </div>
  97. <?php }else if($comsiss_flag == 2){ ?>
  98. <div class="btn_mes">
  99. <input type="button" class="withdrawals" disabled value="申请中">
  100. </div>
  101. <?php } ?>
  102. <div class="money_record"></div>
  103. </div>
  104. </footer>
  105. </div>
  106. <script>
  107. var can_sub = true;
  108. $(function(){
  109. $('#btn2').click(function(){
  110. if(!can_sub)
  111. {
  112. return false;
  113. }
  114. can_sub = false;
  115. $('#btn2').val('申请中....');
  116. $.ajax({
  117. url:"{:U('Tuanbonus/apply')}",
  118. type:'get',
  119. dataType:'json',
  120. success:function(ret){
  121. if(ret.code == 1)
  122. {
  123. $('#toast').show();
  124. setTimeout(function () {
  125. $('#toast').hide();
  126. }, 2500);
  127. } else {
  128. alert(ret.msg);
  129. }
  130. }
  131. });
  132. });
  133. })
  134. </script>
  135. </block>