Browse Source

企业画像修改

TANGSHIZHE 4 years ago
parent
commit
41bb953661

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

@@ -179,10 +179,10 @@ var vNode = {
                             _this.gotTab2 = true
                             console.log('获取企业中标动态...')
                         }
-                        // if(_this.powerInfo.memberStatus <= 0) {
-                        //     // 不是大会员时才请求访问量接口
-                        //     _this.getEntVisits()
-                        // }
+                        if(_this.powerInfo.memberStatus <= 0) {
+                            // 不是大会员时才请求访问量接口
+                            _this.getEntVisits()
+                        }
                         _this.gotTab2 = true
                     }
                 });
@@ -455,22 +455,6 @@ var vNode = {
                 type: 'GET',
                 url: '/bigmember/use/isAdd',
                 success: function (res) {
-                    res = {
-                        "error_code": 0,
-                        "error_msg": "",
-                        "data": {
-                          "combo": "专家版",
-                          "entname": "北京百智享科技有限公司",
-                          "isSubCount": false,
-                          "isUsed": true,
-                          "is_member_trial": false,
-                          "memberStatus": 0,
-                          "power": [
-                          ],
-                          "vipStatus": 2,
-                          "viper": true
-                        }
-                      }
                     if (res.error_code == 0) {
                         _this.conf.powerLoaded = true
                         if (res.data) {
@@ -502,7 +486,6 @@ var vNode = {
                             } else {
                                 _this.entInfo.followSearchFinish = true
                                 _this.entInfo.entExist = false
-                                _this.getEntVisits()
                             }
                             _this.singleTab = false
                         }

+ 2 - 1
src/jfw/modules/app/src/web/templates/big-member/page_ent_portrait_change.html

@@ -111,7 +111,8 @@ var vNode = {
     },
     computed: {
         getStatus: function () {
-            return this.conf._12 || (this.isVip && this.entvisit.total > this.entvisit.usage)
+            // 超级订阅用户没有企业情报监控权限,显示购买页
+            return this.conf._12
         }
     },
     methods: {

+ 4 - 1
src/web/staticres/common-module/collection/js/ent_portrait.js

@@ -178,6 +178,10 @@ var vNode = {
                             _this.gotTab2 = true
                             console.log('获取企业中标动态...')
                         }
+                        if(_this.powerInfo.memberStatus <= 0) {
+                            // 不是大会员时才请求访问量接口
+                            _this.getEntVisits()
+                        }
                         _this.gotTab2 = true
                     }
                 });
@@ -482,7 +486,6 @@ var vNode = {
                             } else {
                                 _this.entInfo.followSearchFinish = true
                                 _this.entInfo.entExist = false
-                                _this.getEntVisits()
                             }
                             _this.singleTab = false
                         }

+ 1 - 1
src/web/templates/frontRouter/wx/collection/sess/ent_portrait_change.html

@@ -105,7 +105,7 @@ var vNode = {
     },
     computed: {
         getStatus: function () {
-            return this.conf._12 || (this.isVip && this.entvisit.total > this.entvisit.usage)
+            return this.conf._12
         }
     },
     methods: {