Selaa lähdekoodia

fix: 处理searchInnerVue报错问题

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe 1 vuosi sitten
vanhempi
commit
7aff23d696
1 muutettua tiedostoa jossa 3 lisäystä ja 4 poistoa
  1. 3 4
      src/web/staticres/js/superSearch.js

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

@@ -14,6 +14,9 @@ var inBIPropertyiframe = getParam('property') === 'BIProperty'
 if (!(tParams.isEntniche || tParams.isVip || tParams.isMember)) {
   localStorage.setItem('login-clear-bidsearch-list-model', 'S')
 }
+if(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/'
@@ -210,10 +213,6 @@ function getNewBids(pnum, size){
     // getBidIsColl()
 	})
 }
-if(searchInnerVue.inBIPropertyiframe){
-  localStorage.setItem('login-clear-bidsearch-list-model', 'S')
-  listModel = localStorage.getItem('login-clear-bidsearch-list-model')
-}
 
 ////最新招标信息
 function getNewBiddings(num, size){