# enterProfile
进入个人信息主页
注意事项:
小程序调用前,请确保已经调用login接口成功登录;
# 支持说明
应用能力 | Android | iOS | PC | 预览效果 |
---|---|---|---|---|
小程序 | 3.3.0 | 3.3.0 | 3.4.0 | 扫码预览 用BoosHi扫码或PC端点击 |
网页应用 | 3.11.0 | 3.11.0 | 3.11.0 | 待补充 |
# 输入
继承标准对象输入,扩展属性描述:
名称 | 数据类型 | 必填 | 默认值 | 描述 |
---|---|---|---|---|
openid | string | 是 | 用户 openid 3.10.0-: 明文bosshi单聊 userid 示例 :2010273.10.0: 加密的bosshi单聊 userid 示例 :89EDAB2A519AB20BDAFC43864D2957D913.11.0: 开放平台单聊 openid 示例: ou_aea5df288c71a47af6ccd786c05be939 | |
left | number | 否 | 0 | 用户卡片原点(左上角)横坐标(px)Android/iOS 端:不支持 |
top | number | 否 | 0 | 用户卡片原点(左上角)纵坐标(px)Android/iOS 端:不支持 |
# 输出
继承标准对象输出,无扩展属性
# 示例代码
bz.chooseContact({
success: (res) => {
bz.enterProfile({
openid: res.data[0].openId,
left: 100,
top: 200,
success(res) {
console.log(JSON.stringify(res));
},
fail(res) {
console.log(`enterProfile fail: ${JSON.stringify(res)}`);
}
})
}
})
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
success
返回对象示例:
{
"errMsg": "enterProfile:ok"
}
1
2
3
2
3