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