Authored by 李奇

fixed:筛选性别转换

@@ -256,9 +256,6 @@ export default { @@ -256,9 +256,6 @@ export default {
256 } 256 }
257 }); 257 });
258 258
259 - if (filter.gender) {  
260 - filter.gender = filter.gender === '1' ? '1,3' : '2,3';  
261 - }  
262 query = $.extend({}, locationQuery, filter); 259 query = $.extend({}, locationQuery, filter);
263 query = $.param(query); 260 query = $.param(query);
264 261
@@ -350,7 +347,7 @@ export default { @@ -350,7 +347,7 @@ export default {
350 _.each(this.filter.group_sort, item => { 347 _.each(this.filter.group_sort, item => {
351 temp = temp.concat(item.sub); 348 temp = temp.concat(item.sub);
352 }); 349 });
353 - this.filterItems[0].choices = [{id: 1, name: '男'}, {id: 2, name: '女'}]; 350 + this.filterItems[0].choices = [{id: '1,3', name: '男'}, {id: '2,3', name: '女'}];
354 this.filterItems[1].choices = this.filter.brand || []; 351 this.filterItems[1].choices = this.filter.brand || [];
355 this.filterItems[2].choices = temp; 352 this.filterItems[2].choices = temp;
356 this.filterItems[3].choices = this.filter.color || []; 353 this.filterItems[3].choices = this.filter.color || [];