Browse Source

fix: 修复招标动态权限问题

cuiyalong 1 year ago
parent
commit
e6b5d0d604

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

@@ -265,7 +265,7 @@ var vNode = {
       var vipNoBalance = this.isVip && this.powerInfo.memberStatus <= 0 && this.entvisit.total <= this.entvisit.usage
       var vipNoBalance = this.isVip && this.powerInfo.memberStatus <= 0 && this.entvisit.total <= this.entvisit.usage
       // 大会员没权限
       // 大会员没权限
       var bigmemberNoPower = this.powerInfo.memberStatus > 0 && this.conf.arr.indexOf(13) === -1
       var bigmemberNoPower = this.powerInfo.memberStatus > 0 && this.conf.arr.indexOf(13) === -1
-      return vipNoBalance || bigmemberNoPower
+      return vipNoBalance || bigmemberNoPower || this.getStatus
     },
     },
     isMemberAndSvip: function () {
     isMemberAndSvip: function () {
       return this.powerInfo.memberStatus > 0 || this.powerInfo.vipStatus > 0
       return this.powerInfo.memberStatus > 0 || this.powerInfo.vipStatus > 0
@@ -780,8 +780,8 @@ var vNode = {
       var _this = this
       var _this = this
       this.loading = this.showLoading()
       this.loading = this.showLoading()
       $.ajax({
       $.ajax({
-        type: 'GET',
-        url: '/bigmember/use/isAdd',
+        type: 'POST',
+        url: '/bigmember/use/isAdd?t=' + Date.now(),
         timeout: 5000,
         timeout: 5000,
         success: function (res) {
         success: function (res) {
           if (res.error_code == 0) {
           if (res.error_code == 0) {

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

@@ -265,7 +265,7 @@ var vNode = {
       var vipNoBalance = this.isVip && this.powerInfo.memberStatus <= 0 && this.entvisit.total <= this.entvisit.usage
       var vipNoBalance = this.isVip && this.powerInfo.memberStatus <= 0 && this.entvisit.total <= this.entvisit.usage
       // 大会员没权限
       // 大会员没权限
       var bigmemberNoPower = this.powerInfo.memberStatus > 0 && this.conf.arr.indexOf(13) === -1
       var bigmemberNoPower = this.powerInfo.memberStatus > 0 && this.conf.arr.indexOf(13) === -1
-      return vipNoBalance || bigmemberNoPower
+      return vipNoBalance || bigmemberNoPower || this.getStatus
     },
     },
     isMemberAndSvip: function () {
     isMemberAndSvip: function () {
       return this.powerInfo.memberStatus > 0 || this.powerInfo.vipStatus > 0
       return this.powerInfo.memberStatus > 0 || this.powerInfo.vipStatus > 0
@@ -759,8 +759,8 @@ var vNode = {
       var _this = this
       var _this = this
       this.loading = this.showLoading()
       this.loading = this.showLoading()
       $.ajax({
       $.ajax({
-        type: 'GET',
-        url: '/bigmember/use/isAdd',
+        type: 'POST',
+        url: '/bigmember/use/isAdd?t=' + Date.now(),
         success: function (res) {
         success: function (res) {
           if (res.error_code == 0) {
           if (res.error_code == 0) {
             _this.conf.powerLoaded = true
             _this.conf.powerLoaded = true