Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
bc3c0a44
Commit
bc3c0a44
authored
Jun 19, 2021
by
季圣华
Browse files
Ad展示优化
parent
b3510488
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/components/tools/UserMenu.vue
View file @
bc3c0a44
...
...
@@ -26,7 +26,7 @@
<!-- update-end author:sunjianlei date:20200219 for: 菜单搜索改为动态组件,在手机端呈现出弹出框 -->
<!-- update-end author:sunjianlei date:20191220 for: 解决全局样式冲突的问题 -->
<!-- update_end author:zhaoxin date:20191129 for: 做头部菜单栏导航 -->
<span
class=
"action"
>
<span
class=
"action"
v-if=
"showAd"
>
<a
class=
"cloud_title"
target=
"_blank"
href=
"https://cloud.tencent.com/act/cps/redirect?redirect=1074&cps_key=4fb6482d716575dcb7b8fe600d93766a&from=console"
>
<a-icon
type=
"cloud"
theme=
"filled"
style=
"font-weight: bold;font-size: 16px; line-height: 16px;"
/><span>
腾讯云促销
</span>
</a>
...
...
@@ -71,7 +71,7 @@
import
DepartSelect
from
'
./DepartSelect
'
import
{
mapActions
,
mapGetters
,
mapState
}
from
'
vuex
'
import
{
mixinDevice
}
from
'
@/utils/mixin.js
'
import
{
getFileAccessHttpUrl
}
from
"
@/api/manage
"
import
{
getFileAccessHttpUrl
,
getAction
}
from
"
@/api/manage
"
export
default
{
name
:
"
UserMenu
"
,
...
...
@@ -82,6 +82,7 @@
searchMenuOptions
:[],
searchMenuComp
:
'
span
'
,
searchMenuVisible
:
false
,
showAd
:
false
// update-begin author:sunjianlei date:20200219 for: 头部菜单搜索规范命名 --------------
}
},
...
...
@@ -103,6 +104,7 @@
let
lists
=
[]
this
.
searchMenus
(
lists
,
this
.
permissionMenuList
)
this
.
searchMenuOptions
=
[...
lists
]
this
.
isShowAd
()
},
computed
:
{
...
mapState
({
...
...
@@ -188,9 +190,16 @@
this
.
$router
.
push
({
path
:
route
.
path
})
}
this
.
searchMenuVisible
=
false
}
}
,
// update_end author:sunjianlei date:20191230 for: 解决外部链接打开失败的问题
/*update_end author:zhaoxin date:20191129 for: 做头部菜单栏导航*/
isShowAd
()
{
getAction
(
'
/platformConfig/isShowAd
'
,
{}).
then
((
res
)
=>
{
if
(
res
&&
res
.
code
===
200
)
{
this
.
showAd
=
res
.
data
}
})
}
}
}
</
script
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment