From 3a905731d4b648b4df60d325265bbb02ebf7c2ee Mon Sep 17 00:00:00 2001 From: fanfan Date: Tue, 26 Mar 2024 10:31:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E5=88=97=E8=A1=A8=E7=BB=86?= =?UTF-8?q?=E8=8A=82=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/goods/index.js | 2 +- pages/goods/detail.vue | 4 ++-- pages/goods/list.vue | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/api/goods/index.js b/api/goods/index.js index e7a599e..0f08f28 100644 --- a/api/goods/index.js +++ b/api/goods/index.js @@ -52,7 +52,7 @@ export const serveList = (param, option) => { } // 商品列表 export const list = (param, option) => { - return request.get(api.list, param, option) + return request.post(api.list, param, option) } // 商品详情(详细数据) diff --git a/pages/goods/detail.vue b/pages/goods/detail.vue index 39b0e62..1febc94 100644 --- a/pages/goods/detail.vue +++ b/pages/goods/detail.vue @@ -75,8 +75,8 @@ {{goods.skuList[0].goods_sku_id}} - - {{goods.goods_id}} + + {{goods.goods_no}} diff --git a/pages/goods/list.vue b/pages/goods/list.vue index 972531d..c6cca97 100644 --- a/pages/goods/list.vue +++ b/pages/goods/list.vue @@ -348,8 +348,8 @@ const param = { sortType: app.sortType, sortPrice: Number(app.sortPrice), - categoryId: app.options.categoryId != 'undefined'?app.options.categoryId :"", - goodsName: app.options.search || '', + categoryId: (app.options.categoryId||app.options.categoryId!=undefined)?app.options.categoryId :0, + // goodsName: app.options.search || '', page: pageNo, keywords: keywords.length > 0 ? keywords.join(',') : '', keyword: app.options.search || ''