Browse Source

feat:超前项目逻辑调整

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

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

@@ -1997,20 +1997,6 @@
         })
     })
     window.loginCallback = function () {//登录成功回调
-
-      if(!goTemplateData.inIframe) {
-        $('#setInfoBtn').text('信息发布')
-        $('.badge-recommend').hide()
-        $('.search-tab-item-0').hide()
-        if(getParam('tab') === '2') {
-          searchInnerVue.searchTab = 2
-        } else {
-          searchInnerVue.searchTab = 1
-        }
-      } else {
-        $('.badge-recommend').show()
-        $('.search-tab-item-0').show()
-      }
       // @2023/9/26 未登录限制搜索条件
       $(".no-login-mask").remove()
 
@@ -2019,7 +2005,16 @@
       if(!goTemplateData.inIframe) {
         $('.badge-recommend').hide()
         $('.search-tab-item-0').hide()
+      } else {
+        $('.badge-recommend').show()
+        $('.search-tab-item-0').show()
+      }
+      if(getParam('tab') === '2') {
+        searchInnerVue.searchTab = 2
+      } else {
+        searchInnerVue.searchTab = 1
       }
+      $('#setInfoBtn').text('信息发布')
       $('.city-list-divide').removeClass('hide')
       $('#sideIcon').removeClass('hide')
       try{