|
@@ -108,7 +108,7 @@ export default {
|
|
this.authStatus = 'loading'
|
|
this.authStatus = 'loading'
|
|
|
|
|
|
// 构建微信授权URL
|
|
// 构建微信授权URL
|
|
- const authUrl = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxf8a72764a38a40b2&redirect_uri=${this.wechatConfig.redirectUri}&response_type=code&scope=${this.wechatConfig.scope}&state=${this.wechatConfig.state}#wechat_redirect`
|
|
|
|
|
|
+ const authUrl = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.wechatConfig.appId}&redirect_uri=${this.wechatConfig.redirectUri}&response_type=code&scope=${this.wechatConfig.scope}&state=${this.wechatConfig.state}#wechat_redirect`
|
|
|
|
|
|
// 跳转到微信授权页面
|
|
// 跳转到微信授权页面
|
|
window.location.href = authUrl
|
|
window.location.href = authUrl
|
|
@@ -291,9 +291,9 @@ export default {
|
|
if (redirect_uri) {
|
|
if (redirect_uri) {
|
|
// Cookies.remove('redirectUri')
|
|
// Cookies.remove('redirectUri')
|
|
if (isApp === '2') {
|
|
if (isApp === '2') {
|
|
- window.location.href = `weixin://dl/business/?appid=${
|
|
|
|
- this.wechatConfig.appId
|
|
|
|
- }&path=pages/index/index&query=${encodeURIComponent(redirect_uri)}`
|
|
|
|
|
|
+ window.location.href = `weixin://dl/business/?appid=wxf8a72764a38a40b2&path=pages/index/index&query=${encodeURIComponent(
|
|
|
|
+ redirect_uri
|
|
|
|
+ )}`
|
|
} else {
|
|
} else {
|
|
window.location.href = redirect_uri
|
|
window.location.href = redirect_uri
|
|
}
|
|
}
|