getUnionId 用户标识unionid,主要用于微信、QQ用户系统打通
getUnionId ^7.8
用户标识 unionid 主要用于微信、QQ 用户系统打通
#请求参数
| Prop | Type | Required | Default | Comment | 
|---|---|---|---|---|
| type | String | Y | - | wx/qq | 
#接口调用示例
const params = {
  type: "wx",
};
this.$bridge
  .getUnionId(params)
  .then((res) => {
    this.$alert(res);
  })
  .catch((err) => {
    this.$toast(err);
  });
#接口返回示例
// 成功时无返回
// 失败返回
{
  code: "20000",
  msg: 'third is not found', // 手机上未安装type 对应的第三方app
}
{
  code: "40002",
  msg: "未能完成该操作。移动平台Token校验不通过[user token not exsit]" // 当前用户未在美居APP登录
}
 
                    
                 
 
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号