Browse Source

feat:进入工作台入口显示隐藏逻辑判断

Signed-off-by: tangshizhe <2417024719@qq.com>
tangshizhe 1 year ago
parent
commit
00c0e21005

+ 3 - 0
src/web/staticres/js/pur-search-index-pc.js

@@ -201,6 +201,9 @@ var vm = new Vue({
         getBIParams () {
           const urlParams = new URLSearchParams(window.location.search)
           return urlParams.get('resource')
+        },
+        loginIn () {
+          return this.isLogin
         }
     },
     created: function () {

+ 1 - 1
src/web/templates/pc/entsearchindex.html

@@ -156,7 +156,7 @@
                     <span class="tab-item" v-show="!inIframe" @click="location.replace('/swordfish/page_web_pc/search/issued')">供应搜索</span>
                     <span class="tab-item" v-show="!inIframe" @click="location.replace('/jylab/supsearch/index.html?tab=2')">超前项目查询</span>
                     <!-- <span class="tab-item" v-show="!isLogin && !inIframe" @click="location.replace('/swordfish/page_web_pc/search/issued')">拟在建项目查询</span> -->
-                    <div class="search-tab-right">
+                    <div class="search-tab-right" v-show="isLogin && !inIframe">
                       <span>完整版筛选,戳我>></span>
                       <span style="color: #2ABED1;cursor: pointer;" @click="goWorkSpace">进入工作台</span>
                     </div>

+ 1 - 1
src/web/templates/pc/pursearchindex.html

@@ -105,7 +105,7 @@
                   <span class="tab-item" v-show="!inIframe" @click="location.replace('/swordfish/page_web_pc/search/issued')">供应搜索</span>
                   <span class="tab-item" v-show="!inIframe" @click="location.replace('/jylab/supsearch/index.html?tab=2')">超前项目查询</span>
                   <!-- <span class="tab-item" v-show="!inIframe" @click="location.replace('/jylab/entSearch/index.html')">拟在建项目查询</span> -->
-                  <div class="search-tab-right">
+                  <div class="search-tab-right" v-show="loginIn && !inIframe">
                     <span>完整版筛选,戳我>></span>
                     <span style="color: #2ABED1;cursor: pointer;" @click="goWorkSpace">进入工作台</span>
                   </div>

+ 8 - 0
src/web/templates/pc/supsearch.html

@@ -1954,6 +1954,7 @@
       }
     }
     if(!loginflag){ //未登录隐藏
+      $('.search-tab-right').hide()
       $('#go-customer-4').addClass('hide')
       if(getParam('tab') === '2') {
         searchInnerVue.searchTab = 2
@@ -2003,9 +2004,11 @@
       $('#go-customer-4').removeClass('hide')
       $('.nologin-hide').removeClass('hide')
       if(!goTemplateData.inIframe) {
+        $('.search-tab-right').show()
         $('.badge-recommend').hide()
         $('.search-tab-item-0').hide()
       } else {
+        $('.search-tab-right').hide()
         $('.badge-recommend').show()
         $('.search-tab-item-0').show()
       }
@@ -2046,6 +2049,11 @@
         }
       }
     }
+    if(loginflag && goTemplateData.inIframe) {
+      $('.search-tab-right').hide()
+      $('.badge-recommend').show()
+      $('.search-tab-item-0').show()
+    }
     // 排除词
     $(".not-key-group input").on('focus', function () {
       if (!vipState) {