|
@@ -170,8 +170,15 @@ export default {
|
|
if (redirect_uri) {
|
|
if (redirect_uri) {
|
|
// Cookies.remove('redirectUri')
|
|
// Cookies.remove('redirectUri')
|
|
if (isApp === '2') {
|
|
if (isApp === '2') {
|
|
|
|
+ // 构建查询参数
|
|
|
|
+ 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(
|
|
window.location.href = `weixin://dl/business/?appid=wxf8a72764a38a40b2&path=pages/index/index&query=${encodeURIComponent(
|
|
- redirect_uri
|
|
|
|
|
|
+ queryParams
|
|
)}`
|
|
)}`
|
|
} else {
|
|
} else {
|
|
window.location.href = redirect_uri
|
|
window.location.href = redirect_uri
|
|
@@ -291,8 +298,15 @@ export default {
|
|
if (redirect_uri) {
|
|
if (redirect_uri) {
|
|
// Cookies.remove('redirectUri')
|
|
// Cookies.remove('redirectUri')
|
|
if (isApp === '2') {
|
|
if (isApp === '2') {
|
|
|
|
+ // 构建查询参数
|
|
|
|
+ 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(
|
|
window.location.href = `weixin://dl/business/?appid=wxf8a72764a38a40b2&path=pages/index/index&query=${encodeURIComponent(
|
|
- redirect_uri
|
|
|
|
|
|
+ queryParams
|
|
)}`
|
|
)}`
|
|
} else {
|
|
} else {
|
|
window.location.href = redirect_uri
|
|
window.location.href = redirect_uri
|