Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e5586523
authored
Jul 06, 2023
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
跳转趋势分析修改
1 parent
4b8177ef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
16 deletions
config.js
tabOperating/pages/index/index_mixins.js
config.js
View file @
e558652
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
* 3生产环境
* 3生产环境
* 4预发布
* 4预发布
*/
*/
let
index
=
3
let
index
=
2
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
...
...
tabOperating/pages/index/index_mixins.js
View file @
e558652
import
{
env
}
from
'~/config'
import
{
env
,
envIndex
}
from
'~/config'
export
default
{
export
default
{
data
:
{
data
:
{
menu
:
[
menu
:
[
...
@@ -14,7 +14,7 @@ export default {
...
@@ -14,7 +14,7 @@ export default {
},
},
{
{
name
:
'趋势分析'
,
name
:
'趋势分析'
,
url
:
'
http://baidu.com
'
,
url
:
'
dj-car-revenue-analysis
'
,
isH5
:
true
isH5
:
true
},
},
{
{
...
@@ -58,20 +58,46 @@ export default {
...
@@ -58,20 +58,46 @@ export default {
})
})
}
else
{
}
else
{
if
(
item
.
isH5
)
{
if
(
item
.
isH5
)
{
let
userInfo
=
wx
.
$util
.
getUserInfo
()
let
queryParmas
=
userInfo
?.
isSuper
?
'isAmin=true'
:
`isAdmin=false&yqMerchantId=
${
userInfo
?.
merchantId
}
`
const systemInfo = wx.getSystemInfoSync()
let jumpLocation = ''
let jumpLocation = ''
switch
(
env
)
{
if (systemInfo.platform != 'devtools') { // 非开发工具本地
case
'develop'
:
switch (env) {
jumpLocation
=
''
case 'develop': // 开发环境
break
jumpLocation = `
http
:
//192.168.0.39:8962/${item.url}/#/?${queryParmas}`
case
'trial'
:
break
jumpLocation
=
''
case
'trial'
:
// 测试环境
break
jumpLocation
=
`https://dj.test.glsx.com.cn/
${
item
.
url
}
/#/?
${
queryParmas
}
`
case
'release'
:
break
jumpLocation
=
''
case
'preRelease'
:
// 预发布环境
break
jumpLocation
=
''
default
:
break
jumpLocation
=
''
case
'release'
:
// 线上环境
break
jumpLocation
=
`https://dj.glsx.com.cn/
${
item
.
url
}
/#/?
${
queryParmas
}
`
break
default
:
jumpLocation
=
`https://dj.glsx.com.cn/
${
item
.
url
}
/#/?
${
queryParmas
}
`
break
}
} else {
switch(envIndex) {
case 1: // 开发
jumpLocation = `
http
:
//192.168.0.39:8962/${item.url}/#/?${queryParmas}`
break
case
2
:
// 测试
jumpLocation
=
`https://dj.test.glsx.com.cn/
${
item
.
url
}
/#/?
${
queryParmas
}
`
break
case
3
:
// 线上
jumpLocation
=
`https://dj.glsx.com.cn/
${
item
.
url
}
/#/?
${
queryParmas
}
`
break
case
4
:
// 预发布
jumpLocation
=
``
break
default
:
jumpLocation
=
`https://dj.glsx.com.cn/
${
item
.
url
}
/#/?
${
queryParmas
}
`
break
}
}
}
wx
.
$router
.
jumpH5
(
jumpLocation
)
wx
.
$router
.
jumpH5
(
jumpLocation
)
}
else
{
}
else
{
...
...
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