首页增加网络版链接

This commit is contained in:
季圣华
2021-10-17 23:25:18 +08:00
parent 5a1bc3325c
commit b3e1a0be01

View File

@@ -2,7 +2,8 @@
<div class="user-wrapper" :class="theme"> <div class="user-wrapper" :class="theme">
<span class="action" v-if="showAd"> <span class="action" v-if="showAd">
<a class="ad_title" target="_blank" :href="payFeeUrl"> <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> </a>
</span> </span>
<!-- update_begin author:zhaoxin date:20191129 for: 做头部菜单栏导航 --> <!-- update_begin author:zhaoxin date:20191129 for: 做头部菜单栏导航 -->
@@ -196,12 +197,23 @@
// update_end author:sunjianlei date:20191230 for: 解决外部链接打开失败的问题 // update_end author:sunjianlei date:20191230 for: 解决外部链接打开失败的问题
/*update_end author:zhaoxin date:20191129 for: 做头部菜单栏导航*/ /*update_end author:zhaoxin date:20191129 for: 做头部菜单栏导航*/
isShowAd() { isShowAd() {
//只有配置了租户续费地址和试用租户才显示广告
getPlatformConfigByKey({"platformKey": "pay_fee_url"}).then((res)=> { getPlatformConfigByKey({"platformKey": "pay_fee_url"}).then((res)=> {
if (res && res.code === 200) { if (res && res.code === 200) {
let payFeeUrl = res.data.platformValue let payFeeUrl = res.data.platformValue
if(payFeeUrl) { if(payFeeUrl) {
this.showAd = true getAction("/user/infoWithTenant",{}).then(res=> {
this.payFeeUrl = payFeeUrl if (res && res.code === 200) {
let tenant = res.data
if(tenant && tenant.type === '0') {
if(!this.isMobile()) {
//pc端才显示
this.showAd = true
this.payFeeUrl = payFeeUrl
}
}
}
})
} }
} }
}) })