|
|
@@ -171,13 +171,13 @@ export default {
|
|
|
// Cookies.remove('redirectUri')
|
|
|
if (isApp === '2') {
|
|
|
// 构建查询参数
|
|
|
- // const queryParams = new URLSearchParams({
|
|
|
- // redirect_uri: redirect_uri,
|
|
|
- // // 可以添加其他需要的参数
|
|
|
- // timestamp: Date.now().toString()
|
|
|
- // }).toString()
|
|
|
+ const queryParams = new URLSearchParams({
|
|
|
+ redirect_uri: redirect_uri,
|
|
|
+ // 可以添加其他需要的参数
|
|
|
+ timestamp: Date.now().toString()
|
|
|
+ }).toString()
|
|
|
window.location.href = `weixin://dl/business/?appid=wxf8a72764a38a40b2&path=pages/index/index&query=${encodeURIComponent(
|
|
|
- 'url=' + encodeURIComponent(redirect_uri)
|
|
|
+ 'query=' + encodeURIComponent(queryParams)
|
|
|
)}`
|
|
|
} else {
|
|
|
window.location.href = decodeURIComponent(redirect_uri)
|
|
|
@@ -298,14 +298,14 @@ export default {
|
|
|
// Cookies.remove('redirectUri')
|
|
|
if (isApp === '2') {
|
|
|
// 构建查询参数
|
|
|
- // const queryParams = new URLSearchParams({
|
|
|
- // redirect_uri: redirect_uri,
|
|
|
- // // 可以添加其他需要的参数
|
|
|
- // timestamp: Date.now().toString()
|
|
|
- // }).toString()
|
|
|
+ const queryParams = new URLSearchParams({
|
|
|
+ redirect_uri: redirect_uri,
|
|
|
+ // 可以添加其他需要的参数
|
|
|
+ timestamp: Date.now().toString()
|
|
|
+ }).toString()
|
|
|
|
|
|
window.location.href = `weixin://dl/business/?appid=wxf8a72764a38a40b2&path=pages/index/index&query=${encodeURIComponent(
|
|
|
- 'url=' + encodeURIComponent(redirect_uri)
|
|
|
+ 'query=' + encodeURIComponent(queryParams)
|
|
|
)}`
|
|
|
} else {
|
|
|
window.location.href = decodeURIComponent(redirect_uri)
|