Browse Source

搜索,店铺类型、币别筛选,显示逻辑修改

yangc 8 years ago
parent
commit
31021f4075
1 changed files with 2 additions and 2 deletions
  1. 2 2
      components/search/Kind.vue

+ 2 - 2
components/search/Kind.vue

@@ -326,7 +326,7 @@
         this.brand_open = !this.brand_open
         this.brand_open = !this.brand_open
       },
       },
       getType: function (arr, obj) {
       getType: function (arr, obj) {
-        return !(JSON.stringify(arr).indexOf(JSON.stringify(obj)) === -1)
+        return !(JSON.stringify(arr).indexOf(obj.store_type) === -1)
       },
       },
       click_kind: function (id, index) {
       click_kind: function (id, index) {
         this.kind_arr.push(id)
         this.kind_arr.push(id)
@@ -447,7 +447,7 @@
         return -1
         return -1
       },
       },
       crnameInArr: function (arr, obj) {
       crnameInArr: function (arr, obj) {
-        return (JSON.stringify(arr).indexOf(JSON.stringify(obj)) === -1)
+        return (JSON.stringify(arr).indexOf(obj.cr_name) === -1)
       }
       }
     }
     }
   }
   }