...
代码块 | ||
---|---|---|
| ||
const AppAuthorization = {
isLogin() {
return false;
},
getUserInfo() {
return {
identitys: [
{
identityType: "", // 身份类型,如idCardNo、userid等
identityValue: "", // 类型值
},
{
identityType: "",
identityValue: "",
},
{
identityType: "",
identityValue: "",
},
], // 多组身份信息 ,最大支持3组身份信息
"customFields": [
{
"fieldValue": ["",""],
"fieldId": ""
}
], // 用户自定义字段,对象数组的形式,fieldValue为字符串数组类型,可传入多条数据,fieldId为工作台客户自定义字段的id
platform: "自建应用id", // 自建应用的应用id
userName: "用户名称", // 可选字段
avatar: "用户头像", // 可选字段
sex: "性别", // 可选字段 值为 1 时是男性,值为 2 时是女性,值为 0 时是未知
};
},
};
window.AppAuthorization = AppAuthorization; |
...