Commit 47dc62b9 by liwk

commit

1 parent a68cbdb3
# 所有环境默认
# 网络请求公用地址(正式环境)
#正式环境
#VUE_APP_API=https://wx.glsx.com.cn/rop-ddh-carlife/router
#VUE_APP_KEY=d7ffc3346fc9a45bccaaa35300d59022
#VUE_APP_SECRET=4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353
VUE_APP_API=https://wx.glsx.com.cn/rop-ddh-carlife/router
VUE_APP_KEY=d7ffc3346fc9a45bccaaa35300d59022
VUE_APP_SECRET=4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353
#测试环境
#VUE_APP_API=https://qcwx.glsx.com.cn/rop-ddh-carlife/router
VUE_APP_API=http://fi69.branch.glsx.com.cn/rop-ddh-carlife/router
VUE_APP_KEY=48e5e13229b82c1b4e6e8c96151f0637
VUE_APP_SECRET=c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b
\ No newline at end of file
#VUE_APP_API=http://fi69.branch.glsx.com.cn/rop-ddh-carlife/router
#VUE_APP_KEY=48e5e13229b82c1b4e6e8c96151f0637
#VUE_APP_SECRET=c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b
\ No newline at end of file
......@@ -39,6 +39,7 @@ router.beforeEach((to, from, next) => {
}
}
} else {
setUserInfo(params)
next()
}
......
......@@ -109,14 +109,19 @@ const openWindows = (url, name) => {
if (name) {
window.vm.$router.push({ name })
} else {
// window.vm.$router.push({ name: 'common.web-view', params: { url: encodeURIComponent(url) } })
window.location.href = url
}
} else {
let params = {
needNavigator: 1,
type: 4,
url,
}
console.log(params)
if (checkPhoneType() == 'ios') {
window.webkit.messageHandlers.jumpNativeApp.postMessage(JSON.stringify({ type: 4, url, needNavigator: 1 }))
window.webkit.messageHandlers.jumpNativeApp.postMessage(JSON.stringify(params))
} else {
window.myjs.jumpNativeApp(JSON.stringify({ type: 4, url, needNavigator: 1 }))
window.myjs.jumpNativeApp(JSON.stringify(params))
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!