调整批发商品列表

This commit is contained in:
luofei 2024-04-12 10:11:04 +08:00
parent 5e2af7e198
commit 4cb6aa197e
2 changed files with 6 additions and 4 deletions

View File

@ -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
}); });
} }

View File

@ -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);
}) })
}, },