# getUserInfo ^7.8
获取登录态信息
# 请求参数
N/A
# 接口调用示例
this.$bridge
.getUserInfo()
.then((res) => {
this.$alert(res);
})
.catch((err) => {
this.$toast(err);
});
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
# 接口返回示例
{
"APIDescription": "Use uid as the unique user identifier instead of a numeric userNumberId.",
"uid": "xxxxx",
"mobile": "",
"cardNo": "",
"avatar": "xxxxx",
"userId": "xxxxx",
"accountId": "xxxxx",
"nickName": "xxxxx",
"homeId": "",
"email": "xxxxx",
"code": 0,
"msg": "success"
}
// 未登录时返回
{
code: -1,
msg: 'faild'
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20