调整批发商品列表
This commit is contained in:
parent
5e2af7e198
commit
4cb6aa197e
@ -91,8 +91,8 @@ export function getCategoryList() {
|
|||||||
* 获取商品分类列表
|
* 获取商品分类列表
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export function getCategoryIndexList() {
|
export function getCategoryIndexList(query) {
|
||||||
return request.get('store/product/category/index', {}, {
|
return request.get('store/product/category/index', query, {
|
||||||
noAuth: true
|
noAuth: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -532,6 +532,7 @@
|
|||||||
keyword: '',
|
keyword: '',
|
||||||
deduction_rate: '', //抵扣比例
|
deduction_rate: '', //抵扣比例
|
||||||
order: '', // 销量sales, 价格低到高price_asc, 价格高到低price_desc
|
order: '', // 销量sales, 价格低到高price_asc, 价格高到低price_desc
|
||||||
|
rand: 1,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -615,7 +616,8 @@
|
|||||||
limit: this.where.limit,
|
limit: this.where.limit,
|
||||||
sale_type: this.where.sale_type,
|
sale_type: this.where.sale_type,
|
||||||
keyword: this.where.keyword,
|
keyword: this.where.keyword,
|
||||||
order: this.where.order
|
order: this.where.order,
|
||||||
|
rand: this.where.rand,
|
||||||
}
|
}
|
||||||
this.cate_change = 0;
|
this.cate_change = 0;
|
||||||
this.cate_change_children = 0;
|
this.cate_change_children = 0;
|
||||||
@ -662,7 +664,7 @@
|
|||||||
background: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/0bc7a202404021652194310.png'
|
background: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/0bc7a202404021652194310.png'
|
||||||
}, ...res.data];
|
}, ...res.data];
|
||||||
})
|
})
|
||||||
else getCategoryIndexList().then(res => {
|
else getCategoryIndexList({mer_type: this.where.mer_type, sale_type: this.where.sale_type}).then(res => {
|
||||||
this.initStoreCate(res);
|
this.initStoreCate(res);
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user