diff --git a/pages/goods/list/index.js b/pages/goods/list/index.js index 017a379..06d07cb 100644 --- a/pages/goods/list/index.js +++ b/pages/goods/list/index.js @@ -50,7 +50,7 @@ Page({ goodsSort: 0, // 0 综合,1 价格 pageNum: 1, pageSize: 6, - goodsCategoryGuid: goodsCategoryGuid + shopGoodsCategoryGuid: goodsCategoryGuid // keyword: keywords, }; diff --git a/pages/home/home.js b/pages/home/home.js index fa0025a..acf1014 100644 --- a/pages/home/home.js +++ b/pages/home/home.js @@ -156,7 +156,7 @@ Page({ let params = { pageNum: pageIndex, pageSize: pageSize, - goodsCategoryGuid: this.data.categoryGuid + shopGoodsCategoryGuid: this.data.categoryGuid } try { const nextList = await fetchGoodsList(params); diff --git a/services/good/fetchCategoryList.js b/services/good/fetchCategoryList.js index ceb1c7e..715fdd7 100644 --- a/services/good/fetchCategoryList.js +++ b/services/good/fetchCategoryList.js @@ -6,7 +6,7 @@ import { export function getGoodsCategoryTreeList() { return new Promise((resolve, reject) => { request({ - url: `GoodsCategoryApi/getGoodsCategoryTreeList`, + url: `GoodsCategoryApi/getShopGoodsCategoryTreeList`, method: 'GET', success: function (res) { let list = res.data;