首页增加网络版链接
This commit is contained in:
@@ -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,14 +197,25 @@
|
||||
// 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) {
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user