tt.openAwemeUserProfile
基础库 1.84.0 开始支持本方法。
暂时只支持在抖音 App 上使用。
使用该功能前开发者需要绑定想要跳转的抖音号,具体信息请参考功能接入指引。
调用跳转个人抖音号主页,用户可以选择关注/取消关注抖音号。
语法
tt.openAwemeUserProfile(options);
参数说明
options
为 object 类型,属性如下:
属性名 | 类型 | 默认值 | 必填 | 说明 | 最低支持版本 |
---|---|---|---|---|---|
success | function | 否 | 接口调用成功后的回调函数 | 1.84.0 | |
fail | function | 否 | 接口调用失败后的回调函数 | 1.84.0 | |
complete | function | 否 | 接口调用结束后的回调函数(调用成功、失败都会执行) | 1.84.0 |
回调成功
属性名 | 类型 | 说明 | 最低支持版本 |
---|---|---|---|
errMsg | string | "openAwemeUserProfile:ok" | 1.84.0 |
回调失败
object 类型,属性如下
属性名 | 类型 | 说明 | 最低支持版本 |
---|---|---|---|
errMsg | string | "openAwemeUserProfile:fail " + 详细错误信息 | 1.84.0 |
代码示例
tt.openAwemeUserProfile({
success: (res) => {
console.log(res);
},
});
使用效果
调用后跳转到抖音主页

Bug & Tip
- Tip: 使用该功能前开发者需要绑定想要跳转的抖音号。
点击纠错
评价此篇文档