设置tabbar wx.setTabBarStyle({ selectedColor: that.data.background }) 隐藏原生tabbar wx.hideTabBar(); 判断手机 // 根据手机类型来判断是否是 iphone let modelmes = res.model if(modelmes.search('iPhone') != -1) { if(res.safeArea.top > 20) { that.globalData.isIphoneX = true; } } 触发子组件事件