//app.js import {HTTP} from '/utils/http.js' const http = new HTTP() App({ onLaunch: function (options) { wx.getSystemInfo({ success: res => { this.globalData.systemInfo = res this.globalData.windowHeight = res.windowHeight this.globalData.screenHeight = res.screenHeight } }) if(options.referrerInfo.hasOwnProperty('extraData')){ this.globalData.navigate.mobile = options.referrerInfo.extraData.mobile, this.globalData.navigate.nickname = options.referrerInfo.extraData.nickname, this.globalData.navigate.faceImg = options.referrerInfo.extraData.faceImg } http.fetchAuthToken(res => { // console.log(res) }) http.getConfig(res=>{ if(res.result.projectFlag == 1){ this.globalData.flag = 1; } }) }, globalData: { userInfo: null, navigate:{ mobile:'', nickname:'', faceImg:'', }, windowHeight:'', screenHeight:'', flag:0 } })