Authored by 张文文

Merge branch 'feature/2filter' into develop

... ... @@ -489,7 +489,10 @@ export default {
await this.fetchList({...params, isReset: true});
// 获取筛选项
let filterData = await this.fetchSecondFilterData();
let filterDataParams = {};
filterDataParams.productPool = productPool;
let filterData = await this.fetchSecondFilterData(filterDataParams);
let filterParams = this.filterParams;
for (let item of filterData) {
... ...
... ... @@ -20,8 +20,10 @@ export default function() {
},
// 查询二手/瑕疵筛选列表
async fetchSecondFilterData({commit}) {
let {data} = await this.$api.get('/api/ufo/secondhand/filterData');
async fetchSecondFilterData({commit}, params) {
let {data} = await this.$api.get('/api/ufo/secondhand/filterData', {
...params,
});
commit('setFilterData', data.filter || []);
... ...