Selaa lähdekoodia

feat: 微信端公告信息中标预测入口隐藏

cuiyalong 2 vuotta sitten
vanhempi
commit
eb891a39d4
1 muutettua tiedostoa jossa 18 lisäystä ja 3 poistoa
  1. 18 3
      src/web/templates/big-member/wx/page_pro_follow_detail.html

+ 18 - 3
src/web/templates/big-member/wx/page_pro_follow_detail.html

@@ -42,8 +42,7 @@
                     <span class="down-report active" @click="downReport('app')">下载项目报告</span>
                     <span class="toVip" @click="openVip()" v-if="!this.$data.isPayedUser">开通</span>
                 </div>
-                <div class="forecast" @click="goAiAdd()"
-                     v-if="this.$data.prodetail.bidtype=='招标'||this.$data.prodetail.bidtype=='询价'">
+                <div class="forecast" @click="goAiAdd()" v-if="aiFloatShow">
                     <span class="j-icon icon-face"></span>
                     <span class="for_text">中标预测</span>
                 </div>
@@ -155,7 +154,7 @@
             <div class="cement_title" style="display: flex;align-items: center;justify-content: space-between;">
                 <h2 class="title_h2">项目公告</h2>
                 <div @click="goAnalysis" class="bid-dec-in"
-                     v-if="this.$data.prodetail.bidtype !=='中标' && this.$data.prodetail.bidtype !=='成交' && this.$data.prodetail.bidtype !=='合同'">
+                     v-if="analysisFloatShow">
                     <em class="dec-icon"></em>
                     投标决策分析
                 </div>
@@ -311,6 +310,22 @@
             }
             this.getProDetail()
         },
+        computed: {
+            aiFloatShow: function () {
+                if (this.bigstatus <= 0) {
+                    return this.prodetail.bidtype == '招标' || this.prodetail.bidtype == '询价'
+                } else {
+                    return false
+                }
+            },
+            analysisFloatShow: function () {
+                if (this.bigstatus <= 0) {
+                    return this.prodetail.bidtype !== '中标' && this.prodetail.bidtype !== '成交' && this.prodetail.bidtype !== '合同'
+                } else {
+                    return false
+                }
+            }
+        },
         methods: {
             goAnalysis: function () {
                 sessionStorage.removeItem('big-analysis_filter')