Преглед на файлове

feat: 优化!搜索tab点击当前所在tab不跳转

cuiyalong преди 1 година
родител
ревизия
e67bc19687
променени са 3 файла, в които са добавени 5 реда и са изтрити 2 реда
  1. 1 1
      src/web/templates/pc/entsearchindex.html
  2. 1 1
      src/web/templates/pc/pursearchindex.html
  3. 3 0
      src/web/templates/pc/supsearch.html

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

@@ -151,7 +151,7 @@
             <div class="search-header">
                 <div class="search-header-tab">
                     <span class="tab-item" v-show="!inIframe" @click="location.replace('/jylab/supsearch/index.html')">招标采购公告</span>
-                    <span class="tab-item tab-active" @click="location.replace('/jylab/entSearch/index.html')">企业搜索</span>
+                    <span class="tab-item tab-active">企业搜索</span> <!-- @click="location.replace('/jylab/entSearch/index.html')" -->
                     <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 && isLogin" @click="location.replace('/jylab/supsearch/index.html?tab=2')">超前项目查询</span>

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

@@ -101,7 +101,7 @@
                 <div class="search-header-tab">
                   <span class="tab-item" v-show="!inIframe" @click="location.replace('/jylab/supsearch/index.html')">招标采购公告</span>
                   <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 tab-active">采购单位搜索</span> <!-- @click="location.replace('/jylab/purSearch/index.html')" -->
                   <span class="tab-item" v-show="!inIframe" @click="location.replace('/swordfish/page_web_pc/search/issued')">供应搜索</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> -->

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

@@ -5075,6 +5075,9 @@ function checkTagDisabled () {
       },
       // 全部、招标采购搜索公告、超前项目切换
       onSearchTab: function (item) {
+        if (item === this.searchTab) {
+          return
+        }
         if(item === 1) {
           location.replace('/jylab/supsearch/index.html')
         }