MCPcopy Create free account
hub / github.com/circircir-circle/human_exist_device / onLaunch

Function onLaunch

mini_program/app.js:30–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 SilentTh :[20, 20, 20, 20, 20, 20, 20, 20, 20]
29 },
30 onLaunch() {
31 wx.getSystemInfo({
32 success: (e) => {
33 this.globalData.StatusBar = e.statusBarHeight;
34 let capsule = wx.getMenuButtonBoundingClientRect();
35 this.globalData.WindowWidth = e.windowWidth;
36 this.globalData.PixelRatio = 750 / e.windowWidth;
37 if (capsule) {
38 this.globalData.Custom = capsule;
39 this.globalData.CustomBar = capsule.bottom + capsule.top - e.statusBarHeight;
40 } else {
41 this.globalData.CustomBar = e.statusBarHeight + 50;
42 }
43 }
44 });
45 },
46 onShow() {},
47 onHide() {}
48});

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected