Browse Source

fix:已存筛选条件,几万以下金额回显处理

zhangsiya 9 months ago
parent
commit
331ef263e2
1 changed files with 5 additions and 1 deletions
  1. 5 1
      apps/bigmember_pc/src/utils/format/search-bid-filter.js

+ 5 - 1
apps/bigmember_pc/src/utils/format/search-bid-filter.js

@@ -18,6 +18,8 @@ import {
  */
 export class FilterHistoryAjaxModel2ViewModel {
   static formatAll(map) {
+    console.log(111111)
+    console.log(map)
     // wordsMode
     const { wordsMode, wordsModeText } = this.formatWordsMode(map.wordsMode)
     // 精准匹配/模糊匹配
@@ -301,7 +303,7 @@ export class FilterHistoryAjaxModel2ViewModel {
       priceText = `${start}${unit}以上`
     }
     else if (!start && end) {
-      price = end
+      price = end.includes('-') ? end : '-' + end
       priceText = `${end}${unit}以下`
     }
     return {
@@ -813,6 +815,8 @@ export class FilterHistoryViewModel2AjaxModel {
  */
 export class FilterHistoryAjaxModelRestore {
   static formatAll(map) {
+    console.log(44444444444)
+    console.log(map)
     // wordsMode
     const { additionalWords, wordsMode } = this.formatSelectMoreKey(map.additionalWords, map.wordsMode)
     // 高亮关键词