let _this = this;
// 获取手机系统信息
wx.getSystemInfo({
success: res => {
// 根据 屏幕高度 进行判断
if (res.screenHeight - res.windowHeight - res.statusBarHeight - 32 > 72) {
_this.globalData.isFullSucreen = true
}
// 根据手机类型
if (res.platform =="ios") {
_this.globalData.iOSDevice = true
}
},
fail(err) {
}
})
网友评论