wx.getSystemInfo({
success: res => {
console.log(‘手机信息res’ + res.model)
let modelmes = res.model;
console.log(modelmes.search(‘iPhone X’));
if (modelmes.search(‘iPhone 12 Pro’) != -1 || modelmes.search(‘iPhone X’) != -1 || modelmes.search(‘iPhone XR’) != -1 || modelmes.search(‘iPhone XS max’) != -1 || modelmes.search(‘iPhone 11’) != -1) {
that.globalData.isIphoneX = true
console.log(that.globalData.isIphoneX)
//isIphoneX = true根据需求底部上升40rpx
} else {
console.log(“no”)
}
}
})
11-04
628
05-21
1895