Browse Source

fix: 进入搜索页面默认展示精简列表

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe 1 year ago
parent
commit
b355871c03
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/web/staticres/js/superSearch.js

+ 3 - 3
src/web/staticres/js/superSearch.js

@@ -14,9 +14,9 @@ var inBIPropertyiframe = getParam('property') === 'BIProperty'
 if (!(tParams.isEntniche || tParams.isVip || tParams.isMember)) {
   localStorage.setItem('login-clear-bidsearch-list-model', 'S')
 }
-// if(searchInnerVue.inBIPropertyiframe){
-//   localStorage.removeItem('login-clear-bidsearch-list-model')
-// }
+if(searchInnerVue.inBIPropertyiframe){
+  localStorage.setItem('login-clear-bidsearch-list-model', 'S')
+}
 var listModel = localStorage.getItem('login-clear-bidsearch-list-model') || 'S' // 列表精简or详细 S:精简 D:详细
 // 采购单位画像中转页
 var buyerLink = '/swordfish/page_big_pc/free/loading/buyer/'