diff --git a/css/style.css b/css/style.css index 9443563..13d4e11 100644 --- a/css/style.css +++ b/css/style.css @@ -151,10 +151,11 @@ img { z-index: 99; top: 0; background-color: #f7f7f7; - padding-top: 48px; + /* padding-top: 48px; */ overflow-y: scroll; box-sizing: border-box; transition: left 0.4s; + border-top: 48px solid #fff; } .my-account:target { left: 0; @@ -335,10 +336,11 @@ img { .billing-header { position: fixed; - top: 48px; + top: 0; left: 100%; z-index: 10; width: 100%; + border-top: 48px solid #fff; } .home-box { diff --git a/index.html b/index.html index 36bcf3d..d43e453 100644 --- a/index.html +++ b/index.html @@ -15,7 +15,7 @@
@@ -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(`
${fontAnimationList[0]}
${fontAnimationList[1]}
`) $('.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)