123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- $(document).ready(function () {
- let url = window.location.search;
- var theRequest = new Object();
- if (url.indexOf("?") != -1) {
- var str = url.substr(1);
- strs = str.split("&");
- for (var i = 0; i < strs.length; i++) {
- theRequest[strs[i].split("=")[0]] = unescape(
- decodeURI(strs[i].split("=")[1])
- );
- }
- }
- let tabId = theRequest.TabId || 1;
- // 获取数据-待打款展示头
- $.ajax({
- type: "post",
- url: "https://www.aa9169.com/Admin/Adminback/paid_commission_record_above",
- dataType: "json",
- data: {},
- success: function (res) {
- console.log(res);
- let data = res.data;
- $("#tableCardMoneyDL").text(data.payment_people_num);
- $("#tableCardAllMoneyYJ").text(data.accumulate_payment_amount);
- $("#tableCardUpMonthMoneyYJ").text(data.last_month_payment_amount);
- $("#tableCardAThisMonthMoneyYJ").text(data.now_month_payment_amount);
- },
- });
- // 获取数据-待打款佣金列表
- $.ajax({
- type: "post",
- url: "https://www.aa9169.com/Admin/Adminback/paid_commission_record",
- dataType: "json",
- data: {
- page: tabId,
- },
- success: function (res) {
- console.log(res);
- var AppleList = "";
- let arr = [
- {
- "agent_user_name": "Anzw0030",
- "registration_data": "2023-05-24 12:47:40",
- "accumulate_payment": "500",
- "last_payment_amount": "300",
- "last_payment_date": "2023-02-22 22:22",
- "bank_real_name": "呜啦",
- "bank_card_number": "66666",
- "bank_name": "呜啦银行",
- "usdt_string":"",
- },
- {
- "agent_user_name": "Anzw0030",
- "registration_data": "2023-05-24 12:47:40",
- "accumulate_payment": "500",
- "last_payment_amount": "300",
- "last_payment_date": "2023-02-22 22:22",
- "bank_real_name": "",
- "bank_card_number": "",
- "bank_name": "",
- "usdt_string":"7684957890erdfhncxjvhn2q34789wegfvbsdhkq34btwe789-gydrthipy78",
- }
- ]
-
-
- $.each(res.data, function (index, value) {
-
- AppleList += `
- <div class="HoutaiContainerBottomAppleListHeaders">
- <p class="HoutaiContainerBottomAppleListHeaderYH">${value.agent_user_name}</p>
-
- <div class="HoutaiContainerBottomAppleListHeaderRQContent">
- <p class="HoutaiContainerBottomAppleListHeaderRQ">${value.registration_data.substr(0, 10)}</p>
- <p class="HoutaiContainerBottomAppleListHeaderRQ">${value.registration_data.substr(10, 18)}</p>
- </div>
- <p class="HoutaiContainerBottomAppleListHeaderLDK">${value.accumulate_payment}</p>
- <p class="HoutaiContainerBottomAppleListHeaderZJDKJE">${value.last_payment_amount}</p>
-
- <div class="HoutaiContainerBottomAppleListHeaderZJDKRQContent">
- <p class="HoutaiContainerBottomAppleListHeaderZJDKRQ">${value.last_payment_date.substr(0, 10)}</p>
- <p class="HoutaiContainerBottomAppleListHeaderZJDKRQ">${value.last_payment_date.substr(10, 18)}</p>
- </div>
-
- <div class="HoutaiContainerBottomAppleListHeaderYHKContent">
- <p class="HoutaiContainerBottomAppleListHeaderYHK">${value.bank_real_name}</p>
- <p class="HoutaiContainerBottomAppleListHeaderYHK">${value.bank_card_number?value.bank_card_number : "\/"}</p>
- <p class="HoutaiContainerBottomAppleListHeaderYHK">${value.bank_name}</p>
- </div>
- <div class="HoutaiContainerBottomAppleListHeaderUSDTContent">
- <div class="HoutaiContainerBottomAppleListHeaderUSDT">${value.usdt_string?value.usdt_string : "\/"}</div>
- </div>
- </div>`;
- });
- $("#AppleList").html(AppleList);
- },
- complete: function (res, status) {
- $("#page").paging({
- pageNo: tabId,
- totalPage: parseInt(res.responseJSON.amount) / 50,
- callback: function (num) {
- window.location.href =
- "https://www.aa9169.com/paid?TabId=" + num;
- },
- });
- },
- });
- });
|