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
f214b612
Commit
f214b612
authored
Oct 17, 2021
by
季圣华
Browse files
首页增加网络版链接
parent
db250c6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/components/tools/UserMenu.vue
View file @
f214b612
<
template
>
<div
class=
"user-wrapper"
:class=
"theme"
>
<span
class=
"action"
v-if=
"showAd"
>
<a
class=
"ad_title"
target=
"_blank"
:href=
"payFeeUrl"
>
<a-icon
type=
"cloud"
theme=
"filled"
style=
"color: yellow; font-size: 16px; line-height: 16px;"
/><span>
华夏ERP网络版99元起
</span>
</a>
</span>
<!-- update_begin author:zhaoxin date:20191129 for: 做头部菜单栏导航 -->
<!-- update-begin author:sunjianlei date:20191@20 for: 解决全局样式冲突的问题 -->
<span
class=
"action"
@
click=
"showClick"
>
...
...
@@ -26,11 +31,6 @@
<!-- update-end author:sunjianlei date:20200219 for: 菜单搜索改为动态组件,在手机端呈现出弹出框 -->
<!-- update-end author:sunjianlei date:20191220 for: 解决全局样式冲突的问题 -->
<!-- update_end author:zhaoxin date:20191129 for: 做头部菜单栏导航 -->
<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>
</span>
<span
class=
"action"
>
<a-tooltip>
<template
slot=
"title"
>
官方网站
</
template
>
...
...
@@ -75,6 +75,7 @@
import
{
mapActions
,
mapGetters
,
mapState
}
from
'
vuex
'
import
{
mixinDevice
}
from
'
@/utils/mixin.js
'
import
{
getFileAccessHttpUrl
,
getAction
}
from
"
@/api/manage
"
import
{
getPlatformConfigByKey
}
from
'
@/api/api
'
export
default
{
name
:
"
UserMenu
"
,
...
...
@@ -86,7 +87,8 @@
searchMenuComp
:
'
span
'
,
searchMenuVisible
:
false
,
systemUrl
:
window
.
SYS_URL
,
showAd
:
false
showAd
:
false
,
payFeeUrl
:
''
// update-begin author:sunjianlei date:20200219 for: 头部菜单搜索规范命名 --------------
}
},
...
...
@@ -194,9 +196,13 @@
// update_end author:sunjianlei date:20191230 for: 解决外部链接打开失败的问题
/*update_end author:zhaoxin date:20191129 for: 做头部菜单栏导航*/
isShowAd
()
{
get
Action
(
'
/p
latformConfig
/isShowAd
'
,
{
}).
then
((
res
)
=>
{
get
P
latformConfig
ByKey
({
"
platformKey
"
:
"
pay_fee_url
"
}).
then
((
res
)
=>
{
if
(
res
&&
res
.
code
===
200
)
{
this
.
showAd
=
res
.
data
let
payFeeUrl
=
res
.
data
.
platformValue
if
(
payFeeUrl
)
{
this
.
showAd
=
true
this
.
payFeeUrl
=
payFeeUrl
}
}
})
}
...
...
@@ -225,9 +231,8 @@
</
style
>
<
style
scoped
>
.cloud_title
{
color
:
inherit
;
font-weight
:
bold
;
.ad_title
{
color
:
yellow
;
text-decoration
:
none
;
}
.logout_title
{
...
...
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