123456789101112131415161718192021222324252627282930313233 |
- import login from './utils/login';
- 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: {},
-
- imageUrl: 'http://broadcast.waityou24.cn',
- publicUrl: 'https://broadcast.waityou24.cn',
- },
-
- toLogin: login.toLogin,
- ...httpUtil
- })
|