Browse Source

feat: 修复企业画像按钮判断逻辑

zhangyuhan 3 years ago
parent
commit
790112d116
1 changed files with 9 additions and 7 deletions
  1. 9 7
      src/web/staticres/common-module/collection/js/vip-dialog.js

+ 9 - 7
src/web/staticres/common-module/collection/js/vip-dialog.js

@@ -106,7 +106,10 @@ var vipComponent = {
             textMap.btnText = '去开通'
           } else if (this.entvisit.provin != -1) {
             textMap.titleText = '超级订阅'
-            textMap.btnText = this.type === 'item_1' ? '前往升级' : '免费体验'
+            textMap.btnText = '前往升级'
+            if (this.type === 'item_8' || this.type === 'item_9') {
+              textMap.btnText = '免费体验'
+            }
           } else if(this.entvisit.provin == -1) {
             textMap.titleText = '超级订阅'
             textMap.btnText = '联系客服'
@@ -115,10 +118,10 @@ var vipComponent = {
             }
           }
         } else {
-          if (this.type === 'item_1') {
-            textMap.btnText = !this.newvip && this.power.vipStatus > 0  ? '前往升级' : '去开通'
-          } else {
+          if (this.type === 'item_8' || this.type === 'item_9') {
             textMap.btnText = '免费体验'
+          } else {
+            textMap.btnText = !this.newvip && this.power.vipStatus > 0  ? '前往升级' : '去开通'
           }
         }
 
@@ -128,9 +131,8 @@ var vipComponent = {
         } else {
           if (this.power.vipStatus <= 0) {
             textMap.btnText = '去开通'
-          }
-          // (4)【前往升级】:超级订阅老版用户,中标分析各模块;购买了非全国的超级订阅新版用户且企业画像余额为0;点击进入超级订阅升级页;
-          if (!this.newvip && this.entvisit.provin != -1 && this.entvisit.total >= 0) {
+          } else if (!this.newvip && this.entvisit.provin != -1 && this.entvisit.total >= 0) {
+            // (4)【前往升级】:超级订阅老版用户,中标分析各模块;购买了非全国的超级订阅新版用户且企业画像余额为0;点击进入超级订阅升级页;
             textMap.btnText = '前往升级'
           }
         }