1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- // import "./__antmove/component/componentClass.js";
- import './vant-aliapp/__antmove/component/componentClass.js';
- my.global = {};
- const _my = require("./__antmove/api/index.js")(my);
- const wx = _my;
- // app.js
- App({
- data: {
- roomInfo: null, //会议室详情 home.js中到/pages/meeting/detail/的跳链,
- roomContentInfo: null, //我的会议-详情 /pages/meeting/detail.js中到 /pages/meeting/appointmentDetail/index的跳链
- meettingInfo: null, ///pages/meeting/detail.js中到/pages/meeting/subscribe/index的跳链
- renewalInfo: null,// 会议续约详情 pages/myRenewalContract/detail/index
- tranInfo: null,// 会议转让详情 pages/myTransfer/detail/index
- orderMealInfo:null,//会议服务 pages/orderMeal/index/index
- },
- onLaunch(options) {
- // console.log(11111);
- // console.log(options, 77);
- // console.log(options.query, 88);
- if (options.query && options.query.adminId) {
- this.globalData.adminId = options.query.adminId
- console.log(this.globalData.adminId);
- my.reLaunch({
- url: '/pages/home/home',
- })
- }
- // 展示本地存储能力
- const logs = wx.getStorageSync("logs") || [];
- logs.unshift(Date.now());
- wx.setStorageSync("logs", logs); // 登录
- // wx.login({
- // success: res => {
- // // 发送 res.code 到后台换取 openId, sessionKey, unionId
- // wx.setStorageSync("wxCode", res.code);
- // console.log(res, 666);
- // }
- // });
- //获取胶囊按钮位置信息
- wx.getSystemInfo({
- success: e => {
- this.globalData.StatusBar = e.statusBarHeight;
- let capsule = wx.getMenuButtonBoundingClientRect();
- if (capsule) {
- this.globalData.Custom = capsule;
- this.globalData.CustomBar =
- capsule.bottom + capsule.top - e.statusBarHeight;
- } else {
- this.globalData.CustomBar = e.statusBarHeight + 50;
- }
- }
- });
- },
- globalData: {
- userInfo: null,
- adminId: null
- }
- });
|