|
|
@ -11,34 +11,34 @@ |
|
|
|
|
|
|
|
<body> |
|
|
|
<img class="loading" src="./img/loading.png" alt=""> |
|
|
|
|
|
|
|
<div id="home" class="container"> |
|
|
|
<div id="bb" class="billing my-account"> |
|
|
|
<div class="account-header"> |
|
|
|
<a href="#home" class="account-back"></a> |
|
|
|
<img class="bg" src="./img/account.jpg" alt=""> |
|
|
|
</div> |
|
|
|
<div class="bb-list"> |
|
|
|
</div> |
|
|
|
<img class="bg" style="margin-top: 10px;" src="./img/IMG_3620.jpg" alt=""> |
|
|
|
<div id="bb" class="my-account"> |
|
|
|
<div class="account-header"> |
|
|
|
<a href="#home" class="account-back"></a> |
|
|
|
<img class="bg" src="./img/account.jpg" alt=""> |
|
|
|
</div> |
|
|
|
<div class="bb-list"> |
|
|
|
</div> |
|
|
|
<img class="bg" style="margin-top: 10px;" src="./img/IMG_3620.jpg" alt=""> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div id="list" class="billing list-class"> |
|
|
|
<div class="account-header billing-header"> |
|
|
|
<a href="javascript:history.back(-1)" class="account-back"></a> |
|
|
|
<div class="card-box"> |
|
|
|
<div class="card-number"></div> |
|
|
|
<img class="bg" id="m1" src="./img/m1.png" alt=""> |
|
|
|
<div class="filter"> |
|
|
|
<div class="filter-item active" data-query-key="nearlyWeek">近一周</div> |
|
|
|
<div class="filter-item" data-query-key="nearlyMonth">近一月</div> |
|
|
|
<div class="filter-item" data-query-key="lastThreeMonths">近三月</div> |
|
|
|
</div> |
|
|
|
<div id="list" class="billing list-class"> |
|
|
|
<div class="account-header billing-header"> |
|
|
|
<a href="javascript:history.back(-1)" class="account-back"></a> |
|
|
|
<div class="card-box"> |
|
|
|
<div class="card-number"></div> |
|
|
|
<img class="bg" id="m1" src="./img/m1.png" alt=""> |
|
|
|
<div class="filter"> |
|
|
|
<div class="filter-item active" data-query-key="nearlyWeek">近一周</div> |
|
|
|
<div class="filter-item" data-query-key="nearlyMonth">近一月</div> |
|
|
|
<div class="filter-item" data-query-key="lastThreeMonths">近三月</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="billing-list"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="billing-list"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div id="home" class="container"> |
|
|
|
|
|
|
|
<div class="header"> |
|
|
|
|
|
|
@ -137,6 +137,7 @@ |
|
|
|
|
|
|
|
$('.filter-item').click(function () { |
|
|
|
hideLoading(); |
|
|
|
|
|
|
|
$('.loading').show(); |
|
|
|
$('.filter-item').removeClass('active'); |
|
|
|
const key = $(this).attr('data-query-key'); |
|
|
@ -179,7 +180,6 @@ |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
function renderBillingDom(arr) { |
|
|
|
const billingHtmlArr = arr.map(item => { |
|
|
|
const { type, name, amount, time, money } = item; |
|
|
@ -202,6 +202,10 @@ |
|
|
|
$('.billing-list').html(billingHtmlArr) |
|
|
|
} |
|
|
|
|
|
|
|
$('.account-back').click(function () { |
|
|
|
$('.my-account').removeClass('moveRight') |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
$.ajax({ |
|
|
|
url: "./config.json", |
|
|
@ -230,6 +234,7 @@ |
|
|
|
$('.box-list').html(`<div>${fontAnimationList[0]}</div><div>${fontAnimationList[1]}</div>`) |
|
|
|
$('.toList').each(function () { |
|
|
|
$(this).click(() => { |
|
|
|
$('.my-account ').addClass('moveRight') |
|
|
|
console.log($(this).attr('data-index'), 'wwww') |
|
|
|
$('.card-number').text(cardList[$(this).attr('data-index')]?.cardId) |
|
|
|
}) |
|
|
|