|
|
@@ -171,17 +171,16 @@ export default {
|
|
|
// Cookies.remove('redirectUri')
|
|
|
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(
|
|
|
- queryParams
|
|
|
+ // 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)
|
|
|
)}`
|
|
|
} else {
|
|
|
- window.location.href = redirect_uri
|
|
|
+ window.location.href = decodeURIComponent(redirect_uri)
|
|
|
}
|
|
|
} else {
|
|
|
this.$router.replace('/appStoreCopy')
|
|
|
@@ -299,17 +298,17 @@ export default {
|
|
|
// Cookies.remove('redirectUri')
|
|
|
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(
|
|
|
- queryParams
|
|
|
+ // 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)
|
|
|
)}`
|
|
|
} else {
|
|
|
- window.location.href = redirect_uri
|
|
|
+ window.location.href = decodeURIComponent(redirect_uri)
|
|
|
}
|
|
|
} else if (courseId) {
|
|
|
this.$router.replace({
|