diff --git a/jshERP-web/src/components/tools/UserMenu.vue b/jshERP-web/src/components/tools/UserMenu.vue
index 6f125fd3..069e1009 100644
--- a/jshERP-web/src/components/tools/UserMenu.vue
+++ b/jshERP-web/src/components/tools/UserMenu.vue
@@ -2,7 +2,8 @@
- 华夏ERP网络版99元起
+
+ 华夏ERP网络版99元起
@@ -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
+ }
+ }
+ }
+ })
}
}
})