Browse Source

feat:头部tab跳转链接调整

Signed-off-by: tangshizhe <2417024719@qq.com>
tangshizhe 1 year ago
parent
commit
edf2ce766a
1 changed files with 9 additions and 1 deletions
  1. 9 1
      src/web/templates/pc/supsearch.html

+ 9 - 1
src/web/templates/pc/supsearch.html

@@ -2007,6 +2007,9 @@
         } else {
           searchInnerVue.searchTab = 1
         }
+      } else {
+        $('.badge-recommend').show()
+        $('.search-tab-item-0').show()
       }
       // @2023/9/26 未登录限制搜索条件
       $(".no-login-mask").remove()
@@ -3207,7 +3210,12 @@ function checkTagDisabled () {
         })
         var formNode_ = $('#zbSeatchT')
         var goHref_ = location.origin + '/jylab/supsearch/index.html'
-        window.location.replace('/page_workDesktop/work-bench/page?link=' + encodeURIComponent(goHref_ + '?' + formNode_.serialize()))
+        if(getParam('tab') === '2') {
+          // 超前项目查询
+          window.location.replace('/page_workDesktop/work-bench/page?link=' + encodeURIComponent(goHref_ + '?tab=2&' + formNode_.serialize()))
+        } else {
+          window.location.replace('/page_workDesktop/work-bench/page?link=' + encodeURIComponent(goHref_ + '?' + formNode_.serialize()))
+        }
       },
       addParamsToFormUrl: function() {
         if (!this.inResourceBIiframe) return