export default new (class { private systemInfo = { statusBarHeight: 0 } constructor() { wx.getSystemInfo({ success: (res) => { this.systemInfo = res; } }) } /** * 获取系统信息 */ getSystemInfo() { return this.systemInfo; } })