|
@@ -43,7 +43,17 @@ router.beforeEach(async(to, from, next) => {
|
|
if (isWeChat === '1') {
|
|
if (isWeChat === '1') {
|
|
next({ path: '/' })
|
|
next({ path: '/' })
|
|
} else {
|
|
} else {
|
|
- next('/appStoreCopy')
|
|
|
|
|
|
+ const redirect_uri = Cookies.get('redirectUri')
|
|
|
|
+ const isApp = Cookies.get('isApp')
|
|
|
|
+ if (isApp === '2' && redirect_uri) {
|
|
|
|
+ window.location.href = `weixin://dl/business/?appid=${
|
|
|
|
+ this.wechatConfig.appId
|
|
|
|
+ }&path=pages/index/index&query=${encodeURIComponent(redirect_uri)}`
|
|
|
|
+ } else if (redirect_uri) {
|
|
|
|
+ window.location.href = redirect_uri
|
|
|
|
+ } else {
|
|
|
|
+ next({ path: '/appStoreCopy' })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
NProgress.done()
|
|
NProgress.done()
|
|
} else {
|
|
} else {
|