Browse Source

fix: 修复企业画像vip已查看提示问题

zhangyuhan 4 months ago
parent
commit
258654ff5a

+ 6 - 6
src/jfw/modules/app/src/web/staticres/jyapp/big-member/js/ent_portrait.js

@@ -343,7 +343,7 @@ var vNode = {
       var info = this.powerInfo
       var info = this.powerInfo
       var isNoMember = info.memberStatus <= 0
       var isNoMember = info.memberStatus <= 0
       var isOldVip = info.vipStatus > 0 && !info.viper
       var isOldVip = info.vipStatus > 0 && !info.viper
-      var isNewVip = info.vipStatus > 0 && info.viper && !this.surplus
+      var isNewVip = info.vipStatus > 0 && info.viper && !this.surplus && !this.entvisit.visited
       var isNotAll = this.entvisit.provin !== -1
       var isNotAll = this.entvisit.provin !== -1
       return (isOldVip || (isNewVip && isNotAll)) && isNoMember
       return (isOldVip || (isNewVip && isNotAll)) && isNoMember
     },
     },
@@ -441,7 +441,7 @@ var vNode = {
             const filterSelect = _this.groupingList.filter(item => !!item.isSelect)
             const filterSelect = _this.groupingList.filter(item => !!item.isSelect)
             const selectList = filterSelect.map(item => item.s_name) || ['默认分组']
             const selectList = filterSelect.map(item => item.s_name) || ['默认分组']
             _this.$refs.portrayalGrouping.setState(selectList)
             _this.$refs.portrayalGrouping.setState(selectList)
-            
+
           } else {
           } else {
             if(!res?.data?.status) {
             if(!res?.data?.status) {
                 // 监控达到上限
                 // 监控达到上限
@@ -930,7 +930,7 @@ var vNode = {
     },
     },
     changeGroupState: function (type) {
     changeGroupState: function (type) {
       console.log(type);
       console.log(type);
-      this.getEntGroupListData() 
+      this.getEntGroupListData()
       this.$nextTick(() => {
       this.$nextTick(() => {
         this.setGroupState = type
         this.setGroupState = type
         this.showGroupingDialog = true
         this.showGroupingDialog = true
@@ -996,7 +996,7 @@ var vNode = {
         } else {
         } else {
           _this.changeFollowStateRequest()
           _this.changeFollowStateRequest()
         }
         }
-        
+
       } else {
       } else {
         this.getEntFollowState((res) => {
         this.getEntFollowState((res) => {
           const { surplus, used } = res.info
           const { surplus, used } = res.info
@@ -1245,13 +1245,13 @@ var vNode = {
                   //  展开监控菜单 active:3
                   //  展开监控菜单 active:3
                   window.location.href = location.origin + '/jy_mobile/push/pushsetting?active=' + active
                   window.location.href = location.origin + '/jy_mobile/push/pushsetting?active=' + active
                 })
                 })
-        
+
               } else if(res.data.msg_open && res.data.status){
               } else if(res.data.msg_open && res.data.status){
                 _this.$toast({
                 _this.$toast({
                   duration: 2000,
                   duration: 2000,
                   message: '监控成功,您可前往“工作台-商机-企业情报监控”查看'
                   message: '监控成功,您可前往“工作台-商机-企业情报监控”查看'
                 })
                 })
-        
+
               }
               }
             } else {
             } else {
               return _this.showToast(res.error_msg || '监控失败')
               return _this.showToast(res.error_msg || '监控失败')