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
b3e1a0be
Commit
b3e1a0be
authored
Oct 17, 2021
by
季圣华
Browse files
首页增加网络版链接
parent
5a1bc332
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/components/tools/UserMenu.vue
View file @
b3e1a0be
...
...
@@ -2,7 +2,8 @@
<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-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: 做头部菜单栏导航 -->
...
...
@@ -196,12 +197,23 @@
// update_end author:sunjianlei date:20191230 for: 解决外部链接打开失败的问题
/*update_end author:zhaoxin date:20191129 for: 做头部菜单栏导航*/
isShowAd
()
{
//只有配置了租户续费地址和试用租户才显示广告
getPlatformConfigByKey
({
"
platformKey
"
:
"
pay_fee_url
"
}).
then
((
res
)
=>
{
if
(
res
&&
res
.
code
===
200
)
{
let
payFeeUrl
=
res
.
data
.
platformValue
if
(
payFeeUrl
)
{
this
.
showAd
=
true
this
.
payFeeUrl
=
payFeeUrl
getAction
(
"
/user/infoWithTenant
"
,{}).
then
(
res
=>
{
if
(
res
&&
res
.
code
===
200
)
{
let
tenant
=
res
.
data
if
(
tenant
&&
tenant
.
type
===
'
0
'
)
{
if
(
!
this
.
isMobile
())
{
//pc端才显示
this
.
showAd
=
true
this
.
payFeeUrl
=
payFeeUrl
}
}
}
})
}
}
})
...
...
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