// Pages/authentication/authentication.js const app = getApp() Page({ data: { nbFrontColor: '#000000', nbBackgroundColor: '#ffffff', navbarData: { showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示 title: '实名认证', //导航栏 中间的标题 }, // 此页面 页面内容距最顶部的距离 height: app.globalData.height, }, onLoad() { console.log(this.data.height) }, onShow(){ this.setData({ nbLoading: false, }) } })