|
|
@ -137,18 +137,20 @@ |
|
|
|
$('.filter-item').click(function () { |
|
|
|
hideLoading(); |
|
|
|
renderBillingDom([]) |
|
|
|
|
|
|
|
$('.loading').show(); |
|
|
|
$('.filter-item').removeClass('active'); |
|
|
|
const key = $(this).attr('data-query-key'); |
|
|
|
$(this).addClass('active') |
|
|
|
if (key === 'nearlyMonth') { |
|
|
|
renderBillingDom(nearlyMonth) |
|
|
|
} else if (key === 'lastThreeMonths') { |
|
|
|
renderBillingDom(lastThreeMonths) |
|
|
|
} else if (key === 'nearlyWeek') { |
|
|
|
renderBillingDom(nearlyWeek) |
|
|
|
} |
|
|
|
const timer = setTimeout(() => { |
|
|
|
clearTimeout(timer) |
|
|
|
$('.filter-item').removeClass('active'); |
|
|
|
const key = $(this).attr('data-query-key'); |
|
|
|
$(this).addClass('active') |
|
|
|
if (key === 'nearlyMonth') { |
|
|
|
renderBillingDom(nearlyMonth) |
|
|
|
} else if (key === 'lastThreeMonths') { |
|
|
|
renderBillingDom(lastThreeMonths) |
|
|
|
} else if (key === 'nearlyWeek') { |
|
|
|
renderBillingDom(nearlyWeek) |
|
|
|
} |
|
|
|
}, 500) |
|
|
|
}) |
|
|
|
|
|
|
|
$('.account,.mx').on('click', () => { |
|
|
|