- _openUser
`
javascript
let dataT = {userId: null, account: { "userId": null, "batO": "ui", "nikeName": dataN.nikeName, "wxAppOpenId": dataN.wxAppOpenId, "wxUnionId": dataN.wxUnionId, "wxOpenId": dataN.wxOpenId "openId": dataN.openId }, "sex": { "value": dataN.gender // 1男 0 女 }, "headIcon": dataN.headIcon }
openUser=encryptByDES(JSON.stringify(dataT))
### _fromTerminal ios/antriod
```javascript
if (window.$appNavs.fromTerminal === "auth") {
//其它第三方认证
doAuthOpenId(to, from, router, store, callback);
} else if (window.$appNavs.fromTerminal === "alipay") {
//支付宝小程序
doAuthAlipay(to, from, router, store, callback);
} else if (window.$appNavs.fromTerminal === "dingtalk") {
//钉钉
doAuthDingtalk(to, from, router, store, callback);
} else if (window.$appNavs.fromTerminal === "wechatmini") {
//小程序
doAuthWeChatMini(to, from, router, store, callback);
} else if (window.$appNavs.fromTerminal === "wechatent") {
//企业微信
doAuthWeChatEnt(to, from, router, store, callback);
} else if ((_authType === 'wechat' && _state && _code) || (_state && _code)) {
//微信扫码登录 以及 公众号登录
doAuthWeChat(to, from, router, store, callback);
} else if (!user || !user.userId) {
router.replace(`/user/user-login?redirect_uri=${to.fullPath}`);
}
文档更新时间: 2021-07-08 08:00 作者:admin