let that = null; module.exports = { currentPage: null, currentPageOptions: {}, onLoad: function(e, t) { that = this; that.currentPage = e; that.currentPageOptions = t; that.isPlatformFun(); }, onShow: function(e) { that.currentPage = e; that.setLogin(); }, setLogin(){ if(!that.currentPage.$util.isLoginCallBack()){ that.currentPage.isLogin = false; }else{ that.currentPage.isLogin = true; } }, isPlatformFun(){ // #ifdef H5 that.currentPage.isPlatform = "h5"; console.log(that.currentPage.isPlatform + "======platform"); // #endif // #ifdef APP-PLUS that.currentPage.isPlatform = "app"; console.log(that.currentPage.isPlatform + "======platform"); // #endif // #ifdef MP-WEIXIN that.currentPage.isPlatform = "wx"; console.log(that.currentPage.isPlatform + "======platform"); // #endif } };