pages/bookExhibitionDetails/index.js
@@ -27,6 +27,8 @@ * 生命周期函数--监听页面加载 */ onLoad(options) { const systInfo = wx.getSystemInfoSync(); const menu = wx.getMenuButtonBoundingClientRect(); // 胶囊信息 const navBarHeight = (menu.top - systInfo.statusBarHeight) * 2 + menu.height; // 导航栏高度 @@ -47,6 +49,10 @@ this.bookExhibitionGet(passId) this.getBookExhibitionDetails() wx.setNavigationBarTitle({ title: this.data.subtitleName }); }, /**