Jelajahi Sumber

fix:不在工作桌面时,企业搜索登录前后筛选条件展示一致

Signed-off-by: tangshizhe <2417024719@qq.com>
tangshizhe 1 tahun lalu
induk
melakukan
c7aeb8d97e

+ 1 - 1
src/web/staticres/css/dev2/biddingSearch.css

@@ -711,7 +711,7 @@ border-radius:2px;
 
 #searchInner .searchControl .searchTender .information .info-content font {
   float: left;
-  padding: 4px 7px;
+  padding: 5px 7px;
   cursor: pointer;
   margin: 0 7px 8px 0;
 }

+ 9 - 1
src/web/staticres/js/ent-search-index-pc.js

@@ -273,7 +273,15 @@ var entSearch = new Vue({
         },
         searchTypeListComputed: function () {
             if (this.isLogin) {
-                return this.searchTypeList
+              var arr = []
+              this.searchTypeList.forEach(function (item) {
+                  if (!item.needVip) {
+                      arr.push(item)
+                  } else if(goTemplateData.inIframe) {
+                    arr.push(item)
+                  }
+              })
+              return arr
             } else {
                 var arr = []
                 this.searchTypeList.forEach(function (item) {

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

@@ -346,7 +346,7 @@
                             background-color: #2abed1;position: relative;z-index: 99;" @click="establishSearch" v-show="buttonType">确定</button>
                         </div>
                     </div>
-                    <div class="selector-card vip filter-zbly" v-if="isLogin">
+                    <div class="selector-card vip filter-zbly" v-if="isLogin && goTemplateData.inIframe">
                         <div class="selector-card-header">
                             <span>招标领域筛选条件</span>
                             <span class="icon-hot-vip"></span>