From 4cb6aa197eae08cd20dc1072fcc553751cde9b86 Mon Sep 17 00:00:00 2001 From: luofei <604446095@qq.com> Date: Fri, 12 Apr 2024 10:11:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=89=B9=E5=8F=91=E5=95=86?= =?UTF-8?q?=E5=93=81=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/store.js | 4 ++-- pages/whole_sale/index.vue | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/api/store.js b/api/store.js index a22f2cd..2965e37 100644 --- a/api/store.js +++ b/api/store.js @@ -91,8 +91,8 @@ export function getCategoryList() { * 获取商品分类列表 * */ -export function getCategoryIndexList() { - return request.get('store/product/category/index', {}, { +export function getCategoryIndexList(query) { + return request.get('store/product/category/index', query, { noAuth: true }); } diff --git a/pages/whole_sale/index.vue b/pages/whole_sale/index.vue index 2846dce..5f58043 100644 --- a/pages/whole_sale/index.vue +++ b/pages/whole_sale/index.vue @@ -532,6 +532,7 @@ keyword: '', deduction_rate: '', //抵扣比例 order: '', // 销量sales, 价格低到高price_asc, 价格高到低price_desc + rand: 1, } } }, @@ -615,7 +616,8 @@ limit: this.where.limit, sale_type: this.where.sale_type, keyword: this.where.keyword, - order: this.where.order + order: this.where.order, + rand: this.where.rand, } this.cate_change = 0; this.cate_change_children = 0; @@ -662,7 +664,7 @@ background: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/0bc7a202404021652194310.png' }, ...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); }) },