

English
For more information, please refer to the official QQ document [Overview of Mobile Application Access](https://wiki.connect.qq.com/%e7%a7%bb%e5%8a%a8%e5%ba%94%e7%94 %a8%e6%8e%a5%e5%85%a5%e6%a6%82%e8%bf%b0)
Notice
qq
uni.login({
provider: 'qq',
success: function (loginRes) {
// login successful
uni.getUserInfo({
provider: 'qq',
success: function(info) {
// Obtain user information successfully, info.authResult saves user information
}
})
},
fail: function (err) {
// 登录授权失败
// err.code is the error code
}
});
var qqOauth = null;
plus.oauth.getServices(function(services) {
for (var i in services) {
var service = services[i];
// 获取QQ登录对象
if (service.id == 'qq') {
qqOauth = service;
break;
}
}
qqOauth.login( function(oauth){
// 授权成功,qqOauth.authResult 中保存授权信息
}, function(err) {
// 登录授权失败
// err.code is the error code
})
}, function(err) {
// Failed to get services
})