12345678910111213141516171819202122232425262728293031 |
- import * as httpUtil from "./utils/httpUtil";
- 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: 'https://broadcast.waityou24.cn',
-
- fileUrl: "http://broadcast.waityou24.cn",
-
- imageUrl: "http://broadcast.waityou24.cn",
- },
- ...httpUtil
- })
|