|
@@ -5,13 +5,13 @@ const appid = APPID
|
5
|
5
|
export default function(path) {
|
6
|
6
|
|
7
|
7
|
console.log(window.location,'window.location')
|
8
|
|
- const redirect_uri = `${window.location.origin}/#/${window.location.hash}`
|
|
8
|
+ const redirect_uri = `${window.location.origin}/${window.location.hash}`
|
9
|
9
|
|
10
|
10
|
|
11
|
11
|
// window.location.origin = `${window.location.protocol}//${Taro.Current.router.path
|
12
|
12
|
// window.location.hostname
|
13
|
13
|
// }${window.location.port ? ':' + window.location.port : ''}`;
|
14
|
|
- console.log(APPID,redirect_uri,'')
|
|
14
|
+ console.log(APPID,redirect_uri,'333')
|
15
|
15
|
|
16
|
16
|
const url=`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=${encodeURIComponent(redirect_uri)}&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect`
|
17
|
17
|
return url
|