瀏覽代碼

Merge branch 'dev4.5' of http://192.168.3.207:8080/qmx/jy into dev4.5

zhangyuhan 4 年之前
父節點
當前提交
2483c29194

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

@@ -103,7 +103,8 @@ var vNode = {
             gotTab2: false, // 是否已经获取到tab2的数据了
             svip: false, // 判断是否是超级订阅的企业画像
             digshow: false, // 判断是否是超级订阅会员
-            overlayShow: true // 弹窗遮罩是否显示
+            overlayShow: true, // 弹窗遮罩是否显示
+            isfree: false // 是否是免费用户
         }
     },
     created: function () {
@@ -121,6 +122,7 @@ var vNode = {
         this.entInfo.name = ''
         this.restore = this.reStoreState()
         if (!this.restore) {
+            this.getUserRoot()
             this.getPowerInfo()
             // 获取企业基本信息
             this.getEntBaseInfo()
@@ -463,6 +465,31 @@ var vNode = {
                 }
             })
         },
+        // 判断是否是免费用户
+        getUserRoot: function() {
+            let _this = this
+            $.ajax({
+              url: '/publicapply/bidcoll/power',
+              type: 'POST',
+              success: function(res) {
+                // 如果不是超级订阅会员,获取免费用户关键词
+                if(res.data.member || res.data.entniche || res.data.vip > 0) {
+                    _this.isfree = false
+                } else {
+                    _this.singleTab = false
+                    _this.digshow = true
+                    _this.isfree = true
+                }
+                // 如果只是商机管理用户,不能看企业画像中标信息
+                if(res.data.entniche) {
+                    if(!res.data.member && res.data.vip < 0) {
+                        _this.singleTab = false
+                        _this.digshow = true
+                    }
+                }
+              }
+            })
+          },
         // 修改企业关注状态
         changeFollowStateRequest: function () {
             var _this = this

+ 1 - 1
src/jfw/modules/common/src/qfw/util/jy/bigVipPower.go

@@ -166,7 +166,7 @@ func (this *BigVipBaseMsg) CheckBigVipBackPower(reqFlag string) (pass bool) {
 	if reqFlag == "entDetail" { //企业基本信息接口 无权限控制
 		return true
 	}
-	if this.Viper && (reqFlag == "entPortrait" || reqFlag == "entDetail") {
+	if this.Viper && (reqFlag == "entPortrait" || reqFlag == "entDetail" || reqFlag == "search") {
 		return true
 	}
 	return this.checkPower(reqFlag, BackService)

二進制
src/web/staticres/big-member/image/openVip.png


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

@@ -101,7 +101,8 @@ var vNode = {
             gotTab2: false, // 是否已经获取到tab2的数据了
             svip: false, // 判断是否是超级订阅的企业画像
             digshow: false, // 判断是否是超级订阅会员
-            overlayShow: true // 弹窗遮罩是否显示
+            overlayShow: true, // 弹窗遮罩是否显示
+            isfree: false // 是否是免费用户
         }
     },
     created: function () {
@@ -458,6 +459,31 @@ var vNode = {
                 }
             })
         },
+        // 判断是否是免费用户
+        getUserRoot: function() {
+            let _this = this
+            $.ajax({
+              url: '/publicapply/bidcoll/power',
+              type: 'POST',
+              success: function(res) {
+                // 如果不是超级订阅会员,获取免费用户关键词
+                if(res.data.member || res.data.entniche || res.data.vip > 0) {
+                    _this.isfree = false
+                } else {
+                    _this.singleTab = false
+                    _this.digshow = true
+                    _this.isfree = true
+                }
+                // 如果只是商机管理用户,不能看企业画像中标信息
+                if(res.data.entniche) {
+                    if(!res.data.member && res.data.vip < 0) {
+                        _this.singleTab = false
+                        _this.digshow = true
+                    }
+                }
+              }
+            })
+        },
         // 修改企业关注状态
         changeFollowStateRequest: function () {
             var _this = this

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

@@ -42,7 +42,7 @@
     .vip_openDialog{
         padding: 0.56rem 0 0.64rem;
         height: 7.4rem;
-        background: url('{{Msg "seo" "cdn"}}/jyapp/big-member/image/openVip.png') no-repeat;
+        background: url('{{Msg "seo" "cdn"}}/big-member/image/openVip.png') no-repeat;
         background-size: contain;
         top: 53%;
     }

+ 0 - 1
src/web/templates/weixin/historypush.html

@@ -50,7 +50,6 @@
             color: #333;
             background-color: #fff;
             height: calc(100vh - 89px);
-            overflow: hidden;
         }
 
         a {