From ecabd20b3dfbd956dad14ffb6ba3dc2efcfdd7c1 Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期一, 25 三月 2024 16:23:32 +0800 Subject: [PATCH] 微信支付 --- pages/home/home.js | 16 +++++++++++++--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a/pages/home/home.js b/pages/home/home.js index bfe983c..b2ef42e 100644 --- a/pages/home/home.js +++ b/pages/home/home.js @@ -4,6 +4,8 @@ const app = getApp() Page({ data: { + barHeight: '', + navBarHeight: '', searchVal: '', isWhite: false, backUrl: null, @@ -36,6 +38,13 @@ }, onLoad(options) { + const systInfo = wx.getSystemInfoSync(); + const menu = wx.getMenuButtonBoundingClientRect(); // 鑳跺泭淇℃伅 + const navBarHeight = (menu.top - systInfo.statusBarHeight) * 2 + menu.height; // 瀵艰埅鏍忛珮搴� + this.setData({ + barHeight: systInfo.statusBarHeight, + navBarHeight: navBarHeight, + }); if (options.backUrl) { let backUrl = JSON.parse(decodeURIComponent(options.backUrl)); if (backUrl.options) { @@ -149,7 +158,7 @@ getBannerList() { const list = [] app.MG.resource.getItem({ - path: 'jsek_banner\\jsek_homeBanner', + path: 'jsek_banner\\jsek_homeBannerApplet', fields: { jsek_link: [] }, paging: { start: 0, size: 9 } }).then(res => { @@ -511,7 +520,7 @@ onPageScroll(e) { this.setData({ - isWhite: e.scrollTop > 50 ? true : false + isWhite: e.scrollTop > 20 ? true : false }) }, @@ -524,6 +533,7 @@ }) - } + }, + }); -- Gitblit v1.9.1