|
|
@ -15,7 +15,7 @@ |
|
|
|
<div id="home" class="container"> |
|
|
|
<div id="bb" class="my-account"> |
|
|
|
<div class="account-header"> |
|
|
|
<a href="#home" class="account-back"></a> |
|
|
|
<a href="#home" class="account-back account-back"></a> |
|
|
|
<img class="bg" src="./img/account.jpg" alt=""> |
|
|
|
</div> |
|
|
|
<div class="bb-list"> |
|
|
@ -103,7 +103,7 @@ |
|
|
|
|
|
|
|
$(async function () { |
|
|
|
let nearlyMonth = [], lastThreeMonths = [], nearlyWeek = []; |
|
|
|
|
|
|
|
let isClickToLost = false; |
|
|
|
new Swiper('.swiper-container', { |
|
|
|
loop: true, |
|
|
|
pagination: '.swiper-pagination', |
|
|
@ -115,10 +115,6 @@ |
|
|
|
window?.ReactNativeWebView?.postMessage(1) |
|
|
|
}) |
|
|
|
|
|
|
|
$('.account-back').on('click', () => { |
|
|
|
window?.ReactNativeWebView?.postMessage(0) |
|
|
|
}) |
|
|
|
|
|
|
|
$("#m1").each(function () { |
|
|
|
if (this.complete) { |
|
|
|
console.log('complete', this.height) |
|
|
@ -202,9 +198,17 @@ |
|
|
|
} |
|
|
|
|
|
|
|
$('.back-btn').click(function () { |
|
|
|
$('.my-account').removeClass('moveRight') |
|
|
|
$('.my-account').removeClass('moveRight'); |
|
|
|
if (isClickToLost) { |
|
|
|
window?.ReactNativeWebView?.postMessage(1) |
|
|
|
} else { |
|
|
|
window?.ReactNativeWebView?.postMessage(0) |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
$('.account-back').on('click', () => { |
|
|
|
window?.ReactNativeWebView?.postMessage(0) |
|
|
|
}) |
|
|
|
|
|
|
|
$.ajax({ |
|
|
|
url: "./config.json", |
|
|
@ -233,6 +237,7 @@ |
|
|
|
$('.box-list').html(`<div>${fontAnimationList[0]}</div><div>${fontAnimationList[1]}</div>`) |
|
|
|
$('.toList').each(function () { |
|
|
|
$(this).click(() => { |
|
|
|
isClickToLost = true |
|
|
|
$('.my-account ').addClass('moveRight') |
|
|
|
console.log($(this).attr('data-index'), 'wwww') |
|
|
|
$('.card-number').text(cardList[$(this).attr('data-index')]?.cardId) |
|
|
|