12345678910111213141516171819202122232425262728293031323334 |
- import * as httpUtil from "./utils/httpUtil";
- import $checkRes from './utils/checkRes';
- const app = getApp();
- App({
- onLaunch() {
-
- const logs = wx.getStorageSync('logs') || []
- logs.unshift(Date.now())
- wx.setStorageSync('logs', logs)
-
- wx.getSystemInfo({
- success: (res) => {
- let data = res;
- data.getMenu = wx.getMenuButtonBoundingClientRect();
- this.globalData.client = data;
- }
- })
- },
- globalData: {
-
- userInfo: {},
-
- wxInfo: {},
-
- client: {},
-
- publicUrl: 'http://broadcast.waityou24.cn',
-
- fileUrl: "https://broadcast.waityou24.cn",
- },
- ...httpUtil,
- $checkRes
- })
|