let app = getApp(); export default { data() { return { defaultScrollTop: 0, pageHeight: 0, nav_status_Height: 0, // 头部栏高度 (状态栏高度 - 标题高度) }; }, beforeCreate() {}, created() { const { statusBarHeight, screenHeight, viewHeight, navHeight } = app.globalData; this.nav_status_Height = statusBarHeight + navHeight; const h = uni.upx2px(this.topFixedHeight || 0); this.defaultScrollTop = statusBarHeight + navHeight + h; // 头部综合高度(态栏高度 - 标题高度 - 搜索栏高度) // 屏幕高度 - 头部综合高度 this.pageHeight = screenHeight - this.defaultScrollTop - 80; }, onload() { }, methods: { }, }