From 0555dd7dc2edc553030b7a6d03d6a1cda4b1e336 Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期三, 20 三月 2024 15:41:58 +0800 Subject: [PATCH] 111 --- pages/home/home.js | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/pages/home/home.js b/pages/home/home.js index bfe983c..f534823 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 => { -- Gitblit v1.9.1