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 || ''