Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-business
/
ddh-equity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 47dc62b9
authored
May 25, 2021
by
liwk
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
a68cbdb3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
9 deletions
.env
src/router/index.js
src/utils/util.js
.env
View file @
47dc62b
# 所有环境默认
# 所有环境默认
# 网络请求公用地址(正式环境)
# 网络请求公用地址(正式环境)
#正式环境
#正式环境
#
VUE_APP_API=https://wx.glsx.com.cn/rop-ddh-carlife/router
VUE_APP_API=https://wx.glsx.com.cn/rop-ddh-carlife/router
#
VUE_APP_KEY=d7ffc3346fc9a45bccaaa35300d59022
VUE_APP_KEY=d7ffc3346fc9a45bccaaa35300d59022
#
VUE_APP_SECRET=4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353
VUE_APP_SECRET=4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353
#测试环境
#测试环境
#VUE_APP_API=https://qcwx.glsx.com.cn/rop-ddh-carlife/router
#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
\ 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
\ No newline at end of file
src/router/index.js
View file @
47dc62b
...
@@ -39,6 +39,7 @@ router.beforeEach((to, from, next) => {
...
@@ -39,6 +39,7 @@ router.beforeEach((to, from, next) => {
}
}
}
}
}
else
{
}
else
{
setUserInfo
(
params
)
next
()
next
()
}
}
...
...
src/utils/util.js
View file @
47dc62b
...
@@ -109,14 +109,19 @@ const openWindows = (url, name) => {
...
@@ -109,14 +109,19 @@ const openWindows = (url, name) => {
if
(
name
)
{
if
(
name
)
{
window
.
vm
.
$router
.
push
({
name
})
window
.
vm
.
$router
.
push
({
name
})
}
else
{
}
else
{
// window.vm.$router.push({ name: 'common.web-view', params: { url: encodeURIComponent(url) } })
window
.
location
.
href
=
url
window
.
location
.
href
=
url
}
}
}
else
{
}
else
{
let
params
=
{
needNavigator
:
1
,
type
:
4
,
url
,
}
console
.
log
(
params
)
if
(
checkPhoneType
()
==
'ios'
)
{
if
(
checkPhoneType
()
==
'ios'
)
{
window
.
webkit
.
messageHandlers
.
jumpNativeApp
.
postMessage
(
JSON
.
stringify
(
{
type
:
4
,
url
,
needNavigator
:
1
}
))
window
.
webkit
.
messageHandlers
.
jumpNativeApp
.
postMessage
(
JSON
.
stringify
(
params
))
}
else
{
}
else
{
window
.
myjs
.
jumpNativeApp
(
JSON
.
stringify
(
{
type
:
4
,
url
,
needNavigator
:
1
}
))
window
.
myjs
.
jumpNativeApp
(
JSON
.
stringify
(
params
))
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment