yangfeng 3 жил өмнө
parent
commit
4f69c10ca2

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

@@ -211,6 +211,7 @@ var vNode = {
     },
     // 查看次数为零,显示遮罩
     getStatus: function () {
+      console.log((!this.conf._4 && !this.isVip) || (this.entvisit.total <= this.entvisit.usage && this.powerInfo.memberStatus <= 0) || (this.entvisit.total <= this.entvisit.usage && !this.showContacts))
       return (!this.conf._4 && !this.isVip) || (this.entvisit.total <= this.entvisit.usage && this.powerInfo.memberStatus <= 0) || (this.entvisit.total <= this.entvisit.usage && !this.showContacts)
     },
     isMember () {
@@ -225,6 +226,11 @@ var vNode = {
     },
     showContacts: function () {
       return this.conf.arr.indexOf(4) > -1 && this.powerInfo.memberStatus > 0
+    },
+    // 是否隐藏动态 显示遮罩
+    hideDt: function() {
+      // 是新超级订阅 且不是大会员且次数已用完   或大会员没有项目动态权限
+      return this.isVip && this.powerInfo.memberStatus <= 0 && this.entvisit.total <= this.entvisit.usage || this.conf.arr.indexOf(13) === -1
     }
   },
   methods: {
@@ -379,8 +385,8 @@ var vNode = {
           if (res.error_code == 0) {
             if (res.data) {
               // res.data.provin = 1
-              // res.data.total = 1
-              // res.data.usage = 2
+              res.data.total = 1
+              res.data.usage = 2
               _this.entvisit = res.data
             }
           }

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

@@ -242,7 +242,7 @@
           <div class="vip_component" v-if="getStatus"
             style="height:2.12rem;background:url('/common-module/collection/image/bg/vip_bg_0.png') no-repeat;background-size:100% 100%">
           </div>
-          <div class="vip_component" v-if="getStatus && !conf._13"
+          <div class="vip_component" v-if="getStatus && hideDt"
             style="height:9.16rem;background:url('/common-module/collection/image/bg/vip_bg_1.png') no-repeat;background-size:100% 100%" key="dt">
             <vip-component @tabactive="tabActive" :power="conf" type="item_1" :entvisit="entvisit" :newvip="isVip"
               imgurl='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/collection/image/bg/vip_ex_1.png'>

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

@@ -226,6 +226,11 @@ var vNode = {
         // 是否展示升级提示 是新超级订阅用户且购买的不是全国且浏览次数已用完
         showUpdateTip: function() {
           return this.isVip && this.entvisit.provin !== -1 && !this.surplus && this.conf._4 && this.powerInfo.memberStatus <= 0
+        },
+        // 是否隐藏动态 显示遮罩
+        hideDt: function() {
+          // 是新超级订阅 且不是大会员且次数已用完   或大会员没有项目动态权限
+          return this.isVip && this.powerInfo.memberStatus <= 0 && this.entvisit.total <= this.entvisit.usage || this.conf.arr.indexOf(13) === -1
         }
     },
     methods: {

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

@@ -100,7 +100,7 @@ var vipComponent = {
             textMap.btnText = '去开通'
           } else if (this.entvisit.provin != -1) {
             textMap.titleText = '超级订阅'
-            textMap.btnText = '去升级'
+            textMap.btnText = this.type === 'item_1' ? '去升级' : '免费体验'
           } else if(this.entvisit.provin == -1) {
             textMap.titleText = '超级订阅'
             textMap.btnText = '联系客服'

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

@@ -237,7 +237,7 @@
                 </div>
                 <div class="vip_component" v-if="getStatus" style="height:2.12rem;background:url('/common-module/collection/image/bg/vip_bg_0.png') no-repeat;background-size:100% 100%"></div>
                 <!-- 项目动态 -->
-                <div class="vip_component" v-if="getStatus && !conf._13" style="height:9.16rem;background:url('/common-module/collection/image/bg/vip_bg_1.png') no-repeat;background-size:100% 100%" key="dt">
+                <div class="vip_component" v-if="getStatus && hideDt" style="height:9.16rem;background:url('/common-module/collection/image/bg/vip_bg_1.png') no-repeat;background-size:100% 100%" key="dt">
                   <vip-component @tabactive="tabActive" :power="conf" type="item_1" :entvisit="entvisit" :newvip="isVip"  imgurl='{{Msg "seo" "cdn"}}/common-module/collection/image/bg/vip_ex_1.png'></vip-component>
               </div>
               <div v-else key="dt">

+ 3 - 1
src/web/templates/pc/biddetail_rec.html

@@ -1300,7 +1300,9 @@ var IframeOnClick = {
       if({{.T.obj.entId}}) {
         this.getWinnerFreeData()
       }
-      this.getBuyerFreeData()
+      if ({{.T.obj.buyer}}) {
+        this.getBuyerFreeData()
+      }
 		},
 		methods: {
 			getBidInfo: function () {