common-login-wx
v1.0.0
Published
适用于统一登录和京购登陆
Downloads
6
Readme
用于统一通用登陆和京购的小程序及内部 h5 的登陆
进度
0、判断环境
1、引入 wq 登陆代码
2、引入统一登陆代码
3、提供函数,是否需要正式 pin(微信账号绑定京东账号)、是否先判断 cookie 登陆态
需要正式 pin:
1、mode=common isNeedOfficialPin=true
2、toLogin (手机号登陆会产生错误) 1.获取微信手机号登陆
若京东账号绑定的手机号与和微信手机号不一致,会转到验证页面(或者登录成功)
若一致登陆成功不绑定
不需要正式 pin
1、mode=silent
2、silentauthlogin
若未绑定 则请求返回 err_code: 35
err_msg: "该账户未绑定京东帐号,是否绑定?"