|
|
|
|
90
|
|
90
|
|
91
|
const appid = APPID || 'wx5d0c5a7f210d872f';
|
91
|
const appid = APPID || 'wx5d0c5a7f210d872f';
|
92
|
const local = encodeURIComponent(location.origin + location.pathname)
|
92
|
const local = encodeURIComponent(location.origin + location.pathname)
|
93
|
- const url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=${local}&response_type=code&scope=snsapi_base&state=123#wechat_redirect`
|
|
|
|
|
93
|
+ const scope = 'snsapi_userinfo'; // snsapi_base
|
|
|
94
|
+ const url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=${local}&response_type=code&scope=${scope}&state=123#wechat_redirect`
|
94
|
window.location.href = url;
|
95
|
window.location.href = url;
|
95
|
}
|
96
|
}
|
96
|
|
97
|
|