paid.js 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. $(document).ready(function () {
  2. let url = window.location.search;
  3. var theRequest = new Object();
  4. if (url.indexOf("?") != -1) {
  5. var str = url.substr(1);
  6. strs = str.split("&");
  7. for (var i = 0; i < strs.length; i++) {
  8. theRequest[strs[i].split("=")[0]] = unescape(
  9. decodeURI(strs[i].split("=")[1])
  10. );
  11. }
  12. }
  13. let tabId = theRequest.TabId || 1;
  14. // 获取数据-待打款展示头
  15. $.ajax({
  16. type: "post",
  17. url: "https://www.aa9169.com/Admin/Adminback/paid_commission_record_above",
  18. dataType: "json",
  19. data: {},
  20. success: function (res) {
  21. console.log(res);
  22. let data = res.data;
  23. $("#tableCardMoneyDL").text(data.payment_people_num);
  24. $("#tableCardAllMoneyYJ").text(data.accumulate_payment_amount);
  25. $("#tableCardUpMonthMoneyYJ").text(data.last_month_payment_amount);
  26. $("#tableCardAThisMonthMoneyYJ").text(data.now_month_payment_amount);
  27. },
  28. });
  29. // 获取数据-待打款佣金列表
  30. $.ajax({
  31. type: "post",
  32. url: "https://www.aa9169.com/Admin/Adminback/paid_commission_record",
  33. dataType: "json",
  34. data: {
  35. page: tabId,
  36. },
  37. success: function (res) {
  38. console.log(res);
  39. var AppleList = "";
  40. let arr = [
  41. {
  42. "agent_user_name": "Anzw0030",
  43. "registration_data": "2023-05-24 12:47:40",
  44. "accumulate_payment": "500",
  45. "last_payment_amount": "300",
  46. "last_payment_date": "2023-02-22 22:22",
  47. "bank_real_name": "呜啦",
  48. "bank_card_number": "66666",
  49. "bank_name": "呜啦银行",
  50. "usdt_string":"",
  51. },
  52. {
  53. "agent_user_name": "Anzw0030",
  54. "registration_data": "2023-05-24 12:47:40",
  55. "accumulate_payment": "500",
  56. "last_payment_amount": "300",
  57. "last_payment_date": "2023-02-22 22:22",
  58. "bank_real_name": "",
  59. "bank_card_number": "",
  60. "bank_name": "",
  61. "usdt_string":"7684957890erdfhncxjvhn2q34789wegfvbsdhkq34btwe789-gydrthipy78",
  62. }
  63. ]
  64. $.each(res.data, function (index, value) {
  65. AppleList += `
  66. <div class="HoutaiContainerBottomAppleListHeaders">
  67. <p class="HoutaiContainerBottomAppleListHeaderYH">${value.agent_user_name}</p>
  68. <div class="HoutaiContainerBottomAppleListHeaderRQContent">
  69. <p class="HoutaiContainerBottomAppleListHeaderRQ">${value.registration_data.substr(0, 10)}</p>
  70. <p class="HoutaiContainerBottomAppleListHeaderRQ">${value.registration_data.substr(10, 18)}</p>
  71. </div>
  72. <p class="HoutaiContainerBottomAppleListHeaderLDK">${value.accumulate_payment}</p>
  73. <p class="HoutaiContainerBottomAppleListHeaderZJDKJE">${value.last_payment_amount}</p>
  74. <div class="HoutaiContainerBottomAppleListHeaderZJDKRQContent">
  75. <p class="HoutaiContainerBottomAppleListHeaderZJDKRQ">${value.last_payment_date.substr(0, 10)}</p>
  76. <p class="HoutaiContainerBottomAppleListHeaderZJDKRQ">${value.last_payment_date.substr(10, 18)}</p>
  77. </div>
  78. <div class="HoutaiContainerBottomAppleListHeaderYHKContent">
  79. <p class="HoutaiContainerBottomAppleListHeaderYHK">${value.bank_real_name}</p>
  80. <p class="HoutaiContainerBottomAppleListHeaderYHK">${value.bank_card_number?value.bank_card_number : "\/"}</p>
  81. <p class="HoutaiContainerBottomAppleListHeaderYHK">${value.bank_name}</p>
  82. </div>
  83. <div class="HoutaiContainerBottomAppleListHeaderUSDTContent">
  84. <div class="HoutaiContainerBottomAppleListHeaderUSDT">${value.usdt_string?value.usdt_string : "\/"}</div>
  85. </div>
  86. </div>`;
  87. });
  88. $("#AppleList").html(AppleList);
  89. },
  90. complete: function (res, status) {
  91. $("#page").paging({
  92. pageNo: tabId,
  93. totalPage: parseInt(res.responseJSON.amount) / 50,
  94. callback: function (num) {
  95. window.location.href =
  96. "https://www.aa9169.com/paid?TabId=" + num;
  97. },
  98. });
  99. },
  100. });
  101. });