From c62e30f847e09c867f0be6250c0554d79e9c981c Mon Sep 17 00:00:00 2001 From: sjeam <359824901@qq.com> Date: Wed, 10 Sep 2025 15:08:28 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index/index.vue | 2 +- src/service/crmeb/product.ts | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index d040b4c..d16cd42 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -453,7 +453,7 @@ export default defineComponent({ }, async onLoad(option) { this.getBanner() - this.getProduct(38) + this.getProduct(1) this.getArticle() }, methods: { diff --git a/src/service/crmeb/product.ts b/src/service/crmeb/product.ts index fd0134e..faa4539 100644 --- a/src/service/crmeb/product.ts +++ b/src/service/crmeb/product.ts @@ -24,8 +24,10 @@ export interface IFooItem { // } /** GET 请求 */ -export function getProductAPI(cate_pid: string) { - return http.get(getUrlCrmebProxy() + '/api/product/spu/lst', { cate_pid }) +export function getProductAPI(labels: string) { + // return http.get(getUrlCrmebProxy() + '/api/product/spu/lst', { cate_pid }) + //根据标签获取产品 + return http.get(getUrlCrmebProxy() + '/api/product/spu/labels', { labels: labels }) } // 用户中心 export function getInfoAPI() {