12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- $(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/agent_list_info_Above",
- dataType: "json",
- data: {},
- success: function (res) {
- console.log(res);
- let data = res.data;
- $("#tableCardDL").text(data.agent_people_amount);
- $("#tableCardMonthYQ").text(data.this_month_invite_num);
- $("#tableCardMonthHY").text(data.this_month_vip_num);
- $("#tableCardMonthYJ").text(data.this_month_agent_money);
- $("#tableCardAllYQ").text(data.accumulate_invite_num);
- $("#tableCardAllHY").text(data.accumulate_vip_num);
- $("#tableCardAllYJ").text(data.accumulate_agent_money);
- },
- });
- // 数据-代理统计列表
- $.ajax({
- type: "post",
- url: "https://www.aa9169.com/Admin/Adminback/agent_money_user_statistcs",
- dataType: "json",
- data: {
- // token: "b8e3bb6ef8747d7",
- page: tabId,
- // size: 5,
- },
- success: function (res) {
- console.log(res);
- var AppleList = "";
- $.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="HoutaiContainerBottomAppleListHeaderHY">${value.vip_yn}</p>
- <p class="HoutaiContainerBottomAppleListHeaderBYQ">${value.this_month_invite_num}</p>
- <p class="HoutaiContainerBottomAppleListHeaderBHY">${value.this_month_vip_num}</p>
- <p class="HoutaiContainerBottomAppleListHeaderBYJ">${value.this_month_agent_money}</p>
- <p class="HoutaiContainerBottomAppleListHeaderLYQ">${value.accumulate_invite_num}</p>
- <p class="HoutaiContainerBottomAppleListHeaderLHQ">${value.accumulate_vip_num}</p>
- <p class="HoutaiContainerBottomAppleListHeaderLQJ">${value.accumulate_agent_money}</p>
- </div>`;
- });
- $("#AppleList").html(AppleList);
- },
- complete: function (res, status) {
- console.log(res.responseJSON.amount);
- $("#page").paging({
- pageNo: tabId,
- totalPage: parseInt(res.responseJSON.amount) / 50,
- callback: function (num) {
- window.location.href =
- "https://www.aa9169.com/earningstatistics?id=2&TabId=" + num;
- },
- });
- },
- });
- });
|