- htmlId(必须):对应页面中需要放二维码的位置, 例
- appid(必须): 应用唯一标识
- redirectUri(必须): 重定向地址
- cssHref(可选): 自定义样式链接
在需要展示微信登录二维码的地方调用该方法即可
import { GetWechatLoginCode } from 'third-login';
const params = {
htmlId: 'bind-qrcode',
appid: 'xxxxxxxxxx',
redirectUri: `${window.location.protocol}//${window.location.host}/third-login-callback?isLogin=true`,
};
GetWechatLoginCode(params);