//判断用户是否为ios用户uni.getSystemInfo({success: function (res) {if(res.osName=="ios"){uni.setStorageSync('version',true)}else if(res.osName=="macos"){uni.setStorageSync('version',true)}else{uni.setStorageSync('version',false)}console.log(res.osName,"版本");console.log(res.system,"系统");}});
具体平台判断请参考uniapp官网 系统信息的概念 | uni-app官网