Uni-app 之IOS苹果账号登录
一、开发文档
https://uniapp.dcloud.net.cn/tutorial/app-oauth-apple.html
二、示例
appleLogin() { uni.login({ provider: 'apple', success: function(loginRes) { console.log(loginRes) // 登录成功 uni.getUserInfo({ provider: 'apple', success: function(info) { console.log(info) openId = info.userInfo.openId //服务器端查询 }, fail(res) { uni.showModal({ title: '提示', content: JSON.stringify(res) }) } }) } }); }