From c0c9335c4e404beb94890fe2ef402380b8e3b151 Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期三, 13 三月 2024 19:57:35 +0800 Subject: [PATCH] fix(sad): 阿斯蒂芬 --- pages/bibliographyList/index.js | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/pages/bibliographyList/index.js b/pages/bibliographyList/index.js index cab19a3..d3fee23 100644 --- a/pages/bibliographyList/index.js +++ b/pages/bibliographyList/index.js @@ -26,13 +26,12 @@ this.vocationalGet() this.teacherGet() - - //鑾峰彇绯荤粺淇℃伅锛岀姸鎬佹爮楂樺害涓簊ysInfo['statusBarHeight']; - let sysInfo = wx.getSystemInfoSync(); - let menu = wx.getMenuButtonBoundingClientRect(); //鑳跺泭淇℃伅 - let navBarHeight = (menu.top - sysInfo.statusBarHeight) * 2 + menu.height; // 瀵艰埅鏍忛珮搴� + const systInfo = wx.getSystemInfoSync(); + const menu = wx.getMenuButtonBoundingClientRect(); // 鑳跺泭淇℃伅 + const navBarHeight = (menu.top - systInfo.statusBarHeight) * 2 + menu.height; // 瀵艰埅鏍忛珮搴� this.setData({ - BarHeight: sysInfo.statusBarHeight, navBarHeight: navBarHeight + navBarHeight: navBarHeight, + barHeight: systInfo.statusBarHeight, }) @@ -264,6 +263,8 @@ }, - + goBack() { + wx.navigateBack(); + }, }) \ No newline at end of file -- Gitblit v1.9.1