onLaunch: function() {
//判断设备是否为 iPhone
const self = this
uni.getSystemInfo({
success: function(res) {
// 根据 model 进行判断
if (res.model === ‘iPhone X’ || ‘iPhone XR’ || ‘iPhone XS Max’ || ‘iPhone 11’ || ‘iPhone 11 Pro’ || ‘iPhone 11 Pro Max’) {
console.log(’【苹果手机】:’,)
}
}
})
}
uni-app判断设备是否为 iPhone
最新推荐文章于 2025-01-15 16:38:28 发布