Pārlūkot izejas kodu

feat: 搜索页未登录隐藏<超前项目查询>入口

cuiyalong 1 gadu atpakaļ
vecāks
revīzija
b64cf683e2

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

@@ -154,7 +154,7 @@
                     <span class="tab-item tab-active" @click="location.replace('/jylab/entSearch/index.html')">企业搜索</span>
                     <span class="tab-item" v-show="!inIframe" @click="location.replace('/jylab/purSearch/index.html')">采购单位搜索</span>
                     <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 && isLogin" @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" v-show="isLogin && !inIframe">
                       <button class="page-back-btn" @click="goBack">返回</button>

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

@@ -103,7 +103,7 @@
                   <span class="tab-item" v-show="!inIframe" @click="location.replace('/jylab/entSearch/index.html')">企业搜索</span>
                   <span class="tab-item tab-active" @click="location.replace('/jylab/purSearch/index.html')">采购单位搜索</span>
                   <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 && isLogin" @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" v-show="isLogin && !inIframe">
                     <button class="page-back-btn" @click="goBack">返回</button>

+ 18 - 2
src/web/templates/pc/supsearch.html

@@ -1975,7 +1975,13 @@
         searchInnerVue.$refs.areaRefs.shoWcity=false//隐藏地市
       }catch(e){
       }
-      const searchDoms = ['.tab-item-ent-search', '.tab-item-buyer-search', '.tab-item-supply-search', '.tab-item-recommend-search', '.tab-item-nzj-search']
+      const searchDoms = [
+        '.tab-item-ent-search',
+        '.tab-item-buyer-search',
+        '.tab-item-supply-search',
+        // '.tab-item-recommend-search',
+        '.tab-item-nzj-search'
+      ]
       for (let i = 0; i < searchDoms.length; i++) {
         $(searchDoms[i]).show()
       }
@@ -2028,7 +2034,14 @@
       }catch(e){
       }
       searchInnerVue.islogin=true
-      const searchDoms = ['.tab-item-ent-search', '.tab-item-buyer-search', '.tab-item-supply-search', '.tab-item-recommend-search', '.tab-item-nzj-search', '.search-tab-right']
+      const searchDoms = [
+        '.tab-item-ent-search',
+        '.tab-item-buyer-search',
+        '.tab-item-supply-search',
+        '.tab-item-recommend-search',
+        '.tab-item-nzj-search',
+        '.search-tab-right'
+      ]
       for (let i = 0; i < searchDoms.length; i++) {
         if(goTemplateData.inIframe) {
           $(searchDoms[i]).hide()
@@ -2036,6 +2049,9 @@
           $('.search-tab-item-0').show()
         }
       }
+      if (searchInnerVue.islogin) {
+        $('.tab-item-recommend-search').show()
+      }
       /**
        * @date 2022/12/15 山川环境嵌入搜索
        */