Browse Source

feat: 权限判断修复

zhangyuhan 4 years ago
parent
commit
08f647ddbd

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

@@ -205,7 +205,7 @@ var vNode = {
         },
         // 查看次数为零,显示遮罩
         getStatus: function () {
-            return (!this.conf._4 && !this.isVip) || (this.entvisit.total <= this.entvisit.usage && this.powerInfo.memberStatus <= 0 && !this.entvisit.visited)
+            return (!this.conf._4 && !this.isVip) || (this.entvisit.total < this.entvisit.usage && this.powerInfo.memberStatus <= 0 && !this.entvisit.visited)
         },
         surplus: function () {
             return this.entvisit.total >= this.entvisit.usage

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

@@ -204,7 +204,7 @@ var vNode = {
         },
         // 查看次数为零,显示遮罩
         getStatus: function () {
-            return (!this.conf._4 && !this.isVip) || (this.entvisit.total <= this.entvisit.usage && this.powerInfo.memberStatus <= 0 && !this.entvisit.visited)
+            return (!this.conf._4 && !this.isVip) || (this.entvisit.total < this.entvisit.usage && this.powerInfo.memberStatus <= 0 && !this.entvisit.visited)
         },
         surplus: function () {
             return this.entvisit.total >= this.entvisit.usage