12345678910111213141516171819202122232425262728293031323334 |
- //app.js
- const AUTH = require('utils/auth')
- App({
- onLaunch:async function () {
- // 处理登录
- // 自动登录
- // await AUTH.checkHasLogined().then(async isLogined => {
- // if (!isLogined) {
- // AUTH.login().then(async res=>{
- // api.getopenId(res.code).then((res)=>{
- // let openId = res.data.openId;
- // this.globalData.openId= openId;
- // wx.setStorageSync({
- // data: openId,
- // key: 'openId',
- // })
- // this.check();
- // });
- // });
- // }
- // })
- },
- globalData: {
- userInfo: null,
- hasUserInfo:false,
- openId:null,
- userId:null,
- projectId:"",
- tenantId:"",
- tenants:[],
- projectName:null,
- imgbaseUrl:"http://api.sagacloud.cn/dp-auxiliary/image-service/common/image_get?systemId=dataPlatform&key=",
- }
- })
|