You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

36 lines
981 B

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
}
};